Make WordPress Core

Changeset 31687


Ignore:
Timestamp:
03/09/2015 06:42:58 AM (12 years ago)
Author:
dd32
Message:

Fix the editable_slug hook documentation, the PHPDoc must come directly before the hook call, with no HTML inbetween.
Props DrewAPicture. Fixes #31569

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r30998 r31687  
    9696                         * @since 2.6.0
    9797                         *
    98                          * @param string $slug The current term slug.
    99                          */
     98                         * @param string $tag_slug The current term slug.
     99                         */
     100                        $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug ) : '';
    100101                        ?>
    101                         <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr( apply_filters( 'editable_slug', $tag->slug ) ); ?>" size="40" />
     102                        <td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" />
    102103                        <p class="description"><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
    103104                </tr>
Note: See TracChangeset for help on using the changeset viewer.