WordPress.org

Make WordPress Core

Changeset 18106


Ignore:
Timestamp:
06/01/11 20:33:45 (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.