Make WordPress Core

Ticket #54658: 54658.2.diff

File 54658.2.diff, 7.6 KB (added by SergeyBiryukov, 2 years ago)
  • src/wp-includes/functions.php

     
    53085308                                trigger_error(
    53095309                                        sprintf(
    53105310                                                /* translators: 1: PHP function name, 2: Version number, 3: Alternative function name. */
    5311                                                 __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
     5311                                                __( 'Function %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    53125312                                                $function,
    53135313                                                $version,
    53145314                                                $replacement
     
    53195319                                trigger_error(
    53205320                                        sprintf(
    53215321                                                /* translators: 1: PHP function name, 2: Version number. */
    5322                                                 __( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
     5322                                                __( 'Function %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
    53235323                                                $function,
    53245324                                                $version
    53255325                                        ),
     
    53305330                        if ( $replacement ) {
    53315331                                trigger_error(
    53325332                                        sprintf(
    5333                                                 '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
     5333                                                'Function %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
    53345334                                                $function,
    53355335                                                $version,
    53365336                                                $replacement
     
    53405340                        } else {
    53415341                                trigger_error(
    53425342                                        sprintf(
    5343                                                 '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.',
     5343                                                'Function %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.',
    53445344                                                $function,
    53455345                                                $version
    53465346                                        ),
     
    54005400                                trigger_error(
    54015401                                        sprintf(
    54025402                                                /* translators: 1: PHP class name, 2: PHP parent class name, 3: Version number, 4: __construct() method. */
    5403                                                 __( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ),
     5403                                                __( 'The called constructor method for %1$s class in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ),
    54045404                                                $class,
    54055405                                                $parent_class,
    54065406                                                $version,
     
    54125412                                trigger_error(
    54135413                                        sprintf(
    54145414                                                /* translators: 1: PHP class name, 2: Version number, 3: __construct() method. */
    5415                                                 __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
     5415                                                __( 'The called constructor method for %1$s class is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    54165416                                                $class,
    54175417                                                $version,
    54185418                                                '<code>__construct()</code>'
     
    54245424                        if ( $parent_class ) {
    54255425                                trigger_error(
    54265426                                        sprintf(
    5427                                                 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.',
     5427                                                'The called constructor method for %1$s class in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.',
    54285428                                                $class,
    54295429                                                $parent_class,
    54305430                                                $version,
     
    54355435                        } else {
    54365436                                trigger_error(
    54375437                                        sprintf(
    5438                                                 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
     5438                                                'The called constructor method for %1$s class is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
    54395439                                                $class,
    54405440                                                $version,
    54415441                                                '<code>__construct()</code>'
     
    54985498                                trigger_error(
    54995499                                        sprintf(
    55005500                                                /* translators: 1: PHP file name, 2: Version number, 3: Alternative file name. */
    5501                                                 __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
     5501                                                __( 'File %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    55025502                                                $file,
    55035503                                                $version,
    55045504                                                $replacement
     
    55095509                                trigger_error(
    55105510                                        sprintf(
    55115511                                                /* translators: 1: PHP file name, 2: Version number. */
    5512                                                 __( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
     5512                                                __( 'File %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
    55135513                                                $file,
    55145514                                                $version
    55155515                                        ) . $message,
     
    55205520                        if ( $replacement ) {
    55215521                                trigger_error(
    55225522                                        sprintf(
    5523                                                 '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
     5523                                                'File %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
    55245524                                                $file,
    55255525                                                $version,
    55265526                                                $replacement
     
    55305530                        } else {
    55315531                                trigger_error(
    55325532                                        sprintf(
    5533                                                 '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.',
     5533                                                'File %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.',
    55345534                                                $file,
    55355535                                                $version
    55365536                                        ) . $message,
     
    55925592                                trigger_error(
    55935593                                        sprintf(
    55945594                                                /* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */
    5595                                                 __( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s' ),
     5595                                                __( 'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s' ),
    55965596                                                $function,
    55975597                                                $version,
    55985598                                                $message
     
    56035603                                trigger_error(
    56045604                                        sprintf(
    56055605                                                /* translators: 1: PHP function name, 2: Version number. */
    5606                                                 __( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
     5606                                                __( 'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
    56075607                                                $function,
    56085608                                                $version
    56095609                                        ),
     
    56145614                        if ( $message ) {
    56155615                                trigger_error(
    56165616                                        sprintf(
    5617                                                 '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s',
     5617                                                'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s',
    56185618                                                $function,
    56195619                                                $version,
    56205620                                                $message
     
    56245624                        } else {
    56255625                                trigger_error(
    56265626                                        sprintf(
    5627                                                 '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.',
     5627                                                'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.',
    56285628                                                $function,
    56295629                                                $version
    56305630                                        ),
     
    56835683                        trigger_error(
    56845684                                sprintf(
    56855685                                        /* translators: 1: WordPress hook name, 2: Version number, 3: Alternative hook name. */
    5686                                         __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
     5686                                        __( 'Hook %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    56875687                                        $hook,
    56885688                                        $version,
    56895689                                        $replacement
     
    56945694                        trigger_error(
    56955695                                sprintf(
    56965696                                        /* translators: 1: WordPress hook name, 2: Version number. */
    5697                                         __( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
     5697                                        __( 'Hook %1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
    56985698                                        $hook,
    56995699                                        $version
    57005700                                ) . $message,
     
    57605760                        trigger_error(
    57615761                                sprintf(
    57625762                                        /* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: WordPress version number. */
    5763                                         __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ),
     5763                                        __( 'Function %1$s was called <strong>incorrectly</strong>. %2$s %3$s' ),
    57645764                                        $function,
    57655765                                        $message,
    57665766                                        $version
     
    57795779
    57805780                        trigger_error(
    57815781                                sprintf(
    5782                                         '%1$s was called <strong>incorrectly</strong>. %2$s %3$s',
     5782                                        'Function %1$s was called <strong>incorrectly</strong>. %2$s %3$s',
    57835783                                        $function,
    57845784                                        $message,
    57855785                                        $version