WordPress.org

Make WordPress Core

Ticket #48212: 48212.1.patch

File 48212.1.patch, 2.8 KB (added by dkarfa, 20 months ago)
  • wp-includes/deprecated.php

     
    25122512 * Determines whether the current admin page is generated by a plugin.
    25132513 *
    25142514 * Use global $plugin_page and/or get_plugin_page_hookname() hooks.
    2515  * 
     2515 *
    25162516 * For more information on this and similar theme functions, check out
    2517  * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 
     2517 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
    25182518 * Conditional Tags} article in the Theme Developer Handbook.
    2519  * 
     2519 *
    25202520 * @since 1.5.0
    25212521 * @deprecated 3.1.0
    25222522 *
     
    37193719
    37203720/**
    37213721 * Determines whether the current URL is within the comments popup window.
    3722  * 
     3722 *
    37233723 * For more information on this and similar theme functions, check out
    3724  * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 
     3724 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
    37253725 * Conditional Tags} article in the Theme Developer Handbook.
    3726  * 
     3726 *
    37273727 * @since 1.5.0
    37283728 * @deprecated 4.5.0
    37293729 *
     
    39533953                wp_send_json_error( array( 'errorMessage' => __( 'The Press This plugin is required.' ) ) );
    39543954        }
    39553955}
     3956
     3957
     3958/**
     3959 * Logs responses to Events API requests.
     3960 *
     3961 * @since 4.8.0
     3962 * @deprecated 4.9.0 Use a plugin instead. See #41217 for an example.
     3963 *
     3964 * @param string $message A description of what occurred.
     3965 * @param array  $details Details that provide more context for the
     3966 *                        log entry.
     3967 */
     3968function maybe_log_events_response( $message, $details ) {
     3969        _deprecated_function( __METHOD__, '4.9.0' );
     3970
     3971        if ( ! WP_DEBUG_LOG ) {
     3972                return;
     3973        }
     3974
     3975        error_log(
     3976                sprintf(
     3977                        '%s: %s. Details: %s',
     3978                        __METHOD__,
     3979                        trim( $message, '.' ),
     3980                        wp_json_encode( $details )
     3981                )
     3982        );
     3983}
  • wp-admin/includes/class-wp-community-events.php

     
    436436                return $response_body;
    437437        }
    438438
    439         /**
    440          * Logs responses to Events API requests.
    441          *
    442          * @since 4.8.0
    443          * @deprecated 4.9.0 Use a plugin instead. See #41217 for an example.
    444          *
    445          * @param string $message A description of what occurred.
    446          * @param array  $details Details that provide more context for the
    447          *                        log entry.
    448          */
    449         protected function maybe_log_events_response( $message, $details ) {
    450                 _deprecated_function( __METHOD__, '4.9.0' );
    451 
    452                 if ( ! WP_DEBUG_LOG ) {
    453                         return;
    454                 }
    455 
    456                 error_log(
    457                         sprintf(
    458                                 '%s: %s. Details: %s',
    459                                 __METHOD__,
    460                                 trim( $message, '.' ),
    461                                 wp_json_encode( $details )
    462                         )
    463                 );
    464         }
    465439}