Make WordPress Core

Ticket #35317: 35317.patch

File 35317.patch, 656 bytes (added by ocean90, 9 years ago)
  • src/wp-includes/nav-menu.php

     
    739739                                $menu_item->url = get_permalink( $menu_item->object_id );
    740740
    741741                                $original_object = get_post( $menu_item->object_id );
    742                                 $original_title = $original_object->post_title;
     742                                /** This filter is documented in wp-includes/post-template.php */
     743                                $original_title = apply_filters( 'the_title', $original_object->post_title, $original_object->ID );
    743744
    744745                                if ( '' === $original_title ) {
    745746                                        /* translators: %d: ID of a post */