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-site-health.php

    r51898 r51919  
    27682768     * @return object The test results.
    27692769     */
    2770     function detect_plugin_theme_auto_update_issues() {
     2770    public function detect_plugin_theme_auto_update_issues() {
    27712771        $mock_plugin = (object) array(
    27722772            'id'            => 'w.org/plugins/a-fake-plugin',
     
    28512851     * @return object The test results.
    28522852     */
    2853     function can_perform_loopback() {
     2853    public function can_perform_loopback() {
    28542854        $body    = array( 'site-health' => 'loopback-test' );
    28552855        $cookies = wp_unslash( $_COOKIE );
Note: See TracChangeset for help on using the changeset viewer.