WordPress.org

Make WordPress Core

Changeset 31688


Ignore:
Timestamp:
03/09/2015 07:03:12 AM (5 years ago)
Author:
DrewAPicture
Message:

Update hook docs for the editable_slug filter as it is evaluated in more than just a term slug context, it is also leveraged for use with post URIs.

See #31569.

File:
1 edited

Legend:

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

    r31687 r31688  
    9292            <?php
    9393            /**
    94              * Filter the editable term slug.
     94             * Filter the editable slug.
     95             *
     96             * Note: This is a multi-use hook in that it is leveraged both for editable
     97             * post URIs and term slugs.
    9598             *
    9699             * @since 2.6.0
    97100             *
    98              * @param string $tag_slug The current term slug.
     101             * @param string $slug The editable slug. Will be either a term slug or post URI depending
     102             *                     upon the context in which it is evaluated.
    99103             */
    100104            $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug ) : '';
Note: See TracChangeset for help on using the changeset viewer.