Fix the editable_slug hook documentation, the PHPDoc must come directly before the hook call, with no HTML inbetween.
Props DrewAPicture. Fixes #31569 git-svn-id: https://develop.svn.wordpress.org/trunk@31687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b96b1db015
commit
1f90e70b7d
@ -95,10 +95,11 @@ do_action( "{$taxonomy}_term_edit_form_tag" );
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @param string $slug The current term slug.
|
||||
* @param string $tag_slug The current term slug.
|
||||
*/
|
||||
$slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug ) : '';
|
||||
?>
|
||||
<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" />
|
||||
<td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" />
|
||||
<p class="description"><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
Loading…
Reference in New Issue
Block a user