mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 10:59:07 +01:00
Dashboard: Community events formatting improvements
Props Soean. See #40702. Built from https://develop.svn.wordpress.org/trunk@40669 git-svn-id: http://core.svn.wordpress.org/trunk@40532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
580cf33c81
commit
68588821c3
@ -364,7 +364,7 @@ class WP_Community_Events {
|
|||||||
*/
|
*/
|
||||||
protected function trim_events( $response_body ) {
|
protected function trim_events( $response_body ) {
|
||||||
if ( isset( $response_body['events'] ) ) {
|
if ( isset( $response_body['events'] ) ) {
|
||||||
$current_timestamp = current_time('timestamp' );
|
$current_timestamp = current_time( 'timestamp' );
|
||||||
|
|
||||||
foreach ( $response_body['events'] as $key => $event ) {
|
foreach ( $response_body['events'] as $key => $event ) {
|
||||||
// Skip WordCamps, because they might be multi-day events.
|
// Skip WordCamps, because they might be multi-day events.
|
||||||
@ -401,7 +401,7 @@ class WP_Community_Events {
|
|||||||
* @since 4.8.0
|
* @since 4.8.0
|
||||||
*
|
*
|
||||||
* @param string $message A description of what occurred.
|
* @param string $message A description of what occurred.
|
||||||
* @param array $debugging_info Details that provide more context for the
|
* @param array $details Details that provide more context for the
|
||||||
* log entry.
|
* log entry.
|
||||||
*/
|
*/
|
||||||
protected function maybe_log_events_response( $message, $details ) {
|
protected function maybe_log_events_response( $message, $details ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-beta1-40668';
|
$wp_version = '4.8-beta1-40669';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user