Ticket #54658: 54658.2.diff
File 54658.2.diff, 7.6 KB (added by , 2 years ago) |
---|
-
src/wp-includes/functions.php
5308 5308 trigger_error( 5309 5309 sprintf( 5310 5310 /* 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.' ), 5312 5312 $function, 5313 5313 $version, 5314 5314 $replacement … … 5319 5319 trigger_error( 5320 5320 sprintf( 5321 5321 /* 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.' ), 5323 5323 $function, 5324 5324 $version 5325 5325 ), … … 5330 5330 if ( $replacement ) { 5331 5331 trigger_error( 5332 5332 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.', 5334 5334 $function, 5335 5335 $version, 5336 5336 $replacement … … 5340 5340 } else { 5341 5341 trigger_error( 5342 5342 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.', 5344 5344 $function, 5345 5345 $version 5346 5346 ), … … 5400 5400 trigger_error( 5401 5401 sprintf( 5402 5402 /* 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.' ), 5404 5404 $class, 5405 5405 $parent_class, 5406 5406 $version, … … 5412 5412 trigger_error( 5413 5413 sprintf( 5414 5414 /* 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.' ), 5416 5416 $class, 5417 5417 $version, 5418 5418 '<code>__construct()</code>' … … 5424 5424 if ( $parent_class ) { 5425 5425 trigger_error( 5426 5426 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.', 5428 5428 $class, 5429 5429 $parent_class, 5430 5430 $version, … … 5435 5435 } else { 5436 5436 trigger_error( 5437 5437 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.', 5439 5439 $class, 5440 5440 $version, 5441 5441 '<code>__construct()</code>' … … 5498 5498 trigger_error( 5499 5499 sprintf( 5500 5500 /* 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.' ), 5502 5502 $file, 5503 5503 $version, 5504 5504 $replacement … … 5509 5509 trigger_error( 5510 5510 sprintf( 5511 5511 /* 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.' ), 5513 5513 $file, 5514 5514 $version 5515 5515 ) . $message, … … 5520 5520 if ( $replacement ) { 5521 5521 trigger_error( 5522 5522 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.', 5524 5524 $file, 5525 5525 $version, 5526 5526 $replacement … … 5530 5530 } else { 5531 5531 trigger_error( 5532 5532 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.', 5534 5534 $file, 5535 5535 $version 5536 5536 ) . $message, … … 5592 5592 trigger_error( 5593 5593 sprintf( 5594 5594 /* 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' ), 5596 5596 $function, 5597 5597 $version, 5598 5598 $message … … 5603 5603 trigger_error( 5604 5604 sprintf( 5605 5605 /* 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.' ), 5607 5607 $function, 5608 5608 $version 5609 5609 ), … … 5614 5614 if ( $message ) { 5615 5615 trigger_error( 5616 5616 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', 5618 5618 $function, 5619 5619 $version, 5620 5620 $message … … 5624 5624 } else { 5625 5625 trigger_error( 5626 5626 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.', 5628 5628 $function, 5629 5629 $version 5630 5630 ), … … 5683 5683 trigger_error( 5684 5684 sprintf( 5685 5685 /* 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.' ), 5687 5687 $hook, 5688 5688 $version, 5689 5689 $replacement … … 5694 5694 trigger_error( 5695 5695 sprintf( 5696 5696 /* 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.' ), 5698 5698 $hook, 5699 5699 $version 5700 5700 ) . $message, … … 5760 5760 trigger_error( 5761 5761 sprintf( 5762 5762 /* 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' ), 5764 5764 $function, 5765 5765 $message, 5766 5766 $version … … 5779 5779 5780 5780 trigger_error( 5781 5781 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', 5783 5783 $function, 5784 5784 $message, 5785 5785 $version