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. Built from https://develop.svn.wordpress.org/trunk@31688 git-svn-id: http://core.svn.wordpress.org/trunk@31669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f7856aabe
commit
4815bfc2a0
|
@ -91,11 +91,15 @@ do_action( "{$taxonomy}_term_edit_form_tag" );
|
|||
<th scope="row"><label for="slug"><?php _e( 'Slug' ); ?></label></th>
|
||||
<?php
|
||||
/**
|
||||
* Filter the editable term slug.
|
||||
* Filter the editable slug.
|
||||
*
|
||||
* Note: This is a multi-use hook in that it is leveraged both for editable
|
||||
* post URIs and term slugs.
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @param string $tag_slug The current term slug.
|
||||
* @param string $slug The editable slug. Will be either a term slug or post URI depending
|
||||
* upon the context in which it is evaluated.
|
||||
*/
|
||||
$slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug ) : '';
|
||||
?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31687';
|
||||
$wp_version = '4.2-alpha-31688';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue