WordPress.org

Make WordPress Core

Changeset 46689


Ignore:
Timestamp:
11/09/2019 01:55:43 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Use 3-digit, x.x.x style semantic versioning for $version argument in do_action_deprecated() and apply_filters_deprecated() calls.

Props jrf.
Fixes #48255.

Location:
trunk
Files:
3 edited

Legend:

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

    r46568 r46689  
    612612 *
    613613 *     // Deprecated.
    614  *     return apply_filters_deprecated( 'wpdocs_filter', array( $value, $extra_arg ), '4.9', 'wpdocs_new_filter' );
     614 *     return apply_filters_deprecated( 'wpdocs_filter', array( $value, $extra_arg ), '4.9.0', 'wpdocs_new_filter' );
    615615 *
    616616 * @since 4.6.0
  • trunk/tests/phpunit/tests/actions.php

    r46586 r46689  
    547547
    548548        add_action( 'tests_do_action_deprecated', array( __CLASS__, 'deprecated_action_callback' ) );
    549         do_action_deprecated( 'tests_do_action_deprecated', array( $p ), '4.6' );
     549        do_action_deprecated( 'tests_do_action_deprecated', array( $p ), '4.6.0' );
    550550        remove_action( 'tests_do_action_deprecated', array( __CLASS__, 'deprecated_action_callback' ) );
    551551
     
    566566
    567567        add_action( 'tests_do_action_deprecated', array( __CLASS__, 'deprecated_action_callback_multiple_params' ), 10, 2 );
    568         do_action_deprecated( 'tests_do_action_deprecated', array( $p1, $p2 ), '4.6' );
     568        do_action_deprecated( 'tests_do_action_deprecated', array( $p1, $p2 ), '4.6.0' );
    569569        remove_action( 'tests_do_action_deprecated', array( __CLASS__, 'deprecated_action_callback_multiple_params' ), 10, 2 );
    570570
  • trunk/tests/phpunit/tests/filters.php

    r46586 r46689  
    304304
    305305        add_filter( 'tests_apply_filters_deprecated', array( __CLASS__, 'deprecated_filter_callback' ) );
    306         $p = apply_filters_deprecated( 'tests_apply_filters_deprecated', array( $p ), '4.6' );
     306        $p = apply_filters_deprecated( 'tests_apply_filters_deprecated', array( $p ), '4.6.0' );
    307307        remove_filter( 'tests_apply_filters_deprecated', array( __CLASS__, 'deprecated_filter_callback' ) );
    308308
     
    324324
    325325        add_filter( 'tests_apply_filters_deprecated', array( __CLASS__, 'deprecated_filter_callback_multiple_params' ), 10, 2 );
    326         $p1 = apply_filters_deprecated( 'tests_apply_filters_deprecated', array( $p1, $p2 ), '4.6' );
     326        $p1 = apply_filters_deprecated( 'tests_apply_filters_deprecated', array( $p1, $p2 ), '4.6.0' );
    327327        remove_filter( 'tests_apply_filters_deprecated', array( __CLASS__, 'deprecated_filter_callback_multiple_params' ), 10, 2 );
    328328
     
    346346        $val = 'Foobar';
    347347
    348         $this->assertSame( $val, apply_filters_deprecated( 'tests_apply_filters_deprecated', array( $val ), '4.6' ) );
     348        $this->assertSame( $val, apply_filters_deprecated( 'tests_apply_filters_deprecated', array( $val ), '4.6.0' ) );
    349349    }
    350350
Note: See TracChangeset for help on using the changeset viewer.