mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user