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
This commit is contained in:
DrewAPicture 2015-09-29 06:38:02 +00:00
parent f270e7a03e
commit 133b204471
1 changed files with 2 additions and 1 deletions

View File

@ -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 );
/**