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