From 1d86c9c1ed1559b5f920b9a03681c5272af1c251 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 29 Sep 2015 06:39:25 +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. Built from https://develop.svn.wordpress.org/trunk@34689 git-svn-id: http://core.svn.wordpress.org/trunk@34653 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 24cb78cc12..a5d89aa576 100644 --- a/wp-includes/general-template.php +++ b/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 ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index fd587108f4..3522918471 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34688'; +$wp_version = '4.4-alpha-34689'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.