Make WordPress Core


Ignore:
Timestamp:
11/09/2019 01:55:43 PM (6 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.