[wp-trac] [WordPress Trac] #48622: `editable_slug` filter does not pass the correct value
WordPress Trac
noreply at wordpress.org
Thu Nov 14 05:26:05 UTC 2019
#48622: `editable_slug` filter does not pass the correct value
--------------------------+-----------------------------
Reporter: noisysocks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 5.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------------
Comment (by noisysocks):
Confirmed that is happening in latest `trunk` running latest Gutenberg
plugin.
The filter is getting by this line in `wp-admin/includes/post.php`:
{{{
$permalink = array( $permalink, apply_filters( 'editable_slug',
$post->post_name, $post ) );
}}}
I'm not sure why `$post->post_name` differs when using the block editor.
Somebody will need to investigate further, and:
- If this is the correct behaviour, update the `editable_slug` docs.
- If this is not correct, update the `apply_filter` logic.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48622#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list