[wp-trac] [WordPress Trac] #6: the_excerpt() on non-excerpt posts doesn't stripslashes
WordPress Trac
noreply at wordpress.org
Mon Jan 30 19:14:44 UTC 2023
#6: the_excerpt() on non-excerpt posts doesn't stripslashes
--------------------------------------+---------------------
Reporter: anonymousbugger | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Template | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by prbot):
''This ticket was mentioned in [https://github.com/WordPress/wordpress-
develop/pull/3946 PR #3946] on [https://github.com/WordPress/wordpress-
develop/ WordPress/wordpress-develop] by
[https://profiles.wordpress.org/jorgefilipecosta/ @jorgefilipecosta].''
Backports https://github.com/WordPress/gutenberg/pull/45814 into the core.
## Testing
I pasted the following sample pattern on lib/compat/wordpress-6.2/block-
patterns.php.
{{{
register_block_pattern(
'query/template-type-test',
array(
'title' => __( 'Template type test', 'gutenberg' ),
'templateTypes' => array( '404' ),
'content' => '
<p class="has-text-align-
center has-x-large-font-size">404</p>
',
)
);
}}}
I opened the post editor and the developer tools and pasted `wp.apiFetch(
{ path: '/wp/v2/block-patterns/patterns' } ).then( console.log );` on the
browser console.
I verified that the API response for included query/template-type-test
include 404 in the templateTypes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/6#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list