WordPress.org

Make WordPress Core

Ticket #48212: 48212.2.patch

File 48212.2.patch, 3.2 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 *
  • 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}
  • wp-admin/includes/deprecated.php

     
    15311531                        $args['screen'] = 'export-personal-data';
    15321532                }
    15331533
    1534                 parent::__construct( $args );   
     1534                parent::__construct( $args );
    15351535        }
    15361536}
    15371537
     
    15631563function _wp_privacy_requests_screen_options() {
    15641564        _deprecated_function( __FUNCTION__, '5.3.0' );
    15651565}
     1566
     1567/**
     1568 * Logs responses to Events API requests.
     1569 *
     1570 * @since 4.8.0
     1571 * @deprecated 4.9.0 Use a plugin instead. See #41217 for an example.
     1572 *
     1573 * @param string $message A description of what occurred.
     1574 * @param array  $details Details that provide more context for the
     1575 *                        log entry.
     1576 */
     1577function maybe_log_events_response( $message, $details ) {
     1578        _deprecated_function( __METHOD__, '4.9.0' );
     1579
     1580        if ( ! WP_DEBUG_LOG ) {
     1581                return;
     1582        }
     1583
     1584        error_log(
     1585                sprintf(
     1586                        '%s: %s. Details: %s',
     1587                        __METHOD__,
     1588                        trim( $message, '.' ),
     1589                        wp_json_encode( $details )
     1590                )
     1591        );
     1592}