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

@@ -1185,7 +1185,7 @@ final class WP_Customize_Manager {
*
* @param array $starter_content Starter content. Defaults to `get_theme_starter_content()`.
*/
function import_theme_starter_content( $starter_content = array() ) {
public function import_theme_starter_content( $starter_content = array() ) {
if ( empty( $starter_content ) ) {
$starter_content = get_theme_starter_content();
}
@@ -2622,7 +2622,7 @@ final class WP_Customize_Manager {
*
* @return array|WP_Error Returns array on success and WP_Error with array data on error.
*/
function save_changeset_post( $args = array() ) {
public function save_changeset_post( $args = array() ) {
$args = array_merge(
array(