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-includes/class-wp-customize-manager.php

    r51730 r51919  
    11861186     * @param array $starter_content Starter content. Defaults to `get_theme_starter_content()`.
    11871187     */
    1188     function import_theme_starter_content( $starter_content = array() ) {
     1188    public function import_theme_starter_content( $starter_content = array() ) {
    11891189        if ( empty( $starter_content ) ) {
    11901190            $starter_content = get_theme_starter_content();
     
    26232623     * @return array|WP_Error Returns array on success and WP_Error with array data on error.
    26242624     */
    2625     function save_changeset_post( $args = array() ) {
     2625    public function save_changeset_post( $args = array() ) {
    26262626
    26272627        $args = array_merge(
Note: See TracChangeset for help on using the changeset viewer.