Changeset 2278871
- Timestamp:
- 04/08/2020 12:17:06 AM (6 years ago)
- Location:
- widgets-bundle/trunk
- Files:
-
- 8 edited
-
i18n/widgets-bundle.pot (modified) (5 diffs)
-
inc/class-admin.php (modified) (4 diffs)
-
inc/class-config.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
widgets-bundle.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
widgets-bundle/trunk/i18n/widgets-bundle.pot
r2278795 r2278871 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Widgets Bundle 2.0. 3\n"5 "Project-Id-Version: Widgets Bundle 2.0.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2020-04-08T0 2:55:40+05:30\n"12 "POT-Creation-Date: 2020-04-08T05:44:10+05:30\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 18 18 #: inc/admin/views/header.php:15 19 19 #: inc/admin/views/header.php:17 20 #: inc/class-admin.php:3921 #: inc/class-admin.php:4022 20 #: inc/class-config.php:51 23 21 msgid "Widgets Bundle" … … 202 200 msgstr "" 203 201 204 #: inc/class-admin.php:87 202 #: inc/class-admin.php:65 203 msgid "Please save your changes first." 204 msgstr "" 205 206 #: inc/class-admin.php:66 207 msgid "Processing.." 208 msgstr "" 209 210 #: inc/class-admin.php:90 205 211 msgid "Choose Personal Image" 206 212 msgstr "" 207 213 208 #: inc/class-admin.php: 88214 #: inc/class-admin.php:91 209 215 msgid "Choose Advertisement" 210 216 msgstr "" 211 217 212 #: inc/class-admin.php: 89218 #: inc/class-admin.php:92 213 219 msgid "Save" 214 220 msgstr "" 215 221 216 #: inc/class-admin.php:9 0222 #: inc/class-admin.php:93 217 223 #: inc/widgets/ads.php:144 218 224 #: inc/widgets/personal.php:138 … … 220 226 msgstr "" 221 227 222 #: inc/class-admin.php:9 1228 #: inc/class-admin.php:94 223 229 #: inc/widgets/personal.php:129 224 230 msgid "Image preview will show over here." 225 231 msgstr "" 226 232 227 #: inc/class-admin.php:9 2233 #: inc/class-admin.php:95 228 234 #: inc/widgets/ads.php:135 229 235 msgid "Ad preview will show over here." 230 msgstr ""231 232 #: inc/class-admin.php:93233 msgid "Please save your changes first."234 236 msgstr "" 235 237 -
widgets-bundle/trunk/inc/class-admin.php
r2278790 r2278871 37 37 if ( is_admin() && current_user_can( 'manage_options' ) ) { 38 38 $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(), 41 41 'manage_options', 42 42 Config::PREFIX . 'options', … … 63 63 'save_text' => esc_html__( 'Save Changes', 'widgets-bundle' ), 64 64 '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' ), 65 68 ); 66 69 … … 91 94 'image_preview_text' => esc_html__( 'Image preview will show over here.', 'widgets-bundle' ), 92 95 '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' ),96 96 ); 97 97 … … 147 147 $response['code'] = 'error'; 148 148 $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 sanitize152 $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 options163 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 } 164 164 165 165 // Headers for JSON format -
widgets-bundle/trunk/inc/class-config.php
r2278795 r2278871 17 17 18 18 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 . '_'; 23 23 24 24 const DEFAULT_OPTIONS = array( -
widgets-bundle/trunk/readme.txt
r2278795 r2278871 4 4 Tags: widgets, wordpress widgets, wp widgets, wp widgets plugin 5 5 Requires at least: 4.8 6 Tested up to: 5.3.2 7 Stable tag: 2.0.3 6 Tested up to: 5.4 7 Requires PHP: 5.6 8 Stable tag: 2.0.4 8 9 License: GPLv3 9 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 52 53 == Changelog == 53 54 55 = 2.0.4 = 56 * Fixed bugs introduced by the previous update 57 54 58 = 2.0.3 = 55 59 * POT file has been updated -
widgets-bundle/trunk/vendor/autoload.php
r2278795 r2278871 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 43f2ebb0165c655252b64c4a5afffbea::getLoader();7 return ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb::getLoader(); -
widgets-bundle/trunk/vendor/composer/autoload_real.php
r2278795 r2278871 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 43f2ebb0165c655252b64c4a5afffbea5 class ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 43f2ebb0165c655252b64c4a5afffbea', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 43f2ebb0165c655252b64c4a5afffbea', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitdb0ccf5a29b5caff12f522e7cc1e8feb', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 43f2ebb0165c655252b64c4a5afffbea::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::getInitializer($loader)); 34 34 } else { 35 35 $classMap = require __DIR__ . '/autoload_classmap.php'; -
widgets-bundle/trunk/vendor/composer/autoload_static.php
r2278795 r2278871 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 43f2ebb0165c655252b64c4a5afffbea7 class ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 55 55 { 56 56 return \Closure::bind(function () use ($loader) { 57 $loader->prefixLengthsPsr4 = ComposerStaticInit 43f2ebb0165c655252b64c4a5afffbea::$prefixLengthsPsr4;58 $loader->prefixDirsPsr4 = ComposerStaticInit 43f2ebb0165c655252b64c4a5afffbea::$prefixDirsPsr4;59 $loader->classMap = ComposerStaticInit 43f2ebb0165c655252b64c4a5afffbea::$classMap;57 $loader->prefixLengthsPsr4 = ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::$prefixLengthsPsr4; 58 $loader->prefixDirsPsr4 = ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::$prefixDirsPsr4; 59 $loader->classMap = ComposerStaticInitdb0ccf5a29b5caff12f522e7cc1e8feb::$classMap; 60 60 61 61 }, null, ClassLoader::class); -
widgets-bundle/trunk/widgets-bundle.php
r2278795 r2278871 4 4 * Plugin Name: Widgets Bundle 5 5 * Description: The Widgets Bundle plugin allows you to add powerful collection of beautifully crafted widgets to your website. 6 * Version: 2.0. 36 * Version: 2.0.4 7 7 * Runtime: 5.6+ 8 8 * Author: akshitsethi
Note: See TracChangeset
for help on using the changeset viewer.