WordPress.org

Make WordPress Core

Ticket #1551: 1551.diff

File 1551.diff, 566 bytes (added by whimboo, 14 years ago)

Patch to allow a localized title for page entries

  • wp-includes/template-functions-post.php

     
    326326        $page_tree = Array();
    327327        foreach($pages as $page) {
    328328                // set the title for the current page
    329                 $page_tree[$page->ID]['title'] = $page->post_title;
     329                $page_tree[$page->ID]['title'] = __($page->post_title);
    330330                $page_tree[$page->ID]['name'] = $page->post_name;
    331331
    332332                // set the selected date for the current page