Ticket #21596: wp_get_archives.php.patch
File wp_get_archives.php.patch, 755 bytes (added by , 12 years ago) |
---|
-
wp-includes/general-template.php
867 867 868 868 $defaults = array( 869 869 'type' => 'monthly', 'limit' => '', 870 'posttype' => 'post', 870 871 'format' => 'html', 'before' => '', 871 872 'after' => '', 'show_post_count' => false, 872 873 'echo' => 1 … … 903 904 } 904 905 905 906 //filters 906 $where = apply_filters( 'getarchives_where', "WHERE post_type = ' post' AND post_status = 'publish'", $r );907 $where = apply_filters( 'getarchives_where', "WHERE post_type = '$posttype' AND post_status = 'publish'", $r ); 907 908 $join = apply_filters( 'getarchives_join', '', $r ); 908 909 909 910 $output = '';