Skip to content

Commit

Permalink
Coding Standards: Pass an empty string instead of null as the `$rep…
Browse files Browse the repository at this point in the history
…lacement` parameter to `_deprecated_file()`.

Follow-up to [48327].

See #50767.

git-svn-id: https://develop.svn.wordpress.org/trunk@49564 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Nov 12, 2020
1 parent 8b2aa59 commit ea136a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/class-json.php
@@ -1,5 +1,5 @@
<?php
_deprecated_file( basename( __FILE__ ), '5.3.0', null, 'The PHP native JSON extension is now a requirement.' );
_deprecated_file( basename( __FILE__ ), '5.3.0', '', 'The PHP native JSON extension is now a requirement.' );

if ( ! class_exists( 'Services_JSON' ) ) :
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/registration-functions.php
Expand Up @@ -6,4 +6,4 @@
* @deprecated 2.1.0
*/

_deprecated_file( basename( __FILE__ ), '2.1.0', null, __( 'This file no longer needs to be included.' ) );
_deprecated_file( basename( __FILE__ ), '2.1.0', '', __( 'This file no longer needs to be included.' ) );
2 changes: 1 addition & 1 deletion src/wp-includes/registration.php
Expand Up @@ -6,4 +6,4 @@
* @deprecated 3.1.0
*/

_deprecated_file( basename( __FILE__ ), '3.1.0', null, __( 'This file no longer needs to be included.' ) );
_deprecated_file( basename( __FILE__ ), '3.1.0', '', __( 'This file no longer needs to be included.' ) );
2 changes: 1 addition & 1 deletion src/wp-includes/spl-autoload-compat.php
Expand Up @@ -11,4 +11,4 @@
* @access private
*/

_deprecated_file( basename( __FILE__ ), '5.3.0', null, 'SPL can no longer be disabled as of PHP 5.3.' );
_deprecated_file( basename( __FILE__ ), '5.3.0', '', 'SPL can no longer be disabled as of PHP 5.3.' );

0 comments on commit ea136a3

Please sign in to comment.