Plugin Directory

Changeset 1711367


Ignore:
Timestamp:
08/10/2017 08:58:04 AM (9 years ago)
Author:
tallythemes
Message:

BUG FIX: Plugin was not checking real plugin activation.

Location:
tally-theme-setup/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tally-theme-setup/trunk/loader-v2.php

    r1706261 r1711367  
    143143        if(($this->demo_data['home'] !== false) && $_REQUEST['target'] == 'setup_home'){
    144144            $home_page_data = get_page_by_title( $this->demo_data['home'] );
    145             if($home_page_data && update_option( 'page_on_front', $home_page_data->ID)){
     145            if($home_page_data){
     146                update_option( 'page_on_front', $home_page_data->ID);
    146147                update_option( 'show_on_front', 'page' );
    147148                update_option($this->options_name['home'], 'done');
     
    158159        if(($this->demo_data['blog'] !== false) && $_REQUEST['target'] == 'setup_home'){
    159160            $home_blog_data = get_page_by_title( $this->demo_data['blog'] );
    160             if($home_blog_data && update_option( 'page_for_posts', $home_blog_data->ID)){
     161            if($home_blog_data){
     162                update_option( 'page_for_posts', $home_blog_data->ID);
    161163                update_option($this->options_name['blog'], 'done');
    162164                echo '<p>Set Blog page as Post page.</p>';
     
    236238        $theme_demo_url = $this->demo_data['demo_url'];
    237239       
     240        //print_r($plugins_lists);
     241        $plugins_lists_count = count($plugins_lists);
    238242       
    239243        $installed_plugin_count = 0;
    240244        if(is_array($plugins_lists)){
    241245            foreach($plugins_lists as $plugins_list){
    242                 if(!is_plugin_active( $plugins_list )){
     246                if(is_plugin_active( $plugins_list )){
    243247                    $installed_plugin_count++;
    244                 }
    245             }
    246         }
    247        
     248                    //echo $plugins_list.'<br>';
     249                }
     250            }
     251        }
     252        //echo $installed_plugin_count;
    248253        $all_data_imported = $this->is_all_data_imported();
    249254
     
    273278            <div class="tallythemesetup_notice">
    274279                <h2><?php _e( 'Thanks for installing <strong>'.$theme->get( 'Name' ).'</strong> Theme', 'tally-theme-setup' ); ?></h2>
    275                 <?php if($installed_plugin_count == 0): ?>
     280                <?php if($installed_plugin_count == $plugins_lists_count): ?>
    276281                    <?php if($is_current_page_impoter_page == true): ?>
    277282                        <p>Now you are in the Sample Data Impoter page. Please click on <strong>Import Sample Data</strong> button to make your site look like the theme demo.</p>
  • tally-theme-setup/trunk/readme.txt

    r1706261 r1711367  
    33Tags: tallythemes, importer, sample data, sample data importer
    44Requires at least: 4.4
    5 Tested up to: 4.8
    6 Stable tag: 2.1
     5Tested up to: 4.8.1
     6Stable tag: 2.2
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    3939
    4040== Change log ==
     41= 2.1 =
     42- BUG FIX: Plugin was not checking real plugin activation.
     43
    4144= 2.1 =
    4245- BUG FIX: Plugin notice was showing in version two mood when no demo data was defined.
  • tally-theme-setup/trunk/tally-theme-setup.php

    r1706261 r1711367  
    77Plugin URI: http://tallythemes.com/
    88Description: Import demo content for Tally Themes
    9 Version: 2.1
     9Version: 2.2
    1010Author: TallyThemes
    1111Author URI: http://tallythemes.com/
Note: See TracChangeset for help on using the changeset viewer.