Make WordPress Core

Ticket #10966: template.php.diff

File template.php.diff, 3.0 KB (added by dwright, 15 years ago)

newest patch for wp-admin/includes/template.php

  • wp-admin/includes/template.php

     
    177177                                $output .= "<td $attributes>$edit";
    178178                                $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
    179179                                $output .= '<div class="name">' . $qe_data->name . '</div>';
    180                                 $output .= '<div class="slug">' . $qe_data->slug . '</div>';
     180                                $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>';
    181181                                $output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>';
    182182                                break;
    183183                        case 'description':
    184184                                $output .= "<td $attributes>$category->description</td>";
    185185                                break;
    186186                        case 'slug':
    187                                 $output .= "<td $attributes>$category->slug</td>";
     187                                $output .= "<td $attributes>" . apply_filters('editable_slug', $category->slug) . "</td>";
    188188                                break;
    189189                        case 'posts':
    190190                                $attributes = 'class="posts column-posts num"' . $style;
     
    347347                                $output .= "<td $attributes>$edit";
    348348                                $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
    349349                                $output .= '<div class="name">' . $qe_data->name . '</div>';
    350                                 $output .= '<div class="slug">' . $qe_data->slug . '</div>';
     350                                $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>';
    351351                                $output .= '<div class="cat_parent">' . $qe_data->parent . '</div></div></td>';
    352352                                break;
    353353                        case 'description':
    354354                                $output .= "<td $attributes>$category->description</td>";
    355355                                break;
    356356                        case 'slug':
    357                                 $output .= "<td $attributes>$category->slug</td>";
     357                                $output .= "<td $attributes>" . apply_filters('editable_slug', $category->slug) . "</td>";
    358358                                break;
    359359                        case 'links':
    360360                                $attributes = 'class="links column-links num"' . $style;
     
    681681                                        $out .= '</div>';
    682682                                        $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
    683683                                        $out .= '<div class="name">' . $qe_data->name . '</div>';
    684                                         $out .= '<div class="slug">' . $qe_data->slug . '</div></div></td>';
     684                                        $out .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div></div></td>';
    685685                                        break;
    686686                                case 'description':
    687687                                        $out .= "<td $attributes>$tag->description</td>";
    688688                                        break;
    689689                                case 'slug':
    690                                         $out .= "<td $attributes>$tag->slug</td>";
     690                                        $out .= "<td $attributes>" . apply_filters('editable_slug', $tag->slug) . "</td>";
    691691                                        break;
    692692                                case 'posts':
    693693                                        $attributes = 'class="posts column-posts num"' . $style;
     
    12951295        echo '
    12961296<div class="hidden" id="inline_' . $post->ID . '">
    12971297        <div class="post_title">' . $title . '</div>
    1298         <div class="post_name">' . $post->post_name . '</div>
     1298        <div class="post_name">' . apply_filters('editable_slug', $post->post_name) . '</div>
    12991299        <div class="post_author">' . $post->post_author . '</div>
    13001300        <div class="comment_status">' . $post->comment_status . '</div>
    13011301        <div class="ping_status">' . $post->ping_status . '</div>