--- a/wp/wp-admin/includes/taxonomy.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/includes/taxonomy.php Wed Sep 21 18:19:35 2022 +0200
@@ -183,7 +183,7 @@
* @since 2.0.0
*
* @param array $catarr The 'cat_ID' value is required. All other keys are optional.
- * @return int|bool The ID number of the new or updated Category on success. Zero or FALSE on failure.
+ * @return int|false The ID number of the new or updated Category on success. Zero or FALSE on failure.
*/
function wp_update_category( $catarr ) {
$cat_ID = (int) $catarr['cat_ID'];
@@ -240,7 +240,7 @@
*
* @param int $post_id
* @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
- * @return string|bool|WP_Error
+ * @return string|false|WP_Error
*/
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
return get_terms_to_edit( $post_id, $taxonomy );
@@ -253,7 +253,7 @@
*
* @param int $post_id
* @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
- * @return string|bool|WP_Error
+ * @return string|false|WP_Error
*/
function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
$post_id = (int) $post_id;
@@ -278,7 +278,7 @@
$term_names[] = $term->name;
}
- $terms_to_edit = esc_attr( join( ',', $term_names ) );
+ $terms_to_edit = esc_attr( implode( ',', $term_names ) );
/**
* Filters the comma-separated list of terms available to edit.