WordPress.org

Make WordPress Core

Ticket #30448: 30448-customizer-patch-3.diff

File 30448-customizer-patch-3.diff, 548 bytes (added by CrazyJaco, 5 years ago)

Making update function public

  • wp-includes/class-wp-customize-setting.php

    diff --git wp-includes/class-wp-customize-setting.php wp-includes/class-wp-customize-setting.php
    index 7a7be45..3574486 100644
    class WP_Customize_Setting { 
    240240         * @param mixed $value The value to update.
    241241         * @return mixed The result of saving the value.
    242242         */
    243         protected function update( $value ) {
     243        public function update( $value ) {
    244244                switch( $this->type ) {
    245245                        case 'theme_mod' :
    246246                                return $this->_update_theme_mod( $value );