Docs: Fix typo in a comment in `WP_Community_Events::trim_events()`.
See #42505. Built from https://develop.svn.wordpress.org/trunk@42826 git-svn-id: http://core.svn.wordpress.org/trunk@42656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
15e969be8d
commit
fab939595d
|
@ -456,7 +456,7 @@ class WP_Community_Events {
|
|||
$response_body['events'] = array_slice( $response_body['events'], 0, 3 );
|
||||
$trimmed_event_types = wp_list_pluck( $response_body['events'], 'type' );
|
||||
|
||||
// Make sure the soonest upcoming WordCamps is pinned in the list.
|
||||
// Make sure the soonest upcoming WordCamp is pinned in the list.
|
||||
if ( ! in_array( 'wordcamp', $trimmed_event_types ) && $wordcamps ) {
|
||||
array_pop( $response_body['events'] );
|
||||
array_push( $response_body['events'], $wordcamps[0] );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42825';
|
||||
$wp_version = '5.0-alpha-42826';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue