Make WordPress Core

Ticket #17598: editable-slug.diff

File editable-slug.diff, 713 bytes (added by yoavf, 13 years ago)
  • wp-admin/includes/meta-boxes.php

     
    506506 */
    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}
    512512