WordPress.org

Make WordPress Core

Ticket #8592: list-pages-args.diff

File list-pages-args.diff, 641 bytes (added by sillybean, 9 months ago)

Allow arguments to be filtered in wp_list_pages() and wp_dropdown_pages()

  • wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    784784        ); 
    785785 
    786786        $r = wp_parse_args( $args, $defaults ); 
     787    $r = apply_filters( 'wp_dropdown_pages_args', $r ); 
    787788        extract( $r, EXTR_SKIP ); 
    788789 
    789790        $pages = get_pages($r); 
     
    829830        ); 
    830831 
    831832        $r = wp_parse_args( $args, $defaults ); 
     833    $r = apply_filters( 'wp_list_pages_args', $r ); 
    832834        extract( $r, EXTR_SKIP ); 
    833835 
    834836        $output = '';