Skip to content

Commit

Permalink
WP_Debug_Data: Normalize visibility of new methods.
Browse files Browse the repository at this point in the history
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 WordPress/wordpress-develop#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: https://core.svn.wordpress.org/trunk@58559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
dmsnell committed Oct 4, 2024
1 parent 2a52bb6 commit 4581152
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ public static function 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();

Expand Down Expand Up @@ -857,7 +857,7 @@ public static function get_wp_dropins(): array {
*
* @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' ) );
Expand Down Expand Up @@ -1050,7 +1050,7 @@ public static function get_wp_server(): array {
* @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' );

Expand Down Expand Up @@ -1244,7 +1244,7 @@ public static function get_wp_media(): array {
*
* @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();
Expand Down Expand Up @@ -1295,7 +1295,7 @@ public static function get_wp_mu_plugins(): array {
*
* @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 ) ) {
Expand Down Expand Up @@ -1459,7 +1459,7 @@ public static function get_wp_constants(): array {
*
* @return array
*/
public static function get_wp_database(): array {
private static function get_wp_database(): array {
global $wpdb;

// Populate the database debug fields.
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4581152

Please sign in to comment.