Coding Standards: Use more consistent formatting in `wp-includes/class-json.php`.
As an adopted library that does not follow the WordPress Coding Standards, the file ended with a mix of tab and spaces as part of maintenance updates over the years. This commit standardizes on spaces for now, to bring some consistency while minimizing the number of changes. Includes moving all the declared properties to the top of the class. Follow-up to [11875], [11877], [23376], [32990], [46377], [54037]. See #55647. Built from https://develop.svn.wordpress.org/trunk@54038 git-svn-id: http://core.svn.wordpress.org/trunk@53597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b251f368e0
commit
76b0575b97
|
@ -128,6 +128,11 @@ class Services_JSON
|
||||||
*/
|
*/
|
||||||
public $use;
|
public $use;
|
||||||
|
|
||||||
|
// private - cache the mbstring lookup results..
|
||||||
|
var $_mb_strlen = false;
|
||||||
|
var $_mb_substr = false;
|
||||||
|
var $_mb_convert_encoding = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* constructs a new JSON instance
|
* constructs a new JSON instance
|
||||||
*
|
*
|
||||||
|
@ -172,10 +177,6 @@ class Services_JSON
|
||||||
_deprecated_constructor( 'Services_JSON', '5.3.0', get_class( $this ) );
|
_deprecated_constructor( 'Services_JSON', '5.3.0', get_class( $this ) );
|
||||||
self::__construct( $use );
|
self::__construct( $use );
|
||||||
}
|
}
|
||||||
// private - cache the mbstring lookup results..
|
|
||||||
var $_mb_strlen = false;
|
|
||||||
var $_mb_substr = false;
|
|
||||||
var $_mb_convert_encoding = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* convert a string from one UTF-16 char to one UTF-8 char
|
* convert a string from one UTF-16 char to one UTF-8 char
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-54037';
|
$wp_version = '6.1-alpha-54038';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue