Repository navigation
v1.20.0
Upgrade notes
- Block markup is now filtered on save, and nobody is exempt until you say so (#1062). Block content was stored as sent and printed unescaped, so any author could put script on a public page. Saving now reduces markup to an allowlist unless the user holds the new
unfiltered_htmlcapability, which no role has until you grant it. Without it, new<script>,<iframe>and<embed>markup, event handlers andjavascript:links are removed when saved, and Custom HTML isn't in the inserter. Grant the capability to the roles that need it, or redefine thevisual-editor.unfiltered-htmlgate. Saved content isn't rewritten, and stored markup is kept until someone without the capability changes it. If a site uses blocks that store other tags ordata-*attributes in their attributes, add them withap.visualEditor.contentFilter.allowedHtml. Seecontent_filter. - Unprivileged authors can save less markup in titles, excerpts and plain-text fields (#1062). Without
unfiltered_html, a new or changed post title or excerpt now goes through the same allowlist as block content, through bothPUT /visual-editor/api/{resource}/{id}/entryand the WP-shapePUT pages/{id}/posts/{id}routes, because Post Title and Post Excerpt print them unescaped. Markup saved in an image's alt text or a Query Loop's search no longer counts as already stored, so it can't be moved into a Custom HTML block. An unchanged title keeps its markup. A search block's placeholder is left alone like alt text, soUse <Enter> to submitkeeps its words, but other plain-text attributes containing<Word, such as a third-party block's help text, are still filtered for these authors. - Author Social Icons and Social Share blocks have new icons (#1027). Every social block now uses the Font Awesome glyphs from the Social Icons block, so a brand looks the same across a page. Existing blocks change on their next render with no re-save, and saved attributes, labels and chip classes stay the same. The biggest visual changes are that LinkedIn is the boxed logo rather than the bare "in", and Website is now the link icon rather than a globe. The Blade renderer's
SocialIconRegistryclass is removed, because its 24×24 paths can't be swapped for glyphs with their ownviewBox: useSocialLinkServices::author()andSocialLinkServices::share(), and print the returnedviewBox. If you published this package's block views, re-publish them: a copy ofblocks/artisanpack/author-social-icons.blade.phporsocial-share-content.blade.phpinresources/views/vendor/visual-editor-renderer-blade/still calls the removed class, so the block stops rendering and logs the error until you runphp artisan vendor:publish --tag=visual-editor-blade-views --force. - Entity search now checks permissions (#1042).
GET /visual-editor/api/searchapplies each model'sforVisualEditorscope andviewpolicy ability, and any signed-in user could previously list every title. A model with no policy now returns no results, and it also needs one to be editable. The endpoint also reads theap.visualEditor.resourcesfilter, and an entry withoutHasBlockContentis skipped. <x-ve-blocks>ignores saved_resolved*attributes, with or without a post (#1096). Every_resolved*attribute in the tree is removed before the resolvers run, so a host that stamps values such as_resolvedContent,_resolvedQueryTitleor_resolvedTotalonto a tree and renders it with no:postloses them. Pass:trust-resolved="true"for a tree you resolved yourself. Template parts and synced patterns inlined into it are still stripped, because they're saved content. To mix saved content with your own values, run the saved tree throughResolvedAttributes::strip(), add your values, then pass it as trusted.QueryInliner::inline()now strips without a host post too, so passfalseas its third argument for a host-resolved tree.<x-ve-template>,BlockRenderer::renderMarkup(), navigation overlay parts and the Snippet block strip their saved trees, and have no opt-out.- Breadcrumbs no longer print microdata by default (#1038). A breadcrumbs block with Include schema.org markup left at its old default never saved the setting, so it stops printing
BreadcrumbListmicrodata after this update. The block looks the same, and a block with the toggle explicitly off is unchanged. If that microdata is your site's only breadcrumb schema, turn the toggle on for each block and save, or emit a JSON-LDBreadcrumbListin the head instead.
Added
- Import pasted images into the media library (#1066). When a paste creates Image blocks with external URLs, a notice offers to import them. Nothing downloads unless the author accepts. The server fetches each image through the new
POST /visual-editor/api/media/importendpoint, which refuses internal addresses and anything that isn't a raster image, and alt text is kept. An image that can't be imported keeps its external URL. Needsartisanpack-ui/media-library. Seemedia_import. - The editors now show snackbar notices (#1066). Notices raised through
core/notices, by blocks or the save path, were never displayed. - Click to enlarge for Image and Gallery blocks (#1046). The Image block's Settings panel has an Enlarge on click toggle, and the Gallery's Enlarge on click link option now appears and works, with previous and next buttons and arrow keys between images. A theme turns it on everywhere with
settings.blocks.artisanpack/image.lightbox.enabledin theme.json (core/imageworks too), andallowEditing: falsehides the controls. A block's own setting overrides the theme, and an image with a link keeps its link. It works in all three renderers: the overlay is a real dialog that moves focus in, keeps it there and returns it on close, closes with Escape, carries the alt text and caption through, and respectsprefers-reduced-motion. Blade loadsfrontend/lightbox.{css,js}only on pages with a lightbox and skips them with:interactive="false". React and Vue load the overlay on first use, and hosts pass the theme's default as the newlightboxDefaultprop on<BlockTree>and<Template>. - Paste Markdown from any source (#1045). Markdown copied from code editors, notes apps and Google Docs, which wrap it in their own HTML, now becomes real blocks, as plain-text Markdown already did. Pasted blockquotes become Quote blocks, from Markdown and rendered pages alike, and pasted code keeps its language: Markdown fences,
language-*classes and rendered GitHub code blocks all fill in the Code block's Language setting. Ordinary text and rich paste are unchanged. Detection needs clear Markdown signals, so a stray*does nothing, and text with raw HTML or a script link outside a code fence stays literal. - Language selection and syntax highlighting for the Code block (#1044). The Code block's Settings panel has a Language select with 15 languages plus Plain text, and the code is highlighted on the published page in the Blade, React and Vue renderers. It's highlighted in the browser with a bundled copy of Prism, so saved markup stays plain, and a block with a language saves as
<code class="language-php">. Blocks with no language save and render exactly as before. The Blade renderer sends the highlighter only to pages with a highlighted block, and the React and Vue renderers import it on first use. A block with inline formatting such as a link keeps it and isn't highlighted, and the editor canvas doesn't highlight yet. The highlighter measures the background behind each block and picks a light or dark palette, so dark sites and dark sections work with no setup, and themes can override the colours with--ap-code-*custom properties. See Code Block. - Taxonomy and term filter for the Query Loop (#1029). The block's Filters panel now has a Taxonomy select and a Terms checkbox list, so authors can build "posts in category X" loops without editing block markup. The selection is saved as
query.taxQuery, and the preview updates as it changes. Terms come from a newGET /visual-editor/api/taxonomies/{taxonomy}/termsendpoint, which readscategory/post_tagfrom cms-framework and asks theap.visualEditor.termsfilter for anything else. postTypeson taxonomy config entries (#1029). This limits which Query Loop post types offer a taxonomy, and changing the post type clears a filter the new type doesn't support. Without it, a custom taxonomy is offered for every post type.categoryandpost_tagare always offered forpostonly. Filtering on a custom taxonomy also needs a resolver that handles it; for cms-framework that's cms-framework#439.- Content visibility rules (#1030). The Visibility panel has a new Content subsection that shows or hides a block based on the dynamic content inside it, so a Group with a "Related posts" heading disappears when there are no related posts, and a post navigation band disappears on a one-post blog. It checks Query Loops, Related Posts, Post Navigation Links and pagination inside the block, with Any / All and Show / Hide, and Hide when builds an empty-state fallback that can sit outside the loop. The rule is evaluated on the server in the Blade renderer and
TreePruner, and doesn't hide or dim anything in the editor canvas. React and Vue hosts must resolve the tree before pruning it, or every source counts as empty. See Block Visibility. ap.visualEditor.search.resourceUrlfilter (#1042). Supplies a public URL for records whose model has nopermalinkorurl. The link selector leaves out records with no URL, so custom content types need one of these to appear. See Hooks and Events.ap.visualEditor.visibility.registerContentSourcesfilter (#1030). Hosts can register their ownContentSource, and it appears in the panel. Custom rules can implement the newBlockAwareVisibilityRuleto read the block tree.setLightboxLabels()for the React and Vue renderers (#1046). The lightbox overlay's labels and the trigger's accessible name were fixed English in React and Vue, while Blade translates them. Pass translations once before rendering, as withsetBreakpoints();getLightboxLabels()and theLightboxLabelstype are exported too. See Renderers.
Changed
- One glyph registry for every social block (#1027). Author Social Icons and Social Share now draw from the registry that
scripts/sync-social-link-services.mjsgenerates, in the editor and in the Blade, React and Vue renderers. The hand-written Simple Icons registries are gone, and a glyph update is now made in one place. See the upgrade note above for the visible changes.
Fixed
-
Theme colours, sizes and fonts with camelCase slugs apply again (#1082). Since the preset declarations switched to kebab case, a palette slug such as
brandPrimarywas declared as--wp--preset--color--brand-primarywhile itshas-brandprimary-background-colorutility andvar:preset|color|brandPrimaryin theme styles still named--brandprimary, so those blocks lost the style. A camelCase slug now declares both names. -
An Image's breakpoint border lands on the image in React and Vue (#1052). A responsive
style.border.*override drew a second frame around the figure and caption, as Blade no longer does. It now joins the idle border on the<img>, under its own scope class, in Blade, React and Vue alike, including overrides saved in the olderstyle.<breakpoint>.bordershape. -
A camelCase shadow preset on an Image shows in React and Vue (#1052). A structured
{ "preset": "softGlow" }shadow pointed at--wp--preset--shadow--softglow, which nothing declares. It now uses--soft-glow, as Blade does. -
A saved
_veLightboxattribute no longer turns the lightbox on in React and Vue (#1046). A pasted or stored block carrying it opened a lightbox there while Blade, and the theme default, kept it off. The renderers now replace it with the theme default. -
One lightbox overlay when Blade and React or Vue share a page (#1046). A page that loaded both copies of the overlay, such as an Inertia page whose root view prints
<x-ve-blocks-styles>, opened two stacked overlays from one click, so Escape closed only one and the scroll lock was restored in the wrong order. The first copy to run now handles every lightbox on the page. -
Gallery lightboxes announce every step (#1046). Stepping to an image with empty or repeated alt text said nothing. The live region now reads the position too, such as "Image 2 of 5: A cat", from a new
positionlabel that Blade translates. -
The page behind an open lightbox is inert (#1046).
aria-modalalone let some screen readers' virtual cursor and touch exploration reach the page behind the dialog. Its siblings are nowinertwhile it's open, and anything that was already inert stays so. -
Code stays readable on mid-tone backgrounds (#1044). The light and dark token palettes only reach WCAG AA on near-white or near-black backgrounds, so a Code block on a colour such as the default palette's cyan-bluish gray or vivid cyan blue had unreadable tokens. On a background neither palette suits, the tokens now keep the text colour (
data-ap-code-tokens="mono"), and comments stay italic. A translucent background is measured as it appears over what's behind it. -
Very long code blocks no longer stall the page (#1044). A Blade code block with an unterminated
{{,{!!or{{--took time growing with the square of its length to highlight, as did one very long word in any language. Code over 50,000 characters, or with a word over 2,000 characters, now stays plain, and still gets its contrast fix on a dark or light section. -
The bundled Prism carries its licence (#1044). The generated highlighter now opens with Prism's copyright and MIT notice, and the React and Vue packages ship a
NOTICE.mdwith the full text. -
Backspace and Delete no longer merge text into a bound block (#1043). Paragraph, Heading and Button gained merging in this release, but a block whose text is bound to data kept the neighbour's text in its hidden fallback, where it vanished behind the binding. Merging into or out of such a block, including a bound list item, now moves the cursor instead.
-
The Query Loop's taxonomy filter works for a saved plural post type (#1029). A loop saved with
postType: "posts"offered no taxonomies and marked its filter unavailable. The post type is now read as its singular slug, as the server does. -
Term lists, link search and inline icons follow the configured API base (#1029, #1042, #1039). The Query Loop's term list, the link selector's search and the canvas's inline-icon glyphs called
/visual-editor/apieven when the host mounted the API elsewhere. -
Screen readers hear loading and empty states in the editor (#1029, #1030). The Query Loop's "Loading terms…" / "No terms found." and the Content rule's hint were live regions created together with their text, which screen readers often skip. Each is now always present and only its text changes.
-
The pasted-image import is easier to reach without a mouse (#1066). Snackbars now sit in a labelled Editor notifications region after the editor, so Tab from the inspector reaches the Import to media library action, and the editor announces when an import starts.
-
A content rule reads the Previous Post and Next Post blocks (#1030). A Post Navigation rule on a Group built from these containers found no matching block, so the band stayed on a one-post blog. They now count, each answering for its own direction.
-
Site-editor error messages are translatable (#1074, #1092, #1094). The query-parameter, record-id theme and revert errors added in this release were raw English.
-
A malformed redirect during a media import returns a 422 (#1066). A remote host answering with an unparseable
Locationcaused a 500. -
An
<svginside an attribute survives the markup filter (#1062). Text such as<img alt="<svg/>">was cut at the attribute, which garbled the element and turned its other attributes into text. -
A host's markup allowlist can't break every save (#1062). An
ap.visualEditor.contentFilter.allowedHtmlresult that mapped a tag to anything but a list of attributes threw on every save. Such entries are now ignored. -
The link selector's search does less work per keystroke (#1042). Each resource's search column is looked up once per request, and the
viewpolicy and URL are only worked out for rows until the list is full. -
Theme borders and shadows on Image blocks land on the image (#1082). The Blade renderer printed a theme's
styles.blocksborder for Image on the<figure>, so it framed the caption too, and an image with its own border showed two frames. Image and Post Featured Image borders and shadows, and Avatar borders, now go to the<img>, as they already did for block style variations.styles.*.shadowis also compiled now, on blocks, elements and the root, and a Button or Table shadow lands on its link or<table>. A block with a gradient border keeps it alone, so the theme's border doesn't add a frame on the image inside the ring.artisanpack/*block styles now target both.wp-block-xand.wp-block-artisanpack-x, as block style variations already did, soartisanpack/imagetheme styles reach its.wp-block-imagefigure. The editor canvas reads these styles from cms-framework, which is tracked in cms-framework#449. -
Box shadows can't open a CSS comment (#1083). A structured shadow field such as
offsetX: "/*"passed the character filter and opened a comment that could switch off other blocks' CSS later in the shared<style>block. An offset, blur, spread, color or gradient that holds a comment delimiter,//or an unbalanced parenthesis is now treated as unset, in the Blade renderer and the editor canvas. A shadow or gradient-border gradient must also be one gradient that calls only color and math functions, sourl()andimage-set()can no longer make visitors fetch an outside image. A shadow whose gradient is rejected is dropped rather than painted solid. Gradient borders had the same gaps, so their gradients, width and radius get the same checks. The gradient check moved toCssValue::isGradient(), andBlockSupports::safeGradientValue()uses it. The editor canvas also drops a raw shadow value that opens a comment, as the server already did. -
Shadow presets with underscores resolve in Blade (#1084). A theme preset such as
soft_glowis declared as--wp--preset--shadow--soft-glow, but a block's shadow referenced--soft_glowand didn't paint. The Blade renderer and the editor canvas now normalize the slug the same way the declaration does, and Blade's theme.json preset declarations now split camelCase slugs too, sosoftGlowis declared as--soft-glowto match its references. -
Long state scope IDs keep their Image hover styles (#1085). Adding
-imgto a valid 61 to 64-character_scopeIdpushed it over the limit, so the image's hover border and shadow were dropped without an error. An ID that long is now shortened and hashed before the suffix. IDs the editor creates are unchanged. -
Saved block markup can't replace a post's resolved values (#1078). A
_resolved*attribute saved in a block won over what the post resolves to, so anyone who could edit block markup could point a "Share on Facebook" or author profile chip at any URL. The same was true of every block the post resolver fills in, such as Post Title's link. Rendering against a post now strips those keys from the saved tree first, in<x-ve-blocks :post>and inQueryInliner::inline()when it's given a host post, and a Query Loop's template is stripped for every result, including in the React and Vue renderers'queryResultsexpansion. There, a block those renderers can't resolve themselves, such as the social chips, renders with no saved links. With a post in scope, a Query Loop's pagination, total and title blocks also take the query's values over saved ones. A React or Vue host that resolves posts on the server should run its saved tree throughResolvedAttributes::strip()before stamping it. A host that passes a tree it resolved itself can keep its values with<x-ve-blocks :trust-resolved="true">orQueryInliner::inline( $tree, $post, false ). #1096 extends this to every block and to renders without a post. Query Loop, Related Posts and Single Content templates are always resolved again for each result, even then. -
Saved block markup can't replace any resolved value (#1096). #1078 closed this for post values only. A saved
_resolved*attribute still won for Login/out (its link and login form), the site title and URL, Business Info (including the address map's<iframe>source, which got around the save filter), Breadcrumbs, comment author and reply links, and Single Content's post state. It also won for every block in a tree rendered without a post, such as a template part on an archive page or a Query Loop's next-page link.<x-ve-blocks>now strips every_resolved*key from the saved tree before any resolver runs, with or without a post, and so do<x-ve-template>,BlockRenderer::renderMarkup(), navigation overlay parts, the Snippet block andQueryInliner::inline(). See the upgrade note above for host-resolved trees. The renderer parity fixtures now render withtrust-resolved. -
Site-editor list filters reject array values (#1092).
?status[]=xon the templates list,?area[]=or?slug[]=on template parts, and?source[]=or?post_type[]=on patterns returned a 500. They now return a 422 keyed by the parameter, as?theme[]=already did. -
Static site-editor config can be keyed by an all-digit slug (#1093). A template or part keyed
'404'inartisanpack.visual-editor.site-editor.*was listed twice, so every site-editor request returned a 500 with a duplicate-identifier error. The static map now replaces filter entries by key instead of renumbering them. cms-framework's own contributor renumbers the key too, which cms-framework#447 tracks. -
A file-only template with an all-digit slug has its own id (#1094). A theme's
404template with no saved override had the id404, the same as a different template's row id 404, so opening it in the site editor loaded that other template. A file-only template or part whose slug is all digits now has the id<theme>~<slug>(for examplemy-theme~404), whichshow,updateanddestroyaccept. The templates list also filters bythemeandslug, as the template parts list already did. Other ids are unchanged. -
Social chip colors only set a color (#1079). The icon and background colors on Author Social Icons and Social Share were written into the chip's
styleunchecked, so a value such asred;position:fixed;inset:0added its own declarations. A value that isn't a safe CSS value is now dropped, as the Social Icons block already does, in the Blade, React and Vue renderers and in the editor canvas. -
Lightbox images stay ordinary images when the lightbox is off (#1070). With
<x-ve-blocks-styles :interactive="false" />, or on a React or Vue page whose overlay chunk fails to load, an image set to Enlarge on click kept the block library's flex column, which stretched a small image to the width of its figure, and a zoom-in cursor that led nowhere. The layout baseline in all three renderers now keeps the figure a block and saves the zoom-in cursor for when the overlay is ready. -
A Gallery set to None no longer mixes lightbox behavior (#1071). When a theme turned on the lightbox default after a Gallery was saved with None, the Gallery's older images followed the theme and enlarged, while images added later were saved with the lightbox off. Opening the Gallery in the post editor did the same to its saved images. Now, when no image in the Gallery has its own lightbox setting, new images follow the theme like the rest. Images added to a Gallery that was emptied keep None, and picking a link option still sets every image the same way.
-
Custom SVGs can no longer carry markup in comments (#1062). The SVG sanitizer kept comments, processing instructions and CDATA sections, which a browser reads differently from an XML parser, so markup hidden in one could run. Everything that goes through it is covered, including custom icons.
-
Block content is sanitized on save (#1062). Every block-content save now runs through a server-side allowlist unless the user holds
unfiltered_html, whichever route wrote it, and keeps inline math, inline icons and every format the editor writes. Image alt text and Query Loop search terms aren't touched. See the upgrade note. -
>at the start of a paragraph makes a Quote block again (#1063). Quote, Cover, File, Gallery, Columns, Details, Group and the Embed fallback createdcore/paragraph,core/imageand similar blocks, which aren't registered here, so these actions failed: the Quote shortcut and its Verse and Pullquote transforms, the Cover and Columns transforms, dropping files, and adding a Gallery image. -
A paste no longer fails on content no block matches (#1067). Upstream hard-codes
core/htmlfor such content, so it's now registered, and appears in the inserter only for users withunfiltered_html. Plain text that reads as LaTeX, such asx^2 + y^2 = z^2, failed the same way oncore/math, and now pastes as a paragraph. -
Code pasted from VS Code stays as code (#1065). In Chromium browsers, text VS Code reports as anything but Markdown or plain text no longer converts, so a Python or YAML file stays as it was. A YAML list of mappings also no longer converts from any source, and text with HTML in inline code, such as
`<div>`, now converts. -
Two Tabs blocks on one page no longer repeat element IDs (#1057). Tab IDs were only unique within one block, so a duplicated Tabs block, or any two whose sections had no
tabId, printed the sameid,href,aria-controlsandaria-labelledbyvalues. The Blade, React and Vue renderers now keep IDs unique in document order, and a repeat takes a-2,-3, … suffix. The first block keeps its IDs, but a link to a tab in a later block must use the new ID. Blade covers every tree in a request and each Dynamic Loop row. React and Vue cover oneBlockTree, so two trees on a page can still repeat an ID. If you published the block views, re-publishblocks/artisanpack/tabs.blade.phpto pick this up. -
The editor no longer opens blank on content seeded from code (#1055). A page whose stored blocks had no
clientId, such as a theme starter page seeded withsetBlockContent(), opened with an empty canvas even though it rendered on the front end, and the next edit would have replaced its content. Every block now gets the fields the editor needs when the page loads, including blocks stored in theblockNameandattrsshapes. The top bar also no longer shows "Unsaved changes" while content is loading or after it fails to load. -
Image focal points reach the page (#1054). The Blade, React and Vue renderers and the editor canvas ignored an Image block's
focalPoint, so a cropped image always showed its center. They now printobject-positionalongsideobject-fit, assave()does. A focal point needs a scale. On the page, a missing axis uses the center, and any other value that isn't a number from 0 to 1 drops the focal point. The canvas centers a non-number axis instead. If you published the block views, re-publishblocks/core/image.blade.phpto pick this up. -
Image borders and shadows land on the image, not the caption (#1052). The Blade, React and Vue renderers painted an Image block's border, radius and shadow on the
<figure>, so the frame wrapped the caption and the image's own corners stayed square. They now paint on the<img>assave()does, while spacing and alignment stay on the figure. In Blade, hover and breakpoint overrides of the border and shadow move with them. The figure gainshas-custom-borderand the caption gainswp-element-caption, so theme styles aimed at either now apply. React and Vue now print the block's shadow, which they ignored before, but not its hover or breakpoint overrides. The editor canvas now matches: it showed no border at all on an Image block, and it painted the shadow around the caption. A gradient border or shadow stays on the figure, because an<img>can't draw one. If you published the block views, re-publishblocks/core/image.blade.phpto pick this up. -
Inline code and code panels are readable on dark themes in the editor (#1051). The canvas painted a fixed light background on every
codeandprewith no text color, so a dark theme's text was nearly invisible. Both now take a tint from the text color, in all editor canvases. The rules also dropped to zero specificity, sostyles.blocksvalues in theme.json for Code and Preformatted apply in the canvas as they do on the front end. Code blocks no longer show a second chip inside their panel, and Verse no longer gets a panel. -
Reverting a template or template part by slug reports the change (#1018).
DELETE /visual-editor/api/templates/{slug}and its template-parts counterpart deleted with a query, soeloquent.deletedlisteners only fired on the numeric id URL and caches stayed stale. Both URL forms now delete through the model and fireap.cmsFramework.siteEditor.reverted, which, unlike the cms-framework resolvers, can name a theme other than the active one. Adeletinglistener that cancels the delete now gets a 409 rather than a 204. -
All-digit template and template-part slugs work by slug (#1074). The site-editor endpoints read any all-digit URL value as a row id, so a template with the slug
404couldn't be read, saved or reverted, andDELETE /visual-editor/api/templates/404deleted whichever row had id 404, in any theme. An all-digit value is now resolved as a row id in the target theme first and then as a slug in that theme, so the editor's id-based requests reach the same rows as before and a404template can be read, saved and reverted. ADELETEwith?theme=matches the slug first. A request that names a theme no longer changes a row in a different theme, and gets a 404 instead. Patterns try an all-digit value as a slug when no row has that id. See Templates. -
An array
?theme=value returns a 422 (#1075).?theme[]=xon the template, template-part and menu endpoints caused a 500. It now gets a 422 with athemeerror. -
Query Loop previews with a sticky setting load again (#1002). A query block with
query.stickyset toonlyorexcludefailed in the editor with "Visual editor request failed with status 422", becausePOST /visual-editor/api/query/resolveonly accepted a boolean. It now takes thecore/querystrings, includingignore, and passes them to the resolver. A boolean still works:truebecomesonlyandfalsebecomesexclude. -
Backspace and Delete merge text blocks again (#1043). Backspace at the start of a block, or Delete at the end of one, joins it to its neighbour with the cursor at the join, and inline formatting and links survive on both sides. This covers Paragraph, Heading, Code, Verse, Preformatted, List Item and Button, plus merges between block types such as Heading into Paragraph. Blocks that transformed to
core/paragraph, which the editor no longer registers, also gain a working transform to Paragraph in the block switcher. List items now follow upstream around nested lists: Backspace on a nested item outdents it, and an item merging upward lands on the last line above it. Custom blocks can exportmergeto do the same. See Custom Blocks. -
Transforming an Embed to a Paragraph escapes its URL (#1043). The transform pasted the URL into the link's markup unescaped, which also broke URLs containing
&or". It now escapes the URL and is only offered forhttpandhttpsURLs. -
The link selector finds site content (#1042). Typing in the link selector now searches every registered content type and lists matches, in inline links, Button, Image and Icon, in both the post and site editors. Choosing a result inserts its public URL, typing a URL still works, and opening the selector shows recent content. Results come from a new
GET /visual-editor/api/search/linksendpoint and only include records the user can view. The Navigation link picker now finds content registered through theap.visualEditor.resourcesfilter, such as cms-framework's posts and pages, which it missed whenresourcesconfig was empty. -
Bound blocks in the editor show the same record as the front end (#1041). A block bound to a field inside Single Content or a Query Loop row resolved against the page being edited, so the canvas showed its saved fallback. It now resolves against the picked entry or the row, and the Bindings panel lists that record's fields. Every block now declares
postId,postTypeandartisanpack/postPreviewinusesContext, so a customeditor.BlockEditfilter can see those keys inprops.context. -
A bound Heading can't run markup stored in a field (#1041). The canvas removed only scripts and event handlers from a bound Heading, so an
<iframe srcdoc>orjavascript:link saved in a field could run in the session of whoever opened the page. Bound Heading content is now limited to inline formatting, with links restricted to http, https, mailto, tel and relative URLs, and heading anchors parse their content in an inert document. -
Blocks inside a Group have the same spacing in the editor as on the front end (#1040). Flow and constrained containers now use the inherited
blockGapin the post, template and pattern editors, and a Group's own Block spacing overrides it, including between paragraphs and headings. The template and pattern editors never received the layout baseline or Gutenberg's per-container rules, so flex Groups there stacked with no gap, and they now behave as they do on the site. Default element margins dropped to zero specificity so layout rules can win, and a theme's bareporh2margin now applies in the canvas too. Root blocks in the post editor are spaced byblockGap, as they are inside Post Content. -
The editor canvas matches the front end for inline icons, custom flex values and empty Groups (#1039). Inline icons now render at
1emin the post editor, because stylesheets underformats/reach the canvas iframe, and an icon saved without its glyph shows the real one in both editors. Custom Flex panel values such as a14pxbasis now apply in Group, Column, Columns and Grid Item, including responsive values. An empty Group with its own background, border or size keeps that size: its appender only shows while the Group is selected, and it sits over the shape. A bare empty Group keeps its appender, since it has no other size. Masonry styles also reach the canvas now. -
A page with a breadcrumbs block carries one
BreadcrumbList(#1038).breadcrumbsSchemanow defaults to false inblock.jsonand the Blade, React and Vue renderers, so a site that emits JSON-LD breadcrumbs in the head doesn't also get a microdata list in the body. The toggle stays in the block's settings for sites that want the microdata. See the upgrade note above.
Security
- Markup saved under a skipped key can't be moved into a Custom HTML block (#1062). The save filter left alt text and Query Loop search terms alone, but then treated anything stored there as already approved anywhere in the tree. An author without
unfiltered_htmlcould save an event handler as an image's alt text and, on the next save, place the same string in a Custom HTML block, which prints it unescaped. Stored values under those keys no longer vouch for anything. - Post titles and excerpts are filtered on save (#1062). They aren't block content, so neither save path filtered them, and Post Title and Post Excerpt print them unescaped. A new or changed value now goes through the allowlist for users without
unfiltered_html. See the upgrade note. - The media import can't be made to unpack a compressed response (#1066). The HTTP client decoded gzip, deflate and brotli bodies after the size cap had counted the compressed bytes, so a small response could expand to gigabytes on disk and in memory. The importer now asks for an unencoded response, never decodes, and refuses an encoded body.
- The media import refuses more non-public addresses (#1066). Multicast, benchmarking (
198.18.0.0/15), IETF protocol assignments, the IPv6 discard prefix, Teredo and IPv4-translated (::ffff:0:0/96) addresses passed the public-address check. Only globally routable addresses are fetched now. - A template saved for another theme no longer copies the active theme's file (#1074).
PUT /visual-editor/api/templates/{slug}(and template parts) with another theme in the body seeded the new row from the active theme's file, including its title and area, and kept that file's Custom CSS and markup as if they were already stored. The new row now starts from the request alone, and a missing title returns a 422.