| 开发者 |
courane01
tjcafferkey derintolu |
|---|---|
| 更新时间 | 2026年11月16日 05:06 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
--pfbt-* CSS custom properties that resolve through your theme.json, so they follow your theme's colors, typography, and spacing and work with Global Styles.
Also Included
image_gallery_styles, quote_styles) are off by default.No, this plugin requires block themes with Full Site Editing. Classic themes use PHP templates incompatible with block patterns. This plugin requires block theme with theme.json, block templates in templates/ folder, and WordPress 6.9+. Consider migrating to a modern block theme like Twenty Twenty-Five.
Yes! Use Post Format Repair Tool (Tools → Post Format Repair) to scan existing posts and automatically detect appropriate formats based on content. Tool analyzes first block and suggests matching format. Review before applying repairs. Tool saves a revision and changes the format assignment, not the post content.
Content remains safe: format assignments stay in database, pattern blocks remain as standard blocks, Chat Log blocks show as "unsupported block" (content preserved), no data lost. If you reactivate, all functionality returns immediately.
Yes, multiple ways:
No, 280-character limit is a soft suggestion, not a hard block. Shows real-time counter, visual warning when approaching limit, accessibility announcements, but you CAN publish longer status updates if needed.
Link format checks if the Bookmark Card plugin is installed. If active, uses bookmark-card blocks with rich previews, images, descriptions, automatic metadata fetching. If not installed, uses standard linked paragraphs. Both work perfectly—integration just enhances experience.
Partly. If the Podlove Podcasting Plugin for WordPress is active, the plugin adds styles so its web player fits the Audio format layout. It doesn't read Podlove's podcast metadata. The patterns themselves use WordPress core audio blocks.
When Able Player is active, the plugin adds styles so its player fits the Video and Audio format layouts. The patterns themselves use WordPress core media blocks.
You don't need a separate plugin! Post Formats for Block Themes includes integrated Chat Log block (chatlog/conversation). Chat format works out of the box, no additional plugins required. Just select Chat format and paste conversation transcripts from Slack, Discord, Teams, WhatsApp, Signal, or Telegram.
Yes, and it is worth knowing what that means before running both. RSS Chat publishes posts to the rss.chat network, and it decides what to send by looking for the core chat post format. Once RSS Chat is connected, a post you format as Chat here is also syndicated there. Two things follow from that. Do not set the Chat format on a post just to get it syndicated, because this plugin will badge and style it as a conversation transcript, which is what the format is for. And if you leave format auto-detection on, a post that opens with a Chat Log block is given the Chat format for you, so it would be syndicated without anyone choosing that — set the format by hand on those posts, or turn detection off, if that matters to you. Whether RSS Chat could route on something other than the post format is open upstream: issue #6. RSS Chat is distributed on GitHub, not WordPress.org.
Yes. Open the post, select the Format row in the Post tab of the sidebar, and pick a format. The new format's pattern is inserted at the top of the post and your existing blocks stay.
Detection applies once, on a post's first save, and only when you haven't chosen a format. After that it never reclassifies the post, so a format you change later stays. It also runs on posts created programmatically, such as through Micropub or WP-CLI.
view.js) is removed; WordPress 6.9 is the minimum.post-formats/format-data block bindings source has one owner.image_gallery_styles flag) now injects a real <button class="pfbt-lightbox-trigger"> per image (instead of a tabindex-focusable figure) and opens a native <dialog> via .showModal(), so Escape-to-close and Tab focus cycling come from the browser and focus returns to the button that opened it.--pfbt-format-status-font-size CSS custom property.h1/h2 for screen readers and document outline.log to region.toolbar to group, matching its actual (non-roving) keyboard behavior.post-formats/mf2-markup, post-formats/mf2-validate, post-formats/posse-prepare, and post-formats/get-post-format checked only a sitewide capability (read or edit_posts), not whether the caller could act on the specific post ID they supplied — a Subscriber could read a private post's content through mf2-markup, or a Contributor could run posse-prepare against another user's draft. All four now run their post_id through a shared guard that checks read_post/edit_post on that post before returning anything; a missing or invalid post now returns error code pfbt_not_found (was invalid_post), and a failed capability check returns pfbt_forbidden.read_post maps to the primitive read capability for any published post regardless of a post password, so any logged-in user could read a password-protected post's content through mf2-markup. The guard now denies that unless the caller can also edit the post.post-formats/get-format-signals had its permission callback set to always allow; it now requires the read capability like the plugin's other abilities.init hook, on every admin, admin-ajax, or REST request, gated by a one-week transient rather than by the plugin version — so roughly every week they'd re-run and overwrite any pattern you'd hand-edited back to the plugin's built-in default. They're now (re)created only on the first wp-admin visit after the plugin version changes, once per version rather than once a week, so updating to 1.1.7 overwrites a hand-edited pattern once and leaves it alone afterward. Activation no longer creates patterns or records the plugin version directly, since its hook can fire before the plugin's own classes are guaranteed loaded; that recording now happens only once the patterns it corresponds to actually exist. pfbt_register_patterns() remains as a deprecated wrapper, guarded against a missing PFBT_Pattern_Manager class, so third-party code still calling it by name does not fatal.--pfbt-* design token contract — the plugin owns layout, your theme owns paint. If you customized the old --wp--preset--color--format-* tokens, rename them to --pfbt-format-*; uncustomized sites see no visible change.post-formats/format-data), SVG icon sets with a settings-page picker, and Chat Log front-end interactivity with thread grouping.image_gallery_styles and quote_styles feature flags (default off). All variation colors resolve through the token contract, so palette-mapped styles follow the active theme automatically.dashicons-aside to dashicons-format-aside)status-paragraph classdomReady wrapper for Post Format Block to prevent race conditionsFormatSwitcherPanel component to eliminate duplicate UI controlsPluginDocumentSettingPanel wrapper for cleaner sidebarrest_prepare_post filter to ensure correct template values in editorpfbt_registered_formats, pfbt_detected_format, pfbt_pattern_contentpfbt_format_detected, pfbt_format_repaired, pfbt_format_changed