WordPress.org

Make WordPress Core

Changeset 32878


Ignore:
Timestamp:
06/19/2015 10:07:12 PM (6 years ago)
Author:
wonderboymusic
Message:

Add missing access modifiers in class-wp-customize-setting.php.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-setting.php

    r32874 r32878  
    925925     * @return array Array of menu items,
    926926     */
    927     function filter_wp_get_nav_menu_items( $items, $menu, $args ) {
     927    public function filter_wp_get_nav_menu_items( $items, $menu, $args ) {
    928928        $this_item = $this->value();
    929929        $current_nav_menu_term_id = $this_item['nav_menu_term_id'];
     
    996996     * @return array Array of menu items,
    997997     */
    998     static function sort_wp_get_nav_menu_items( $items, $menu, $args ) {
     998    public static function sort_wp_get_nav_menu_items( $items, $menu, $args ) {
    999999        // @todo We should probably re-apply some constraints imposed by $args.
    10001000        unset( $args['include'] );
     
    12681268     * @return array
    12691269     */
    1270     function amend_customize_save_response( $data ) {
     1270    public function amend_customize_save_response( $data ) {
    12711271        if ( ! isset( $data['nav_menu_item_updates'] ) ) {
    12721272            $data['nav_menu_item_updates'] = array();
     
    15161516     * @return object|null
    15171517     */
    1518     function filter_wp_get_nav_menu_object( $menu_obj, $menu_id ) {
     1518    public function filter_wp_get_nav_menu_object( $menu_obj, $menu_id ) {
    15191519        $ok = (
    15201520            get_current_blog_id() === $this->_previewed_blog_id
     
    15611561     * @return array
    15621562     */
    1563     function filter_nav_menu_options( $nav_menu_options ) {
     1563    public function filter_nav_menu_options( $nav_menu_options ) {
    15641564        if ( $this->_previewed_blog_id !== get_current_blog_id() ) {
    15651565            return $nav_menu_options;
     
    17551755     * @return array
    17561756     */
    1757     function amend_customize_save_response( $data ) {
     1757    public function amend_customize_save_response( $data ) {
    17581758        if ( ! isset( $data['nav_menu_updates'] ) ) {
    17591759            $data['nav_menu_updates'] = array();
Note: See TracChangeset for help on using the changeset viewer.