Make WordPress Core


Ignore:
Timestamp:
10/18/2021 05:51:17 PM (3 years ago)
Author:
hellofromTonya
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r51715 r51919  
    1414     * @since 5.2.0
    1515     */
    16     static function check_for_updates() {
     16    public static function check_for_updates() {
    1717        wp_version_check();
    1818        wp_update_plugins();
     
    3333     * @return array The debug data for the site.
    3434     */
    35     static function debug_data() {
     35    public static function debug_data() {
    3636        global $wpdb;
    3737
Note: See TracChangeset for help on using the changeset viewer.