WordPress.org

Make WordPress Core

Changeset 4966


Ignore:
Timestamp:
03/04/2007 06:48:19 PM (11 years ago)
Author:
markjaquith
Message:

Pass draft titles through the_title filter. Props jhodgdon. fixes #3894

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r4935 r4966  
    2222        if (0 != $i)
    2323            echo ', ';
    24         $draft->post_title = stripslashes($draft->post_title);
     24        $draft->post_title = apply_filters('the_title', stripslashes($draft->post_title));
    2525        if ($draft->post_title == '')
    2626            $draft->post_title = sprintf(__('Post #%s'), $draft->ID);
     
    3939        if (0 != $i)
    4040            echo ', ';
    41         $draft->post_title = stripslashes($draft->post_title);
     41        $draft->post_title = apply_filters('the_title', stripslashes($draft->post_title));
    4242        if ($draft->post_title == '')
    4343            $draft->post_title = sprintf(__('Post #%s'), $draft->ID);
Note: See TracChangeset for help on using the changeset viewer.