Changeset 3220184
- Timestamp:
- 01/10/2025 12:12:53 PM (15 months ago)
- Location:
- smaily-for-wp
- Files:
-
- 10 edited
- 1 copied
-
tags/3.1.4 (copied) (copied from smaily-for-wp/trunk)
-
tags/3.1.4/admin/class-smaily-for-wp-admin.php (modified) (3 diffs)
-
tags/3.1.4/readme.txt (modified) (2 diffs)
-
tags/3.1.4/smaily-for-wp.php (modified) (2 diffs)
-
tags/3.1.4/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
tags/3.1.4/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/admin/class-smaily-for-wp-admin.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smaily-for-wp.php (modified) (2 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smaily-for-wp/tags/3.1.4/admin/class-smaily-for-wp-admin.php
r2993727 r3220184 66 66 */ 67 67 public function enqueue_scripts() { 68 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 69 wp_enqueue_script( $this->plugin_name ); 70 wp_add_inline_script( $this->plugin_name, 'var smaily_for_wp = ' . json_encode( array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) . ';' ); 68 $user = wp_get_current_user(); 69 if ( $user->has_cap( 'edit_plugins' ) ) { 70 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 71 wp_enqueue_script( $this->plugin_name ); 72 wp_add_inline_script( $this->plugin_name, 'var smaily_for_wp = ' . json_encode( array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) . ';' ); 73 } 71 74 } 72 75 … … 121 124 ); 122 125 123 wp_add_inline_script( $this->plugin_name, 'var autoresponders = ' . json_encode( $autoresponders ) . ';' );126 wp_add_inline_script( $this->plugin_name, sprintf( 'var autoresponders = JSON.stringify(%s);', wp_json_encode( $autoresponders ) ), 'before' ); 124 127 } 125 128 … … 140 143 */ 141 144 public function smaily_admin_save() { 145 $user = wp_get_current_user(); 146 if ( ! $user->has_cap( 'edit_plugins' ) ) { 147 return; 148 } 149 142 150 // Allow only posted data. 143 151 if ( empty( $_POST ) ) { -
smaily-for-wp/tags/3.1.4/readme.txt
r2993727 r3220184 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 3.1. 26 Stable tag: 3.1.4 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.4 = 80 - Fix a security issue where users who didn't have correct privileges to edit the plugin settings were allowed to do so through console in administrators interface. https://www.cve.org/CVERecord?id=CVE-2024-54286 81 82 = 3.1.3 = 83 - Fix an issue where blocks section is not rendering due to autoresponders JSON response bad formatting. 78 84 79 85 = 3.1.2 = -
smaily-for-wp/tags/3.1.4/smaily-for-wp.php
r2993727 r3220184 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 3.1. 212 * Version: 3.1.4 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. 2' );27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1.4' ); 28 28 29 29 /** -
smaily-for-wp/tags/3.1.4/vendor/composer/InstalledVersions.php
r2887377 r3220184 323 323 324 324 $installed = array(); 325 $copiedLocalDir = false; 325 326 326 327 if (self::$canGetVendors) { … … 331 332 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 333 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 334 self::$installedByVendor[$vendorDir] = $required; 335 $installed[] = $required; 336 if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 337 self::$installed = $required; 338 $copiedLocalDir = true; 336 339 } 337 340 } … … 351 354 } 352 355 353 if (self::$installed !== array() ) {356 if (self::$installed !== array() && !$copiedLocalDir) { 354 357 $installed[] = self::$installed; 355 358 } -
smaily-for-wp/tags/3.1.4/vendor/composer/installed.php
r2993727 r3220184 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_wp', 4 'pretty_version' => '3.1. 2',5 'version' => '3.1. 2.0',6 'reference' => ' 1f468101c333fae4d27b7f79f08fde4de3f35a09',4 'pretty_version' => '3.1.4', 5 'version' => '3.1.4.0', 6 'reference' => '91fe560a72c6c62266dce45e18810a73309900dd', 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. 2',15 'version' => '3.1. 2.0',16 'reference' => ' 1f468101c333fae4d27b7f79f08fde4de3f35a09',14 'pretty_version' => '3.1.4', 15 'version' => '3.1.4.0', 16 'reference' => '91fe560a72c6c62266dce45e18810a73309900dd', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../', -
smaily-for-wp/trunk/admin/class-smaily-for-wp-admin.php
r2993727 r3220184 66 66 */ 67 67 public function enqueue_scripts() { 68 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 69 wp_enqueue_script( $this->plugin_name ); 70 wp_add_inline_script( $this->plugin_name, 'var smaily_for_wp = ' . json_encode( array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) . ';' ); 68 $user = wp_get_current_user(); 69 if ( $user->has_cap( 'edit_plugins' ) ) { 70 wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false ); 71 wp_enqueue_script( $this->plugin_name ); 72 wp_add_inline_script( $this->plugin_name, 'var smaily_for_wp = ' . json_encode( array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) . ';' ); 73 } 71 74 } 72 75 … … 121 124 ); 122 125 123 wp_add_inline_script( $this->plugin_name, 'var autoresponders = ' . json_encode( $autoresponders ) . ';' );126 wp_add_inline_script( $this->plugin_name, sprintf( 'var autoresponders = JSON.stringify(%s);', wp_json_encode( $autoresponders ) ), 'before' ); 124 127 } 125 128 … … 140 143 */ 141 144 public function smaily_admin_save() { 145 $user = wp_get_current_user(); 146 if ( ! $user->has_cap( 'edit_plugins' ) ) { 147 return; 148 } 149 142 150 // Allow only posted data. 143 151 if ( empty( $_POST ) ) { -
smaily-for-wp/trunk/readme.txt
r2993727 r3220184 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.0 6 Stable tag: 3.1. 26 Stable tag: 3.1.4 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.4 = 80 - Fix a security issue where users who didn't have correct privileges to edit the plugin settings were allowed to do so through console in administrators interface. https://www.cve.org/CVERecord?id=CVE-2024-54286 81 82 = 3.1.3 = 83 - Fix an issue where blocks section is not rendering due to autoresponders JSON response bad formatting. 78 84 79 85 = 3.1.2 = -
smaily-for-wp/trunk/smaily-for-wp.php
r2993727 r3220184 10 10 * Text Domain: smaily-for-wp 11 11 * Description: Smaily newsletter subscription form. 12 * Version: 3.1. 212 * Version: 3.1.4 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. 2' );27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1.4' ); 28 28 29 29 /** -
smaily-for-wp/trunk/vendor/composer/InstalledVersions.php
r2887377 r3220184 323 323 324 324 $installed = array(); 325 $copiedLocalDir = false; 325 326 326 327 if (self::$canGetVendors) { … … 331 332 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 333 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 334 self::$installedByVendor[$vendorDir] = $required; 335 $installed[] = $required; 336 if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 337 self::$installed = $required; 338 $copiedLocalDir = true; 336 339 } 337 340 } … … 351 354 } 352 355 353 if (self::$installed !== array() ) {356 if (self::$installed !== array() && !$copiedLocalDir) { 354 357 $installed[] = self::$installed; 355 358 } -
smaily-for-wp/trunk/vendor/composer/installed.php
r2993727 r3220184 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_wp', 4 'pretty_version' => '3.1. 2',5 'version' => '3.1. 2.0',6 'reference' => ' 1f468101c333fae4d27b7f79f08fde4de3f35a09',4 'pretty_version' => '3.1.4', 5 'version' => '3.1.4.0', 6 'reference' => '91fe560a72c6c62266dce45e18810a73309900dd', 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. 2',15 'version' => '3.1. 2.0',16 'reference' => ' 1f468101c333fae4d27b7f79f08fde4de3f35a09',14 'pretty_version' => '3.1.4', 15 'version' => '3.1.4.0', 16 'reference' => '91fe560a72c6c62266dce45e18810a73309900dd', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.