mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user