Remove dead arguments. see [15937], see #13818, props dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@15942 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
46458ec3ca
commit
4738e732ae
@ -108,10 +108,10 @@ function wp_reset_postdata() {
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function is_archive( $post_types = '' ) {
|
||||
function is_archive() {
|
||||
global $wp_query;
|
||||
|
||||
return $wp_query->is_archive( $post_types );
|
||||
return $wp_query->is_archive();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2644,7 +2644,7 @@ class WP_Query extends WP_Object_Query {
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function is_archive( $post_types ) {
|
||||
function is_archive() {
|
||||
return (bool) $this->is_archive;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user