views/noticias/wp-content/plugins/gutentor/includes/sidebar-widget/class-reusable-block-widget.php
/**

         * Function to Updating widget replacing old instances with new

         *

         * @access public

         * @since 1.0.0

         *

         * @param array $new_instance new arrays value

         * @param array $old_instance old arrays value

         * @return array

         *

         */
Function to Updating widget replacing old instances with new



@param array $new_instance new arrays value
@param array $old_instance old arrays value
@return array
Function to Updating widget replacing old instances with new @param array $new_instance new arrays value @param array $old_instance old arrays value @return array
public function update( $new_instance, $old_instance ) {
            $instance = $old_instance;
            $instance[ 'title' ]                = sanitize_text_field( $new_instance[ 'title' ] );
            $instance[ 'wp_block_id' ]              = absint( $new_instance[ 'wp_block_id' ] );
            return $instance;
        }
public function update ( $ new_instance , $ old_instance ) { $ instance = $ old_instance ; $ instance [ 'title' ] = sanitize_text_field ( $ new_instance [ 'title' ] ) ; $ instance [ 'wp_block_id' ] = absint ( $ new_instance [ 'wp_block_id' ] ) ; return $ instance ; }
Function to Updating widget replacing old instances with new
Function to Updating widget replacing old instances with new