Ticket #5899: edit.php.2.diff

File edit.php.2.diff, 1.2 kB (added by nerrad, 10 months ago)

Correction so literal string is not a variable. Translation is executed prior to filtering.

  • wp-admin/edit.php

    old new  
    7777        $h2_cat    = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in “%s”'), single_cat_title('', false) ) : ''; 
    7878        $h2_tag    = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with “%s”'), single_tag_title('', false) ) : ''; 
    7979        $h2_month  = isset($_GET['m'])   && $_GET['m']   ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : ''; 
    80         printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month ); 
     80        do_action('manage_posts_title'); 
     81        $h2_result_reorder =   apply_filters('edit_manage_posts_reorder', _c('%1$s%2$s%3$s%4$s%5$s%6$s|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}') ); 
     82        $h2_titles = array($h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month); 
     83        $h2_result_titles = apply_filters('edit_manage_posts_titles', $h2_titles); 
     84        vprintf( $h2_result_reorder, $h2_result_titles ); 
    8185} 
    8286?></h2> 
    8387