Skip to content

Commit d56d51d

Browse files
General: Adjust WP_Community_Events::format_event_data_time() deprecation.
`_deprecated_function()` does not support a custom message, which appears to be redundant here, as the method's DocBlock already indicates that it is unused as of WordPress 5.5.2. Includes correcting the version in the `@deprecated` tag. Follow-up to [49146], [49201]. Props dhruvik18, dhruvang21, rollybueno, SirLouen, SergeyBiryukov. Fixes #63511. git-svn-id: https://develop.svn.wordpress.org/trunk@60273 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f2cf6a3 commit d56d51d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/wp-admin/includes/class-wp-community-events.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,17 +375,13 @@ public function get_cached_events() {
375375
* of the user who triggered the cache refresh, rather than their own.
376376
*
377377
* @since 4.8.0
378-
* @deprecated 5.6.0 No longer used in core.
378+
* @deprecated 5.5.2 No longer used in core.
379379
*
380380
* @param array $response_body The response which contains the events.
381381
* @return array The response with dates and times formatted.
382382
*/
383383
protected function format_event_data_time( $response_body ) {
384-
_deprecated_function(
385-
__METHOD__,
386-
'5.5.2',
387-
'This is no longer used by core, and only kept for backward compatibility.'
388-
);
384+
_deprecated_function( __METHOD__, '5.5.2' );
389385

390386
if ( isset( $response_body['events'] ) ) {
391387
foreach ( $response_body['events'] as $key => $event ) {

0 commit comments

Comments
 (0)