WordPress.org

Make WordPress Core

Changeset 18106


Ignore:
Timestamp:
06/01/2011 08:33:45 PM (7 years ago)
Author:
ryan
Message:

Apply editable_slug filter in post_slug_meta_box(). Props yoavf, ramiy. fixes #17598

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r17769 r18106  
    507507function post_slug_meta_box($post) {
    508508?>
    509 <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( $post->post_name ); ?>" />
     509<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) ); ?>" />
    510510<?php
    511511}
Note: See TracChangeset for help on using the changeset viewer.