Make WordPress Core

Changeset 60273


Ignore:
Timestamp:
06/02/2025 02:58:12 PM (7 weeks ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-community-events.php

    r56559 r60273  
    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.
     
    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'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.