Coding Standards: Add public visibility to methods in src directory.

This commit adds the `public` visibility keyword to each method which did not have an explicit visibility keyword.

Why `public`?

With no visibility previously declared, these methods are implicitly `public` and available for use. Changing them to anything else would be a backwards-compatibility break.

Props costdev, jrf.
See #54177.

git-svn-id: https://develop.svn.wordpress.org/trunk@51919 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Tonya Mork
2021-10-18 17:51:17 +00:00
parent 4dae388d32
commit b0cc77854f
13 changed files with 100 additions and 100 deletions

View File

@@ -13,7 +13,7 @@ class WP_Debug_Data {
*
* @since 5.2.0
*/
static function check_for_updates() {
public static function check_for_updates() {
wp_version_check();
wp_update_plugins();
wp_update_themes();
@@ -32,7 +32,7 @@ class WP_Debug_Data {
*
* @return array The debug data for the site.
*/
static function debug_data() {
public static function debug_data() {
global $wpdb;
// Save few function calls.