Plugin Directory

Changeset 2278871


Ignore:
Timestamp:
04/08/2020 12:17:06 AM (6 years ago)
Author:
akshitsethi
Message:

Update to version v2.0.4 from GitHub

Location:
widgets-bundle/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • widgets-bundle/trunk/i18n/widgets-bundle.pot

    r2278795 r2278871  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Widgets Bundle 2.0.3\n"
     5"Project-Id-Version: Widgets Bundle 2.0.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-04-08T02:55:40+05:30\n"
     12"POT-Creation-Date: 2020-04-08T05:44:10+05:30\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    1818#: inc/admin/views/header.php:15
    1919#: inc/admin/views/header.php:17
    20 #: inc/class-admin.php:39
    21 #: inc/class-admin.php:40
    2220#: inc/class-config.php:51
    2321msgid "Widgets Bundle"
     
    202200msgstr ""
    203201
    204 #: inc/class-admin.php:87
     202#: inc/class-admin.php:65
     203msgid "Please save your changes first."
     204msgstr ""
     205
     206#: inc/class-admin.php:66
     207msgid "Processing.."
     208msgstr ""
     209
     210#: inc/class-admin.php:90
    205211msgid "Choose Personal Image"
    206212msgstr ""
    207213
    208 #: inc/class-admin.php:88
     214#: inc/class-admin.php:91
    209215msgid "Choose Advertisement"
    210216msgstr ""
    211217
    212 #: inc/class-admin.php:89
     218#: inc/class-admin.php:92
    213219msgid "Save"
    214220msgstr ""
    215221
    216 #: inc/class-admin.php:90
     222#: inc/class-admin.php:93
    217223#: inc/widgets/ads.php:144
    218224#: inc/widgets/personal.php:138
     
    220226msgstr ""
    221227
    222 #: inc/class-admin.php:91
     228#: inc/class-admin.php:94
    223229#: inc/widgets/personal.php:129
    224230msgid "Image preview will show over here."
    225231msgstr ""
    226232
    227 #: inc/class-admin.php:92
     233#: inc/class-admin.php:95
    228234#: inc/widgets/ads.php:135
    229235msgid "Ad preview will show over here."
    230 msgstr ""
    231 
    232 #: inc/class-admin.php:93
    233 msgid "Please save your changes first."
    234236msgstr ""
    235237
  • widgets-bundle/trunk/inc/class-admin.php

    r2278790 r2278871  
    3737        if ( is_admin() && current_user_can( 'manage_options' ) ) {
    3838            $menu = add_options_page(
    39                 esc_html__( 'Widgets Bundle', 'widgets-bundle' ),
    40                 esc_html__( 'Widgets Bundle', 'widgets-bundle' ),
     39                Config::get_plugin_name(),
     40                Config::get_plugin_name(),
    4141                'manage_options',
    4242                Config::PREFIX . 'options',
     
    6363            'save_text'    => esc_html__( 'Save Changes', 'widgets-bundle' ),
    6464            'support_text' => esc_html__( 'Ask for Support', 'widgets-bundle' ),
     65            'save_changes' => esc_html__( 'Please save your changes first.', 'widgets-bundle' ),
     66            'processing'   => esc_html__( 'Processing..', 'widgets-bundle' ),
     67            'nonce'        => wp_create_nonce( Config::PREFIX . 'nonce' ),
    6568        );
    6669
     
    9194            'image_preview_text' => esc_html__( 'Image preview will show over here.', 'widgets-bundle' ),
    9295            'ad_preview_text'    => esc_html__( 'Ad preview will show over here.', 'widgets-bundle' ),
    93             'save_changes'       => esc_html__( 'Please save your changes first.', 'widgets-bundle' ),
    94             'processing'         => esc_html__( 'Processing..' ),
    95             'nonce'              => wp_create_nonce( Config::PREFIX . 'nonce' ),
    9696        );
    9797
     
    147147            $response['code']     = 'error';
    148148            $response['response'] = esc_html__( 'Request does not seem to be a valid one. Try again by refreshing the page.', 'widgets-bundle' );
    149         }
    150 
    151         // Filter and sanitize
    152         $options['ads']       = isset( $_POST[ Config::PREFIX . 'ads' ] ) ? true : false;
    153         $options['personal']  = isset( $_POST[ Config::PREFIX . 'personal' ] ) ? true : false;
    154         $options['posts']     = isset( $_POST[ Config::PREFIX . 'posts' ] ) ? true : false;
    155         $options['quote']     = isset( $_POST[ Config::PREFIX . 'quote' ] ) ? true : false;
    156         $options['social']    = isset( $_POST[ Config::PREFIX . 'social' ] ) ? true : false;
    157         $options['subscribe'] = isset( $_POST[ Config::PREFIX . 'subscribe' ] ) ? true : false;
    158         $options['instagram'] = isset( $_POST[ Config::PREFIX . 'instagram' ] ) ? true : false;
    159         $options['facebook']  = isset( $_POST[ Config::PREFIX . 'facebook' ] ) ? true : false;
    160         $options['twitter']   = isset( $_POST[ Config::PREFIX . 'twitter' ] ) ? true : false;
    161 
    162         // Update options
    163         update_option( Config::DB_OPTION, $options );
     149        } else {
     150            // Filter and sanitize
     151            $options['ads']       = isset( $_POST[ Config::PREFIX . 'ads' ] ) ? true : false;
     152            $options['personal']  = isset( $_POST[ Config::PREFIX . 'personal' ] ) ? true : false;
     153            $options['posts']     = isset( $_POST[ Config::PREFIX . 'posts' ] ) ? true : false;
     154            $options['quote']     = isset( $_POST[ Config::PREFIX . 'quote' ] ) ? true : false;
     155            $options['social']    = isset( $_POST[ Config::PREFIX . 'social' ] ) ? true : false;
     156            $options['subscribe'] = isset( $_POST[ Config::PREFIX . 'subscribe' ] ) ? true : false;
     157            $options['instagram'] = isset( $_POST[ Config::PREFIX . 'instagram' ] ) ? true : false;
     158            $options['facebook']  = isset( $_POST[ Config::PREFIX . 'facebook' ] ) ? true : false;
     159            $options['twitter']   = isset( $_POST[ Config::PREFIX . 'twitter' ] ) ? true : false;
     160
     161            // Update options
     162            update_option( Config::DB_OPTION, $options );
     163        }
    164164
    165165        // Headers for JSON format
  • widgets-bundle/trunk/inc/class-config.php

    r2278795 r2278871  
    1717
    1818    const PLUGIN_SLUG = 'widgets-bundle';
    19     const SHORT_SLUG  = 'as-wb';
    20     const VERSION     = '2.0.3';
    21     const DB_OPTION   = 'as_widgetsbundle';
    22     const PREFIX      = 'widgetsbundle_';
     19    const SHORT_SLUG  = 'widgetsbundle';
     20    const VERSION     = '2.0.4';
     21    const DB_OPTION   = 'as_' . self::SHORT_SLUG;
     22    const PREFIX      = self::SHORT_SLUG . '_';
    2323
    2424    const DEFAULT_OPTIONS = array(
  • widgets-bundle/trunk/readme.txt

    r2278795 r2278871  
    44Tags: widgets, wordpress widgets, wp widgets, wp widgets plugin
    55Requires at least: 4.8
    6 Tested up to: 5.3.2
    7 Stable tag: 2.0.3
     6Tested up to: 5.4
     7Requires PHP: 5.6
     8Stable tag: 2.0.4
    89License: GPLv3
    910License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5253== Changelog ==
    5354
     55= 2.0.4 =
     56* Fixed bugs introduced by the previous update
     57
    5458= 2.0.3 =
    5559* POT file has been updated
  • widgets-bundle/trunk/vendor/autoload.php

    r2278795 r2278871  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit43f2ebb0165c655252b64c4a5afffbea::getLoader();
     7return ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb::getLoader();
  • widgets-bundle/trunk/vendor/composer/autoload_real.php

    r2278795 r2278871  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit43f2ebb0165c655252b64c4a5afffbea
     5class ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit43f2ebb0165c655252b64c4a5afffbea', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInit43f2ebb0165c655252b64c4a5afffbea', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit43f2ebb0165c655252b64c4a5afffbea::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::getInitializer($loader));
    3434        } else {
    3535            $classMap = require __DIR__ . '/autoload_classmap.php';
  • widgets-bundle/trunk/vendor/composer/autoload_static.php

    r2278795 r2278871  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit43f2ebb0165c655252b64c4a5afffbea
     7class ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    5555    {
    5656        return \Closure::bind(function () use ($loader) {
    57             $loader->prefixLengthsPsr4 = ComposerStaticInit43f2ebb0165c655252b64c4a5afffbea::$prefixLengthsPsr4;
    58             $loader->prefixDirsPsr4 = ComposerStaticInit43f2ebb0165c655252b64c4a5afffbea::$prefixDirsPsr4;
    59             $loader->classMap = ComposerStaticInit43f2ebb0165c655252b64c4a5afffbea::$classMap;
     57            $loader->prefixLengthsPsr4 = ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::$prefixLengthsPsr4;
     58            $loader->prefixDirsPsr4 = ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::$prefixDirsPsr4;
     59            $loader->classMap = ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::$classMap;
    6060
    6161        }, null, ClassLoader::class);
  • widgets-bundle/trunk/widgets-bundle.php

    r2278795 r2278871  
    44 * Plugin Name: Widgets Bundle
    55 * Description: The Widgets Bundle plugin allows you to add powerful collection of beautifully crafted widgets to your website.
    6  * Version:     2.0.3
     6 * Version:     2.0.4
    77 * Runtime:     5.6+
    88 * Author:      akshitsethi
Note: See TracChangeset for help on using the changeset viewer.