From 133b204471cea8f66a18d8177fd34d36936a2e6a Mon Sep 17 00:00:00 2001 From: DrewAPicture Date: Tue, 29 Sep 2015 06:38:02 +0000 Subject: [PATCH] Docs: Move the hook doc to once again directly precede the hook line for the `getarchives_where` filter following [34686]. See #21596. git-svn-id: https://develop.svn.wordpress.org/trunk@34689 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 24cb78cc12..a5d89aa576 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -1440,6 +1440,8 @@ function wp_get_archives( $args = '' ) { $archive_week_end_date_format = get_option( 'date_format' ); } + $sql_where = $wpdb->prepare( "WHERE post_type = %s AND post_status = 'publish'", $r['post_type'] ); + /** * Filter the SQL WHERE clause for retrieving archives. * @@ -1448,7 +1450,6 @@ function wp_get_archives( $args = '' ) { * @param string $sql_where Portion of SQL query containing the WHERE clause. * @param array $r An array of default arguments. */ - $sql_where = $wpdb->prepare( "WHERE post_type = %s AND post_status = 'publish'", $r['post_type'] ); $where = apply_filters( 'getarchives_where', $sql_where, $r ); /**