Plugin Directory

Changeset 2164997


Ignore:
Timestamp:
09/29/2019 01:48:50 AM (7 years ago)
Author:
lerougeliet
Message:

Fixed bug

Location:
slideshow-reloaded/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • slideshow-reloaded/trunk/includes/SlideshowReloadedGeneralSettings.php

    r2139216 r2164997  
    3838     */
    3939    public static function init() {
    40         if (get_option('slideshow_reloaded_last_fetch_upsell') === false) {
    41             add_option('slideshow_reloaded_last_fetch_upsell', time());
    42         } else if (time() - get_option('slideshow_reloaded_last_fetch_upsell') > 7 * 24 * 60 * 60
     40        if (get_option('slideshow-reloaded-last-fetch-upsell') === false) {
     41            add_option('slideshow-reloaded-last-fetch-upsell', time());
     42        } else if (time() - get_option('slideshow-reloaded-last-fetch-upsell') > 7 * 24 * 60 * 60
    4343            && (!defined('DOING_AJAX') || !DOING_AJAX) && (!defined('DOING_CRON') || !DOING_CRON)) {
    44             update_option('slideshow_reloaded_last_fetch_upsell', time());
     44            update_option('slideshow-reloaded-last-fetch-upsell', time());
    4545            SlideshowReloadedFunctions::fetch_upsell();
    4646        }
     
    201201
    202202        // Loop through default stylesheets
    203         $stylesheetsFilePath = SlideshowReloadedFunctions::getPluginPath() . DIRECTORY_SEPARATOR . 'css';
     203        $stylesheetsFilePath = SlideshowReloadedFunctions::getPluginPath() . DIRECTORY_SEPARATOR . 'public/css';
    204204
    205205        foreach ($defaultStyles as $fileName => $name) {
  • slideshow-reloaded/trunk/includes/SlideshowReloadedInstaller.php

    r2139216 r2164997  
    2525        // Transfer if no version number is set, or the new version number is greater than the current one saved in the database
    2626        $currentVersion = get_option(self::$versionKey, null);
    27 
    2827        if ($currentVersion == null ||
    2928            self::firstVersionGreaterThanSecond(SlideshowReloadedMain::$version, $currentVersion)) {
     
    3534            // Set up capabilities
    3635            self::setCapabilities();
     36            add_action('wp', array(__CLASS__, 'deactivateOld'));
    3737        }
    3838    }
     
    130130        return false;
    131131    }
     132
     133    public static function deactivateOld() {
     134        error_log('deactivateOld');
     135        if (!function_exists('deactivate_plugins')) {
     136            require_once(ABSPATH . 'wp-admin/includes/plugin.php');
     137        }
     138        deactivate_plugins('slideshow-jquery-image-gallery/slideshow.php');
     139    }
    132140}
  • slideshow-reloaded/trunk/includes/SlideshowReloadedSlideshowSettingsHandler.php

    r2139216 r2164997  
    484484            $data = array_merge(
    485485                $data,
    486                 $customData = get_option(SlideshowReloadedGeneralSettings::$defaultStyleSettings, array())
     486                get_option(SlideshowReloadedGeneralSettings::$defaultStyleSettings, array())
    487487            );
    488488        }
  • slideshow-reloaded/trunk/includes/SlideshowReloadedWidget.php

    r2139216 r2164997  
    88class SlideshowReloadedWidget extends WP_Widget {
    99    /** @var string $widgetName */
    10     public static $widgetName = 'Slideshow';
     10    public static $widgetName = 'Slideshow Reloaded';
    1111
    1212    /**
  • slideshow-reloaded/trunk/includes/class-i18n.php

    r2139216 r2164997  
    1515     * @since 1.0.0
    1616     */
    17     public function load_plugin_textdomain() {
     17    public static function load_plugin_textdomain() {
    1818        load_plugin_textdomain(
    1919            'slideshow-reloaded',
  • slideshow-reloaded/trunk/readme.txt

    r2139219 r2164997  
    1 === Slideshow Reloaded ===
     1=== Slideshow Reloaded ===
    22
    33Contributors: lerougeliet
    44Tags: slideshow, slider, photo, gallery, carousel
    55Requires at least: 3.5
    6 Tested up to: 5.2.2
    7 Stable tag: 1.0.1
     6Tested up to: 5.2.3
     7Stable tag: 1.0.2
    88License: GPLv2
    99
     
    1717
    1818This is a fork (an updated clone) of Stenfran Boonstra's [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/). I fixed several bugs, completed some feature requests from the original plugin's support forum, updated deprecated code, and tested it in recent versions of WordPress and PHP.
     19
     20If you're using the old plugin, all of your existing slideshows will automatically work with this version.
    1921
    2022= Features =
     
    126128== Changelog ==
    127129
     130= 1.0.2 =
     131* Fixed slideshow style setting.
     132
    128133= 1.0.1 =
    129134* Improved code style.
  • slideshow-reloaded/trunk/slideshow.php

    r2139216 r2164997  
    44 Plugin URI: http://wordpress.org/extend/plugins/slideshow-reloaded/
    55 Description: The Slideshow Reloaded plugin is easily deployable on your website. Add any image that has already been uploaded to add to your slideshow, add text slides, or even add a video. Options and styles are customizable for every single slideshow on your website.
    6  Version: 1.0.1
     6 Version: 1.0.2
    77 Requires at least: 3.5
    88 Author: Lerougeliet
  • slideshow-reloaded/trunk/views/SlideshowReloadedWidget/form.php

    r2139216 r2164997  
    77
    88    <p>
    9         <label for="<?php echo $data->widget->get_field_id('slideshowId') ?>"><?php _e('Slideshow', 'slideshow-reloaded') ?></label>
     9        <label for="<?php echo $data->widget->get_field_id('slideshowId') ?>"><?php _e('Slideshow Reloaded', 'slideshow-reloaded') ?></label>
    1010        <select class="widefat" id="<?php echo $data->widget->get_field_id('slideshowId') ?>" name="<?php echo $data->widget->get_field_name('slideshowId') ?>" value="<?php echo (is_numeric($data->instance['slideshowId']))? $data->instance['slideshowId'] : '' ?>" style="width:100%">
    1111            <option value="-1" <?php selected($data->instance['slideshowId'], -1) ?>><?php _e('Random Slideshow', 'slideshow-reloaded') ?></option>
Note: See TracChangeset for help on using the changeset viewer.