WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17217


Ignore:
Timestamp:
04/22/11 17:03:30 (4 years ago)
Author:
Otto42
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17217 – Description

    initial v1  
    11The Walker_PageDropdown has this code: 
    22 
    3 `$title = esc_html($page->post_title); 
    4 $title = apply_filters( 'list_pages', $page->post_title );` 
     3{{{ 
     4$title = esc_html($page->post_title); 
     5$title = apply_filters( 'list_pages', $page->post_title ); 
     6}}} 
    57 
    68Meaning that the esc_html is not applied properly, since $title just gets replaces with the $post_title again. 
    79 
    810Fix is this: 
    9 `$title = esc_html($page->post_title); 
    10 $title = apply_filters( 'list_pages', $title );` 
     11{{{ 
     12$title = esc_html($page->post_title); 
     13$title = apply_filters( 'list_pages', $title ); 
     14}}} 
    1115 
    1216Patch attached.