• Hello Nicolas and team, and glad to see you’re all still clickin’ away!

    I made the wise decision to select the Customizr theme for my first WordPress implementation back in 2014, and have always been extremely satisfied with your assistance and efforts as well as the integrity of your implementations… much appreciated!

    Well, unfortunately, back in 2016 I was directed to deprioritize my effort on the related website, and now that decision has come back to bite. I now need to upgrade to the latest Customizr theme release from 3.4.22 (UUGH!)

    Do you think it would make more sense for me to create a new child theme with the latest version and convert my custom child theme files to work with the new version rather than trying to step through all the required changes of each release since 3.4.22?

    I’d appreciate any recommendation you’re willing to provide. Thank you in advance!
    -Ron

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ronherren

    (@ronherren)

    …and did I just find a coding error in …/core/functions-ccat.php ???

    core/functions-ccat.php: return apply_filters( 'czr_article_container_class' , array( czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) );

    shouldn’t it be: return apply_filters( ‘czr_fn_article_container_class’ …???

    Thread Starter ronherren

    (@ronherren)

    …or ‘tc_article_container_class’ rather than ‘czr_article_container_class’ ???

    This change in Customizr-3.4.31 only to methods/functions and classes is giving me fits! Why not just have done a global search and replace for every tc_ and TC_ and do the actions and filters too ??? So confusing!

    • This reply was modified 5 years, 7 months ago by ronherren.
    • This reply was modified 5 years, 7 months ago by ronherren.
    • This reply was modified 5 years, 7 months ago by ronherren.
    Thread Starter ronherren

    (@ronherren)

    p.s. I found that issue in Customizr-4.1.13 with this recursive grep:

    @Ron-Laptop MINGW64 ~/Downloads/CUSTOMIZR/customizr.4.1.13/customizr
    $ grep -R '_article_container_class'
    core/class-fire-plugins_compat.php:            <div id="content" class="<?php czr_fn_article_container_class() ?>">
    core/functions-ccat.php:if ( ! function_exists( 'czr_fn_article_container_class' ) ) {
    core/functions-ccat.php:      function czr_fn_article_container_class() {
    core/functions-ccat.php:            echo czr_fn_stringify_array( czr_fn_get_article_container_class() );
    core/functions-ccat.php:function czr_fn_get_article_container_class() {
    core/functions-ccat.php:    return apply_filters( 'czr_article_container_class' , array( czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) );
    custom-page.php:                <div id="content" class="<?php czr_fn_article_container_class() ?>">
    custom-page.php:                <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout(  czr_fn_get_id() , 'class' ) , 'article-container' ) ) ) ?>">
    inc/czr-front-ccat.php:        add_filter ( 'tc_article_container_class' , array( $this, 'czr_fn_add_gallery_class' ), 20 );
    inc/czr-front-ccat.php:    add_filter( 'tc_article_container_class' , array( $this, 'czr_fn_article_container_set_classes' ) );
    inc/czr-front-ccat.php:  * hook : tc_article_container_class
    inc/czr-front-ccat.php:          add_filter( 'tc_article_container_class'  , array( $this, 'czr_fn_grid_container_set_classes' ) );
    inc/czr-front-ccat.php:        * hook : tc_article_container_class
    inc/czr-init-ccat.php:              <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) ) ) ?>">
    index.php:                <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( czr_fn_get_id() , 'class' ) , 'article-container' ) ) ) ?>">
    readme.txt:* added : css classes filter in index : tc_article_container_class
    templates/index-no-model.php:                <div id="content" class="<?php czr_fn_article_container_class() ?>">
    
    @Ron-Laptop MINGW64 ~/Downloads/CUSTOMIZR/customizr.4.1.13/customizr
    $
    Thread Starter ronherren

    (@ronherren)

    This is the difficulty I’m having. I created a custom page template, affiliate-page.php, and within the file is this line:

    <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( TC_utils::tc_get_layout( TC_utils::tc_id() , 'class' ) , 'article-container' ) ) ) ?>">

    So, as of Customizr-3.4.30, should it be changed to this?
    <div id="content" class="<?php echo implode(' ', apply_filters( 'czr_fn_article_container_class' , array( CZR_utils::czr_fn_get_layout( CZR_utils::czr_fn_id() , 'class' ) , 'article-container' ) ) ) ?>">

    OR THIS?
    <div id="content" class="<?php echo implode(' ', apply_filters( 'tc_article_container_class' , array( CZR_utils::czr_fn_get_layout( CZR_utils::czr_fn_id() , 'class' ) , 'article-container' ) ) ) ?>">

    I’m thinking the last one, correct? Because ‘tc_article_container_class’ is referring to filter; not a function, correct?

    • This reply was modified 5 years, 7 months ago by ronherren.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upgrading from Customizr-3.4.22 to current -> recommendation please?’ is closed to new replies.