views/noticias/wp-content/themes/supermag/acmethemes/customizer/customizer.php
/**

 * Theme Update Script

 *

 * For backward compatibility

 */
Theme Update Script

For backward compatibility
Theme Update Script For backward compatibility
function supermag_update_check() {
    global $wp_version;
    if ( version_compare( $wp_version, '4.5', '<' ) ) {
        return;
    }
    $supermag_saved_theme_options = supermag_get_theme_options();
    $site_logo = '';
    if( isset( $supermag_saved_theme_options['supermag-header-logo'] )){
        $site_logo = esc_url( $supermag_saved_theme_options['supermag-header-logo'] );
    }
    if ( empty( $site_logo ) ) {
        return;
    }
    $logo = attachment_url_to_postid( $site_logo );
    if ( is_int( $logo ) ) {
        set_theme_mod( 'custom_logo', attachment_url_to_postid( $site_logo ) );
        $supermag_saved_theme_options['supermag-header-logo'] = '';
        set_theme_mod( 'supermag_theme_options', $supermag_saved_theme_options );
    }
}
function supermag_update_check ( ) { global $ wp_version ; if ( version_compare ( $ wp_version , '4.5' , '<' ) ) { return ; } $ supermag_saved_theme_options = supermag_get_theme_options ( ) ; $ site_logo = '' ; if ( isset ( $ supermag_saved_theme_options [ 'supermag-header-logo' ] ) ) { $ site_logo = esc_url ( $ supermag_saved_theme_options [ 'supermag-header-logo' ] ) ; } if ( empty ( $ site_logo ) ) { return ; } $ logo = attachment_url_to_postid ( $ site_logo ) ; if ( is_int ( $ logo ) ) { set_theme_mod ( 'custom_logo' , attachment_url_to_postid ( $ site_logo ) ) ; $ supermag_saved_theme_options [ 'supermag-header-logo' ] = '' ; set_theme_mod ( 'supermag_theme_options' , $ supermag_saved_theme_options ) ; } }
Theme Update Script
Theme Update Script
// Return if wp version less than 4.5 /*converting url into attachment ID*/