WordPress.org

Make WordPress Core

Ticket #11386: 11386_version_arg_move.diff

File 11386_version_arg_move.diff, 1.4 KB (added by strider72, 8 years ago)

Moves $version argument to end

  • wp-includes/functions.php

     
    29742974 * @param string $version The version of WordPress that deprecated the function
    29752975 * @param string $replacement Optional. The function that should have been called
    29762976 */
    2977 function _deprecated_function( $function, $version, $replacement=null ) {
     2977function _deprecated_function( $function, $replacement=null, $version = null ) {
    29782978
    29792979        do_action( 'deprecated_function_run', $function, $replacement, $version );
    29802980
     
    30123012 * @param string $version The version of WordPress that deprecated the file
    30133013 * @param string $replacement Optional. The file that should have been included based on ABSPATH
    30143014 */
    3015 function _deprecated_file( $file, $version, $replacement = null ) {
     3015function _deprecated_file( $file, $replacement = null, $version = null ) {
    30163016
    30173017        do_action( 'deprecated_file_included', $file, $replacement, $version );
    30183018
     
    30563056 * @param string $version The version of WordPress that deprecated the argument used
    30573057 * @param string $message Optional. A message regarding the change.
    30583058 */
    3059 function _deprecated_argument( $function, $version, $message = null ) {
     3059function _deprecated_argument( $function, $message = null, $version = null ) {
    30603060
    30613061        do_action( 'deprecated_argument_run', $function, $message );
    30623062