diff --git a/src/js/_enqueues/wp/dashboard.js b/src/js/_enqueues/wp/dashboard.js index 87a2191967..1929388d55 100644 --- a/src/js/_enqueues/wp/dashboard.js +++ b/src/js/_enqueues/wp/dashboard.js @@ -623,7 +623,7 @@ jQuery( function( $ ) { * These can't be stored in the database, because they're dependent on * the user's current time zone, locale, etc. * - * @since 5.6.0 + * @since 5.5.2 * * @param {Array} rawEvents The events that should have dynamic fields added to them. * @param {string} timeFormat A time format acceptable by `wp.date.dateI18n()`. @@ -658,7 +658,7 @@ jQuery( function( $ ) { /** * Returns the user's local/browser time zone, in a form suitable for `wp.date.i18n()`. * - * @since 5.6.0 + * @since 5.5.2 * * @param startTimestamp * @@ -693,7 +693,7 @@ jQuery( function( $ ) { * * See https://stackoverflow.com/questions/21102435/why-does-javascript-date-gettimezoneoffset-consider-0500-as-a-positive-off. * - * @since 5.6.0 + * @since 5.5.2 * * @param {number} startTimestamp * @@ -706,7 +706,7 @@ jQuery( function( $ ) { /** * Get a short time zone name, like `PST`. * - * @since 5.6.0 + * @since 5.5.2 * * @param {number} startTimestamp * @@ -748,7 +748,7 @@ jQuery( function( $ ) { /** * Format a start/end date in the user's local time zone and locale. * - * @since 5.6.0 + * @since 5.5.2 * * @param {int} startDate The Unix timestamp in milliseconds when the the event starts. * @param {int} endDate The Unix timestamp in milliseconds when the the event ends. diff --git a/src/wp-admin/includes/class-wp-community-events.php b/src/wp-admin/includes/class-wp-community-events.php index 6f4a101067..35708547af 100644 --- a/src/wp-admin/includes/class-wp-community-events.php +++ b/src/wp-admin/includes/class-wp-community-events.php @@ -77,7 +77,7 @@ class WP_Community_Events { * mitigates possible privacy concerns. * * @since 4.8.0 - * @since 5.6.0 Response no longer contains formatted date field. They're added + * @since 5.5.2 Response no longer contains formatted date field. They're added * in `wp.communityEvents.populateDynamicEventFields()` now. * * @param string $location_search Optional. City name to help determine the location. @@ -345,7 +345,7 @@ class WP_Community_Events { * Gets cached events. * * @since 4.8.0 - * @since 5.6.0 Response no longer contains formatted date field. They're added + * @since 5.5.2 Response no longer contains formatted date field. They're added * in `wp.communityEvents.populateDynamicEventFields()` now. * * @return array|false An array containing `location` and `events` items @@ -377,7 +377,7 @@ class WP_Community_Events { protected function format_event_data_time( $response_body ) { _deprecated_function( __METHOD__, - '5.6.0', + '5.5.2', 'This is no longer used by Core, and only kept for backwards-compatibility.' ); @@ -451,7 +451,7 @@ class WP_Community_Events { * * @since 4.8.0 * @since 4.9.7 Stick a WordCamp to the final list. - * @since 5.6.0 Accepts and returns only the events, rather than an entire HTTP response. + * @since 5.5.2 Accepts and returns only the events, rather than an entire HTTP response. * * @param array $events The events that will be prepared. * @return array The response body with events trimmed. diff --git a/tests/phpunit/tests/admin/includesCommunityEvents.php b/tests/phpunit/tests/admin/includesCommunityEvents.php index b0280dd92e..6b84790334 100644 --- a/tests/phpunit/tests/admin/includesCommunityEvents.php +++ b/tests/phpunit/tests/admin/includesCommunityEvents.php @@ -280,7 +280,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase { * * @covers WP_Community_Events::trim_events * - * @since 5.6.0 + * @since 5.5.2 */ public function test_trim_expired_events() { $trim_events = new ReflectionMethod( $this->instance, 'trim_events' ); @@ -309,7 +309,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase { * @covers WP_Community_Events::trim_events * * @since 4.9.7 - * @since 5.6.0 Tests `trim_events()` directly instead of indirectly via `get_events()`. + * @since 5.5.2 Tests `trim_events()` directly instead of indirectly via `get_events()`. */ public function test_trim_events_pin_wordcamp() { $trim_events = new ReflectionMethod( $this->instance, 'trim_events' ); @@ -331,7 +331,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase { * Simulates a scenario where a WordCamp needs to be pinned higher than it's default position. * * @since 4.9.7 - * @since 5.6.0 Accepts and returns only the events, rather than an entire HTTP response. + * @since 5.5.2 Accepts and returns only the events, rather than an entire HTTP response. * * @return array A list of mock events. */ @@ -414,7 +414,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase { * @covers WP_Community_Events::trim_events * * @since 4.9.7 - * @since 5.6.0 Tests `trim_events()` directly instead of indirectly via `get_events()`. + * @since 5.5.2 Tests `trim_events()` directly instead of indirectly via `get_events()`. */ public function test_trim_events_dont_pin_multiple_wordcamps() { $trim_events = new ReflectionMethod( $this->instance, 'trim_events' ); @@ -437,7 +437,7 @@ class Test_WP_Community_Events extends WP_UnitTestCase { * no need to pin extra camp b/c one already exists in response * * @since 4.9.7 - * @since 5.6.0 Tests `trim_events()` directly instead of indirectly via `get_events()`. + * @since 5.5.2 Tests `trim_events()` directly instead of indirectly via `get_events()`. * * @return array A mock HTTP response. */