When applying the 'editable_slug' filter, add a second param that provides more context.

Props MikeSchinkel, jesin.
Fixes #31568.


git-svn-id: https://develop.svn.wordpress.org/trunk@34319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-19 05:48:30 +00:00
parent 09e3149b7a
commit 1c5f85e1a4
5 changed files with 14 additions and 10 deletions
@@ -373,7 +373,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$out .= '<div class="name">' . $qe_data->name . '</div>';
/** This filter is documented in wp-admin/edit-tag-form.php */
$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
$out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
return $out;
@@ -471,7 +471,7 @@ class WP_Terms_List_Table extends WP_List_Table {
*/
public function column_slug( $tag ) {
/** This filter is documented in wp-admin/edit-tag-form.php */
return apply_filters( 'editable_slug', $tag->slug );
return apply_filters( 'editable_slug', $tag->slug, $tag );
}
/**