From 7799eafcd05d0eaec1542925fdb35cad8fff4412 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 9 Aug 2022 10:31:09 +0000 Subject: [PATCH] Docs: Consistently document the `$excluded_terms` variable in `get_adjacent_post()`. The variable `$excluded_terms` is an array of excluded term IDs or empty string if none were provided. Props grapplerulrich, costdev. Fixes #56348. Built from https://develop.svn.wordpress.org/trunk@53870 git-svn-id: http://core.svn.wordpress.org/trunk@53429 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 22 +++++++++++----------- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index da4c2d8ff0..e150d301fc 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1841,7 +1841,7 @@ function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo * * @since 4.4.0 * - * @param array|string $excluded_terms Array of excluded term IDs. Empty string if none were provided. + * @param int[]|string $excluded_terms Array of excluded term IDs. Empty string if none were provided. */ $excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms ); @@ -1918,11 +1918,11 @@ function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo * @since 2.5.0 * @since 4.4.0 Added the `$taxonomy` and `$post` parameters. * - * @param string $join The JOIN clause in the SQL. - * @param bool $in_same_term Whether post should be in a same taxonomy term. - * @param array $excluded_terms Array of excluded term IDs. - * @param string $taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true. - * @param WP_Post $post WP_Post object. + * @param string $join The JOIN clause in the SQL. + * @param bool $in_same_term Whether post should be in a same taxonomy term. + * @param int[]|string $excluded_terms Array of excluded term IDs. Empty string if none were provided. + * @param string $taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true. + * @param WP_Post $post WP_Post object. */ $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy, $post ); @@ -1940,11 +1940,11 @@ function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo * @since 2.5.0 * @since 4.4.0 Added the `$taxonomy` and `$post` parameters. * - * @param string $where The `WHERE` clause in the SQL. - * @param bool $in_same_term Whether post should be in a same taxonomy term. - * @param array $excluded_terms Array of excluded term IDs. - * @param string $taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true. - * @param WP_Post $post WP_Post object. + * @param string $where The `WHERE` clause in the SQL. + * @param bool $in_same_term Whether post should be in a same taxonomy term. + * @param int[]|string $excluded_terms Array of excluded term IDs. Empty string if none were provided. + * @param string $taxonomy Taxonomy. Used to identify the term used when `$in_same_term` is true. + * @param WP_Post $post WP_Post object. */ $where = apply_filters( "get_{$adjacent}_post_where", $wpdb->prepare( "WHERE p.post_date $op %s AND p.post_type = %s $where", $current_post_date, $post->post_type ), $in_same_term, $excluded_terms, $taxonomy, $post ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2433330603..f73794311c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53869'; +$wp_version = '6.1-alpha-53870'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.