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:
@@ -694,8 +694,9 @@ function post_comment_meta_box( $post ) {
|
||||
*/
|
||||
function post_slug_meta_box($post) {
|
||||
/** This filter is documented in wp-admin/edit-tag-form.php */
|
||||
$editable_slug = apply_filters( 'editable_slug', $post->post_name, $post );
|
||||
?>
|
||||
<label class="screen-reader-text" for="post_name"><?php _e('Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( apply_filters( 'editable_slug', $post->post_name ) ); ?>" />
|
||||
<label class="screen-reader-text" for="post_name"><?php _e('Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user