diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index c2a16eef0b..0dde8df01a 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -120,7 +120,7 @@ if ( $doaction ) { $redirect_to = add_query_arg( 'deleted', $deleted, $redirect_to ); } if ( $trashed || $spammed ) { - $redirect_to = add_query_arg( 'ids', join( ',', $comment_ids ), $redirect_to ); + $redirect_to = add_query_arg( 'ids', implode( ',', $comment_ids ), $redirect_to ); } wp_safe_redirect( $redirect_to ); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index bf54037451..40bc41c512 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -126,7 +126,7 @@ if ( $doaction ) { $sendback = add_query_arg( array( 'trashed' => $trashed, - 'ids' => join( ',', $post_ids ), + 'ids' => implode( ',', $post_ids ), 'locked' => $locked, ), $sendback @@ -442,7 +442,7 @@ foreach ( $bulk_counts as $message => $count ) { } if ( $messages ) { - echo '
' . join( ' ', $messages ) . '
' . implode( ' ', $messages ) . '
" . join( "
\n", array_unique( (array) $field['helps'] ) ) . '
'; + $item .= "" . implode( "
\n", array_unique( (array) $field['helps'] ) ) . '
'; } $item .= "\n\t\t\n"; @@ -1883,7 +1883,7 @@ function get_compat_media_markup( $attachment_id, $args = null ) { $values[] = $term->slug; } - $t['value'] = join( ', ', $values ); + $t['value'] = implode( ', ', $values ); $t['taxonomy'] = true; $form_fields[ $taxonomy ] = $t; @@ -1976,7 +1976,7 @@ function get_compat_media_markup( $attachment_id, $args = null ) { } if ( ! empty( $field['helps'] ) ) { - $item .= "" . join( "
\n", array_unique( (array) $field['helps'] ) ) . '
'; + $item .= "" . implode( "
\n", array_unique( (array) $field['helps'] ) ) . '
'; } $item .= "\n\t\t\n"; diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 74ac6cec27..e13a46bc91 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -121,7 +121,7 @@ function insert_with_markers( $filename, $marker, $insertion ) { if ( $perms ) { chmod( $filename, $perms | 0644 ); } - } elseif ( ! is_writeable( $filename ) ) { + } elseif ( ! is_writable( $filename ) ) { return false; } diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 52600dce06..7718a831e4 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -275,7 +275,7 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null * If we only have one revision, the initial revision is missing; This happens * when we have an autsosave and the user has clicked 'View the Autosave' */ - if ( 1 === sizeof( $revisions ) ) { + if ( 1 === count( $revisions ) ) { $revisions[ $post->ID ] = array( 'id' => $post->ID, 'title' => get_the_title( $post->ID ), diff --git a/wp-admin/includes/taxonomy.php b/wp-admin/includes/taxonomy.php index 7f7e60952c..de76917cd0 100644 --- a/wp-admin/includes/taxonomy.php +++ b/wp-admin/includes/taxonomy.php @@ -278,7 +278,7 @@ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { $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. diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 0a65659492..f68ee0b9ff 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1112,7 +1112,7 @@ function upgrade_130() { $limit = $option->dupes - 1; $dupe_ids = $wpdb->get_col( $wpdb->prepare( "SELECT option_id FROM $wpdb->options WHERE option_name = %s LIMIT %d", $option->option_name, $limit ) ); if ( $dupe_ids ) { - $dupe_ids = join( ',', $dupe_ids ); + $dupe_ids = implode( ',', $dupe_ids ); $wpdb->query( "DELETE FROM $wpdb->options WHERE option_id IN ($dupe_ids)" ); } } diff --git a/wp-admin/link.php b/wp-admin/link.php index 1824f80144..5494f9f15f 100644 --- a/wp-admin/link.php +++ b/wp-admin/link.php @@ -60,7 +60,7 @@ switch ( $action ) { wp_redirect( $this_file ); exit; } - $all_links = join( ',', $linkcheck ); + $all_links = implode( ',', $linkcheck ); /* * Should now have an array of links we can change: * $q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)"); diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index 3e81e0bea7..1f481f8634 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -106,7 +106,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { $class[] = esc_attr( $item[4] ); } - $class = $class ? ' class="' . join( ' ', $class ) . '"' : ''; + $class = $class ? ' class="' . implode( ' ', $class ) . '"' : ''; $id = ! empty( $item[5] ) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : ''; $img = ''; $img_style = ''; @@ -240,7 +240,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { $class[] = esc_attr( $sub_item[4] ); } - $class = $class ? ' class="' . join( ' ', $class ) . '"' : ''; + $class = $class ? ' class="' . implode( ' ', $class ) . '"' : ''; $menu_hook = get_plugin_page_hook( $sub_item[2], $item[2] ); $sub_file = $sub_item[2]; diff --git a/wp-admin/network/themes.php b/wp-admin/network/themes.php index 730ab906b1..84fbdf3106 100644 --- a/wp-admin/network/themes.php +++ b/wp-admin/network/themes.php @@ -89,7 +89,7 @@ if ( $action ) { echo '- + @@ -309,7 +309,7 @@ else :
diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 3917ece191..2eb29da17d 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -162,7 +162,7 @@ if ( $doaction ) { $location = add_query_arg( array( 'trashed' => count( $post_ids ), - 'ids' => join( ',', $post_ids ), + 'ids' => implode( ',', $post_ids ), ), $location ); diff --git a/wp-content/themes/twentytwenty/inc/starter-content.php b/wp-content/themes/twentytwenty/inc/starter-content.php index 95f7bc57aa..89be38bbe8 100644 --- a/wp-content/themes/twentytwenty/inc/starter-content.php +++ b/wp-content/themes/twentytwenty/inc/starter-content.php @@ -48,7 +48,7 @@ function twentytwenty_get_starter_content() { 'post_title' => __( 'The New UMoMA Opens its Doors', 'twentytwenty' ), // Use the above featured image with the predefined about page. 'thumbnail' => '{{image-opening}}', - 'post_content' => join( + 'post_content' => implode( '', array( '', diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php index 2db315b034..0a3840502a 100644 --- a/wp-includes/bookmark-template.php +++ b/wp-includes/bookmark-template.php @@ -234,7 +234,7 @@ function wp_list_bookmarks( $args = '' ) { $parsed_args['class'] = explode( ' ', $parsed_args['class'] ); } $parsed_args['class'] = array_map( 'sanitize_html_class', $parsed_args['class'] ); - $parsed_args['class'] = trim( join( ' ', $parsed_args['class'] ) ); + $parsed_args['class'] = trim( implode( ' ', $parsed_args['class'] ) ); if ( $parsed_args['categorize'] ) { $cats = get_terms( diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index df4ee350a9..e2f0cb0115 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -1010,11 +1010,11 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { * Note: this is redundant but doesn't harm. */ $return = "