WordPress.org

Make WordPress Core

Changeset 40929


Ignore:
Timestamp:
06/25/2017 12:04:11 AM (3 years ago)
Author:
DrewAPicture
Message:

Improve the usefulness of several _deprecated_function() calls by passing known replacement functions, methods, or hooks.

Props jrf.
See #41121.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/cache.php

    r39051 r40929  
    265265 */
    266266function wp_cache_reset() {
    267     _deprecated_function( __FUNCTION__, '3.5.0' );
     267    _deprecated_function( __FUNCTION__, '3.5.0', 'WP_Object_Cache::reset()' );
    268268
    269269    global $wp_object_cache;
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r40395 r40929  
    20562056     */
    20572057    public function setup_widget_addition_previews() {
    2058         _deprecated_function( __METHOD__, '4.2.0' );
     2058        _deprecated_function( __METHOD__, '4.2.0', 'customize_dynamic_setting_args' );
    20592059    }
    20602060
     
    20682068     */
    20692069    public function prepreview_added_sidebars_widgets() {
    2070         _deprecated_function( __METHOD__, '4.2.0' );
     2070        _deprecated_function( __METHOD__, '4.2.0', 'customize_dynamic_setting_args' );
    20712071    }
    20722072
     
    20802080     */
    20812081    public function prepreview_added_widget_instance() {
    2082         _deprecated_function( __METHOD__, '4.2.0' );
     2082        _deprecated_function( __METHOD__, '4.2.0', 'customize_dynamic_setting_args' );
    20832083    }
    20842084
     
    20922092     */
    20932093    public function remove_prepreview_filters() {
    2094         _deprecated_function( __METHOD__, '4.2.0' );
     2094        _deprecated_function( __METHOD__, '4.2.0', 'customize_dynamic_setting_args' );
    20952095    }
    20962096}
  • trunk/src/wp-includes/deprecated.php

    r39758 r40929  
    16511651 */
    16521652function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
    1653     _deprecated_function( __FUNCTION__, '2.9.0', 'the_content_feed' );
     1653    _deprecated_function( __FUNCTION__, '2.9.0', 'the_content_feed()' );
    16541654    $content = get_the_content($more_link_text, $stripteaser);
    16551655    $content = apply_filters('the_content_rss', $content);
     
    38153815 */
    38163816function _usort_terms_by_ID( $a, $b ) {
    3817     _deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort' );
     3817    _deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );
    38183818
    38193819    if ( $a->term_id > $b->term_id )
     
    38403840 */
    38413841function _usort_terms_by_name( $a, $b ) {
    3842     _deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort' );
     3842    _deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );
    38433843
    38443844    return strcmp( $a->name, $b->name );
     
    38613861    global $_menu_item_sort_prop;
    38623862
    3863     _deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort' );
     3863    _deprecated_function( __FUNCTION__, '4.7.0', 'wp_list_sort()' );
    38643864
    38653865    if ( empty( $_menu_item_sort_prop ) )
  • trunk/src/wp-includes/ms-deprecated.php

    r40922 r40929  
    2525 */
    2626function get_dashboard_blog() {
    27     _deprecated_function( __FUNCTION__, '3.1.0' );
     27    _deprecated_function( __FUNCTION__, '3.1.0', 'get_site()' );
    2828    if ( $blog = get_site_option( 'dashboard_blog' ) ) {
    2929        return get_site( $blog );
     
    269269 */
    270270function wpmu_admin_do_redirect( $url = '' ) {
    271     _deprecated_function( __FUNCTION__, '3.3.0' );
     271    _deprecated_function( __FUNCTION__, '3.3.0', 'wp_redirect()' );
    272272
    273273    $ref = '';
     
    309309 */
    310310function wpmu_admin_redirect_add_updated_param( $url = '' ) {
    311     _deprecated_function( __FUNCTION__, '3.3.0' );
     311    _deprecated_function( __FUNCTION__, '3.3.0', 'add_query_arg()' );
    312312
    313313    if ( strpos( $url, 'updated=true' ) === false ) {
Note: See TracChangeset for help on using the changeset viewer.