WP_Debug_Data: Normalize visibility of new methods.
In ongoing work to modularize the `WP_Debug_Data` class, several methods were added with `public` visibility. This patch sets the new methods to `private` as a measure to ensure optionality as the changes progress, since it's easier to move from private to public than the other way around. Developed in https://github.com/wordpress/wordpress-develop/pull/7482 Discussed in https://core.trac.wordpress.org/ticket/61648 Follow-up to [58830], [58855], [58964], [59002], [59011], [59060], [59100]. Props apermo, jonsurrell. Fixes #61648. Built from https://develop.svn.wordpress.org/trunk@59164 git-svn-id: http://core.svn.wordpress.org/trunk@58559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3208c28c07
commit
4f3db72338
|
@ -822,7 +822,7 @@ class WP_Debug_Data {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function get_wp_dropins(): array {
|
||||
private static function get_wp_dropins(): array {
|
||||
// Get a list of all drop-in replacements.
|
||||
$dropins = get_dropins();
|
||||
|
||||
|
@ -857,7 +857,7 @@ class WP_Debug_Data {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function get_wp_server(): array {
|
||||
private static function get_wp_server(): array {
|
||||
// Populate the server debug fields.
|
||||
if ( function_exists( 'php_uname' ) ) {
|
||||
$server_architecture = sprintf( '%s %s %s', php_uname( 's' ), php_uname( 'r' ), php_uname( 'm' ) );
|
||||
|
@ -1050,7 +1050,7 @@ class WP_Debug_Data {
|
|||
* @throws ImagickException
|
||||
* @return array
|
||||
*/
|
||||
public static function get_wp_media(): array {
|
||||
private static function get_wp_media(): array {
|
||||
// Spare few function calls.
|
||||
$not_available = __( 'Not available' );
|
||||
|
||||
|
@ -1244,7 +1244,7 @@ class WP_Debug_Data {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function get_wp_mu_plugins(): array {
|
||||
private static function get_wp_mu_plugins(): array {
|
||||
// List must use plugins if there are any.
|
||||
$mu_plugins = get_mu_plugins();
|
||||
$fields = array();
|
||||
|
@ -1295,7 +1295,7 @@ class WP_Debug_Data {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function get_wp_constants(): array {
|
||||
private static function get_wp_constants(): array {
|
||||
// Check if WP_DEBUG_LOG is set.
|
||||
$wp_debug_log_value = __( 'Disabled' );
|
||||
if ( is_string( WP_DEBUG_LOG ) ) {
|
||||
|
@ -1459,7 +1459,7 @@ class WP_Debug_Data {
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function get_wp_database(): array {
|
||||
private static function get_wp_database(): array {
|
||||
global $wpdb;
|
||||
|
||||
// Populate the database debug fields.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-beta1-59163';
|
||||
$wp_version = '6.7-beta1-59164';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue