Apply editable_slug filter in more places. Props dwright. fixes #10966

git-svn-id: http://svn.automattic.com/wordpress/trunk@12277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-25 15:11:57 +00:00
parent 474642271d
commit 9d68962762

View File

@ -177,14 +177,14 @@ function _cat_row( $category, $level, $name_override = false ) {
$output .= "<td $attributes>$edit"; $output .= "<td $attributes>$edit";
$output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
$output .= '<div class="name">' . $qe_data->name . '</div>'; $output .= '<div class="name">' . $qe_data->name . '</div>';
$output .= '<div class="slug">' . $qe_data->slug . '</div>'; $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>';
$output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>'; $output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>';
break; break;
case 'description': case 'description':
$output .= "<td $attributes>$category->description</td>"; $output .= "<td $attributes>$category->description</td>";
break; break;
case 'slug': case 'slug':
$output .= "<td $attributes>$category->slug</td>"; $output .= "<td $attributes>" . apply_filters('editable_slug', $category->slug) . "</td>";
break; break;
case 'posts': case 'posts':
$attributes = 'class="posts column-posts num"' . $style; $attributes = 'class="posts column-posts num"' . $style;
@ -347,14 +347,14 @@ function link_cat_row( $category, $name_override = false ) {
$output .= "<td $attributes>$edit"; $output .= "<td $attributes>$edit";
$output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
$output .= '<div class="name">' . $qe_data->name . '</div>'; $output .= '<div class="name">' . $qe_data->name . '</div>';
$output .= '<div class="slug">' . $qe_data->slug . '</div>'; $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>';
$output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>'; $output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>';
break; break;
case 'description': case 'description':
$output .= "<td $attributes>$category->description</td>"; $output .= "<td $attributes>$category->description</td>";
break; break;
case 'slug': case 'slug':
$output .= "<td $attributes>$category->slug</td>"; $output .= "<td $attributes>" . apply_filters('editable_slug', $category->slug) . "</td>";
break; break;
case 'links': case 'links':
$attributes = 'class="links column-links num"' . $style; $attributes = 'class="links column-links num"' . $style;
@ -681,13 +681,13 @@ function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) {
$out .= '</div>'; $out .= '</div>';
$out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
$out .= '<div class="name">' . $qe_data->name . '</div>'; $out .= '<div class="name">' . $qe_data->name . '</div>';
$out .= '<div class="slug">' . $qe_data->slug . '</div></div></td>'; $out .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div></div></td>';
break; break;
case 'description': case 'description':
$out .= "<td $attributes>$tag->description</td>"; $out .= "<td $attributes>$tag->description</td>";
break; break;
case 'slug': case 'slug':
$out .= "<td $attributes>$tag->slug</td>"; $out .= "<td $attributes>" . apply_filters('editable_slug', $tag->slug) . "</td>";
break; break;
case 'posts': case 'posts':
$attributes = 'class="posts column-posts num"' . $style; $attributes = 'class="posts column-posts num"' . $style;
@ -1295,7 +1295,7 @@ function get_inline_data($post) {
echo ' echo '
<div class="hidden" id="inline_' . $post->ID . '"> <div class="hidden" id="inline_' . $post->ID . '">
<div class="post_title">' . $title . '</div> <div class="post_title">' . $title . '</div>
<div class="post_name">' . $post->post_name . '</div> <div class="post_name">' . apply_filters('editable_slug', $post->post_name) . '</div>
<div class="post_author">' . $post->post_author . '</div> <div class="post_author">' . $post->post_author . '</div>
<div class="comment_status">' . $post->comment_status . '</div> <div class="comment_status">' . $post->comment_status . '</div>
<div class="ping_status">' . $post->ping_status . '</div> <div class="ping_status">' . $post->ping_status . '</div>