Make WordPress Core

Ticket #26185: 26185.2.diff

File 26185.2.diff, 1.3 KB (added by TobiasBg, 11 years ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 6fdd49d..030d1f5 100644
    function absint( $maybeint ) { 
    31583158}
    31593159
    31603160/**
    3161  * Mark a function as deprecated and informs when it has been used.
     3161 * Mark a function as deprecated and inform when it has been used.
    31623162 *
    31633163 * There is a hook deprecated_function_run that will be called that can be used
    31643164 * to get the backtrace up to what file and function called the deprecated
    function _deprecated_function( $function, $version, $replacement = null ) { 
    32113211}
    32123212
    32133213/**
    3214  * Marks a file as deprecated and inform when it has been used.
     3214 * Mark a file as deprecated and inform when it has been used.
    32153215 *
    32163216 * There is a hook deprecated_file_included that will be called that can be used
    32173217 * to get the backtrace up to what file and function included the deprecated
    function _deprecated_file( $file, $version, $replacement = null, $message = '' ) 
    32743274 * used by comparing it to its default value or evaluating whether it is empty.
    32753275 * For example:
    32763276 * <code>
    3277  * if ( !empty($deprecated) )
     3277 * if ( ! empty( $deprecated ) ) {
    32783278 *      _deprecated_argument( __FUNCTION__, '3.0' );
     3279 * }
    32793280 * </code>
    32803281 *
    32813282 * There is a hook deprecated_argument_run that will be called that can be used