Changeset 3226669
- Timestamp:
- 01/22/2025 08:53:46 AM (15 months ago)
- Location:
- smaily-for-wp
- Files:
-
- 10 edited
- 1 copied
-
tags/3.1.5 (copied) (copied from smaily-for-wp/trunk)
-
tags/3.1.5/admin/class-smaily-for-wp-admin.php (modified) (2 diffs)
-
tags/3.1.5/readme.txt (modified) (2 diffs)
-
tags/3.1.5/smaily-for-wp.php (modified) (2 diffs)
-
tags/3.1.5/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
tags/3.1.5/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/admin/class-smaily-for-wp-admin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smaily-for-wp.php (modified) (2 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smaily-for-wp/tags/3.1.5/admin/class-smaily-for-wp-admin.php
r3220184 r3226669 67 67 public function enqueue_scripts() { 68 68 $user = wp_get_current_user(); 69 if ( $user->has_cap( 'edit_plugins' ) ) { 69 $allowed_roles = array( 'administrator' ); 70 if ( array_intersect( $allowed_roles, $user->roles ) ) { 70 71 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 71 72 wp_enqueue_script( $this->plugin_name ); … … 144 145 public function smaily_admin_save() { 145 146 $user = wp_get_current_user(); 146 if ( ! $user->has_cap( 'edit_plugins' ) ) { 147 $allowed_roles = array( 'administrator' ); 148 if ( !array_intersect( $allowed_roles, $user->roles ) ) { 147 149 return; 148 150 } -
smaily-for-wp/tags/3.1.5/readme.txt
r3220184 r3226669 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 3.1. 46 Stable tag: 3.1.5 7 7 Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily 8 8 Tested up to: 6.4 … … 76 76 77 77 == Changelog == 78 79 = 3.1.5 = 80 - Fix an issue where administrator scripts are not loaded when DISALLOW_FILE_EDIT configuration option is enabled. 78 81 79 82 = 3.1.4 = -
smaily-for-wp/tags/3.1.5/smaily-for-wp.php
r3220184 r3226669 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 3.1. 412 * Version: 3.1.5 13 13 * Author: Sendsmaily LLC 14 14 * Author URI: https://smaily.com … … 25 25 * Current plugin version. 26 26 */ 27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1. 4' );27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1.5' ); 28 28 29 29 /** -
smaily-for-wp/tags/3.1.5/vendor/composer/InstalledVersions.php
r3220184 r3226669 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 self::$installedByVendor = array(); 317 318 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 319 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 320 // so we have to assume it does not, and that may result in duplicate data being returned when listing 321 // all installed packages for example 322 self::$installedIsLocalDir = false; 312 323 } 313 324 … … 326 337 327 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 328 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 329 342 if (isset(self::$installedByVendor[$vendorDir])) { 330 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 334 347 self::$installedByVendor[$vendorDir] = $required; 335 348 $installed[] = $required; 336 if (s trtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 337 350 self::$installed = $required; 338 $copiedLocalDir = true;351 self::$installedIsLocalDir = true; 339 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 340 356 } 341 357 } -
smaily-for-wp/tags/3.1.5/vendor/composer/installed.php
r3220184 r3226669 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_wp', 4 'pretty_version' => '3.1. 4',5 'version' => '3.1. 4.0',6 'reference' => ' 91fe560a72c6c62266dce45e18810a73309900dd',4 'pretty_version' => '3.1.5', 5 'version' => '3.1.5.0', 6 'reference' => '0e4797091dc28f1820c3fe8f5184e6c3f7c0985d', 7 7 'type' => 'plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'smaily/smaily_for_wp' => array( 14 'pretty_version' => '3.1. 4',15 'version' => '3.1. 4.0',16 'reference' => ' 91fe560a72c6c62266dce45e18810a73309900dd',14 'pretty_version' => '3.1.5', 15 'version' => '3.1.5.0', 16 'reference' => '0e4797091dc28f1820c3fe8f5184e6c3f7c0985d', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../', -
smaily-for-wp/trunk/admin/class-smaily-for-wp-admin.php
r3220184 r3226669 67 67 public function enqueue_scripts() { 68 68 $user = wp_get_current_user(); 69 if ( $user->has_cap( 'edit_plugins' ) ) { 69 $allowed_roles = array( 'administrator' ); 70 if ( array_intersect( $allowed_roles, $user->roles ) ) { 70 71 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 71 72 wp_enqueue_script( $this->plugin_name ); … … 144 145 public function smaily_admin_save() { 145 146 $user = wp_get_current_user(); 146 if ( ! $user->has_cap( 'edit_plugins' ) ) { 147 $allowed_roles = array( 'administrator' ); 148 if ( !array_intersect( $allowed_roles, $user->roles ) ) { 147 149 return; 148 150 } -
smaily-for-wp/trunk/readme.txt
r3220184 r3226669 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 3.1. 46 Stable tag: 3.1.5 7 7 Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily 8 8 Tested up to: 6.4 … … 76 76 77 77 == Changelog == 78 79 = 3.1.5 = 80 - Fix an issue where administrator scripts are not loaded when DISALLOW_FILE_EDIT configuration option is enabled. 78 81 79 82 = 3.1.4 = -
smaily-for-wp/trunk/smaily-for-wp.php
r3220184 r3226669 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 3.1. 412 * Version: 3.1.5 13 13 * Author: Sendsmaily LLC 14 14 * Author URI: https://smaily.com … … 25 25 * Current plugin version. 26 26 */ 27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1. 4' );27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1.5' ); 28 28 29 29 /** -
smaily-for-wp/trunk/vendor/composer/InstalledVersions.php
r3220184 r3226669 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 self::$installedByVendor = array(); 317 318 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 319 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 320 // so we have to assume it does not, and that may result in duplicate data being returned when listing 321 // all installed packages for example 322 self::$installedIsLocalDir = false; 312 323 } 313 324 … … 326 337 327 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 328 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 329 342 if (isset(self::$installedByVendor[$vendorDir])) { 330 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 334 347 self::$installedByVendor[$vendorDir] = $required; 335 348 $installed[] = $required; 336 if (s trtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 337 350 self::$installed = $required; 338 $copiedLocalDir = true;351 self::$installedIsLocalDir = true; 339 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 340 356 } 341 357 } -
smaily-for-wp/trunk/vendor/composer/installed.php
r3220184 r3226669 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_wp', 4 'pretty_version' => '3.1. 4',5 'version' => '3.1. 4.0',6 'reference' => ' 91fe560a72c6c62266dce45e18810a73309900dd',4 'pretty_version' => '3.1.5', 5 'version' => '3.1.5.0', 6 'reference' => '0e4797091dc28f1820c3fe8f5184e6c3f7c0985d', 7 7 'type' => 'plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'smaily/smaily_for_wp' => array( 14 'pretty_version' => '3.1. 4',15 'version' => '3.1. 4.0',16 'reference' => ' 91fe560a72c6c62266dce45e18810a73309900dd',14 'pretty_version' => '3.1.5', 15 'version' => '3.1.5.0', 16 'reference' => '0e4797091dc28f1820c3fe8f5184e6c3f7c0985d', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.