mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
When applying the 'editable_slug' filter, add a second param that provides more context.
Props MikeSchinkel, jesin. Fixes #31568. git-svn-id: https://develop.svn.wordpress.org/trunk@34319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -273,8 +273,9 @@ function get_inline_data($post) {
|
||||
/** This filter is documented in wp-admin/edit-tag-form.php */
|
||||
echo '
|
||||
<div class="hidden" id="inline_' . $post->ID . '">
|
||||
<div class="post_title">' . $title . '</div>
|
||||
<div class="post_name">' . apply_filters( 'editable_slug', $post->post_name ) . '</div>
|
||||
<div class="post_title">' . $title . '</div>' .
|
||||
/** This filter is documented in wp-admin/edit-tag-form.php */
|
||||
'<div class="post_name">' . apply_filters( 'editable_slug', $post->post_name, $post ) . '</div>
|
||||
<div class="post_author">' . $post->post_author . '</div>
|
||||
<div class="comment_status">' . esc_html( $post->comment_status ) . '</div>
|
||||
<div class="ping_status">' . esc_html( $post->ping_status ) . '</div>
|
||||
|
||||
Reference in New Issue
Block a user