Changeset 3444716
- Timestamp:
- 01/22/2026 10:55:48 AM (7 weeks ago)
- Location:
- wp-sync-for-notion/trunk
- Files:
-
- 11 edited
-
changelog.txt (modified) (1 diff)
-
includes/admin/metaboxes/class-notion-wp-sync-metabox-global-settings.php (modified) (1 diff)
-
includes/admin/metaboxes/class-notion-wp-sync-metabox-import-infos.php (modified) (3 diffs)
-
includes/class-notion-wp-sync-helpers.php (modified) (1 diff)
-
notion-wp-sync.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-sync-for-notion/trunk/changelog.txt
r3420188 r3444716 1 1 == Changelog == 2 2 === WP Sync for Notion - Notion to WordPress === 3 4 = 1.7.1 = 5 *Release Date: 20th Jan. 2026* 6 7 * Security: Fix Broken Access Control ; add missing user capability check on ajax request 3 8 4 9 = 1.7.0 = -
wp-sync-for-notion/trunk/includes/admin/metaboxes/class-notion-wp-sync-metabox-global-settings.php
r3420188 r3444716 92 92 // Nonce check. 93 93 check_ajax_referer( 'notion-wp-sync-ajax', 'nonce' ); 94 Notion_WP_Sync_Helpers::check_ajax_admin_user_access(); 94 95 95 96 // Data check. -
wp-sync-for-notion/trunk/includes/admin/metaboxes/class-notion-wp-sync-metabox-import-infos.php
r3420188 r3444716 59 59 // Nonce check. 60 60 check_ajax_referer( 'notion-wp-sync-trigger-update', 'nonce' ); 61 Notion_WP_Sync_Helpers::check_ajax_admin_user_access(); 61 62 62 63 $importer_id = (int) $_POST['importer'] ?? 0; … … 101 102 // Nonce check. 102 103 check_ajax_referer( 'notion-wp-sync-trigger-update', 'nonce' ); 104 Notion_WP_Sync_Helpers::check_ajax_admin_user_access(); 103 105 104 106 $importer_id = (int) $_POST['importer'] ?? 0; … … 181 183 // Nonce check. 182 184 check_ajax_referer( 'notion-wp-sync-trigger-update', 'nonce' ); 185 Notion_WP_Sync_Helpers::check_ajax_admin_user_access(); 183 186 184 187 $importer_id = (int) $_POST['importer'] ?? 0; -
wp-sync-for-notion/trunk/includes/class-notion-wp-sync-helpers.php
r3420188 r3444716 254 254 return $value; 255 255 } 256 257 /** 258 * Check user access. 259 * 260 * @param string $error_key Error key for the response. 261 * 262 * @return void 263 */ 264 public static function check_ajax_admin_user_access( $error_key = 'feedback' ) { 265 if ( ! current_user_can( apply_filters( 'notionwpsync/manage_options_capability', 'manage_options' ) ) ) { 266 wp_send_json_error( 267 array( 268 'status' => 'error', 269 $error_key => array( __( 'Unauthorized', 'wp-sync-for-notion' ) ), 270 ), 271 403 272 ); 273 } 274 } 256 275 } -
wp-sync-for-notion/trunk/notion-wp-sync.php
r3420188 r3444716 4 4 * Plugin URI: https://wpconnect.co/notion-wordpress-integration/ 5 5 * Description: Swiftly sync Notion to your WordPress website! 6 * Version: 1.7. 06 * Version: 1.7.1 7 7 * Requires at least: 5.7 8 8 * Tested up to: 6.9 … … 23 23 } 24 24 25 define( 'NOTION_WP_SYNC_VERSION', '1.7. 0' );25 define( 'NOTION_WP_SYNC_VERSION', '1.7.1' ); 26 26 define( 'NOTION_WP_SYNC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 27 27 define( 'NOTION_WP_SYNC_PLUGIN_FILE', __FILE__ ); -
wp-sync-for-notion/trunk/readme.txt
r3420188 r3444716 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.0 8 Stable tag: 1.7. 08 Stable tag: 1.7.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
wp-sync-for-notion/trunk/vendor/autoload.php
r3420188 r3444716 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 8bffe91e5584c123fe4a1e4274cb796b::getLoader();7 return ComposerAutoloaderInit66ccb7787ccead367e188926ea1a2f98::getLoader(); -
wp-sync-for-notion/trunk/vendor/composer/InstalledVersions.php
r3420188 r3444716 321 321 322 322 $installed = array(); 323 $copiedLocalDir = false;324 323 325 324 if (self::$canGetVendors) { … … 328 327 $installed[] = self::$installedByVendor[$vendorDir]; 329 328 } elseif (is_file($vendorDir.'/composer/installed.php')) { 330 /** @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 */ 331 $required = require $vendorDir.'/composer/installed.php'; 332 self::$installedByVendor[$vendorDir] = $required; 333 $installed[] = $required; 334 if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $required; 336 $copiedLocalDir = true; 329 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 330 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 331 self::$installed = $installed[count($installed) - 1]; 337 332 } 338 333 } … … 344 339 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 345 340 if (substr(__DIR__, -8, 1) !== 'C') { 346 /** @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 */ 347 $required = require __DIR__ . '/installed.php'; 348 self::$installed = $required; 341 self::$installed = require __DIR__ . '/installed.php'; 349 342 } else { 350 343 self::$installed = array(); 351 344 } 352 345 } 353 354 if (self::$installed !== array() && !$copiedLocalDir) { 355 $installed[] = self::$installed; 356 } 346 $installed[] = self::$installed; 357 347 358 348 return $installed; -
wp-sync-for-notion/trunk/vendor/composer/autoload_real.php
r3420188 r3444716 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 8bffe91e5584c123fe4a1e4274cb796b5 class ComposerAutoloaderInit66ccb7787ccead367e188926ea1a2f98 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 8bffe91e5584c123fe4a1e4274cb796b', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit66ccb7787ccead367e188926ea1a2f98', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 8bffe91e5584c123fe4a1e4274cb796b', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit66ccb7787ccead367e188926ea1a2f98', '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 __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 8bffe91e5584c123fe4a1e4274cb796b::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit66ccb7787ccead367e188926ea1a2f98::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; -
wp-sync-for-notion/trunk/vendor/composer/autoload_static.php
r3420188 r3444716 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 8bffe91e5584c123fe4a1e4274cb796b7 class ComposerStaticInit66ccb7787ccead367e188926ea1a2f98 8 8 { 9 9 public static $classMap = array ( … … 14 14 { 15 15 return \Closure::bind(function () use ($loader) { 16 $loader->classMap = ComposerStaticInit 8bffe91e5584c123fe4a1e4274cb796b::$classMap;16 $loader->classMap = ComposerStaticInit66ccb7787ccead367e188926ea1a2f98::$classMap; 17 17 18 18 }, null, ClassLoader::class); -
wp-sync-for-notion/trunk/vendor/composer/installed.php
r3420188 r3444716 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' a0dcdd65c01b7354265aad9ff75abfcf170368a6',8 'reference' => 'b91d15f58371724e56bd91d65c27ea3da402a4c0', 9 9 'name' => '__root__', 10 10 'dev' => true, … … 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' a0dcdd65c01b7354265aad9ff75abfcf170368a6',19 'reference' => 'b91d15f58371724e56bd91d65c27ea3da402a4c0', 20 20 'dev_requirement' => false, 21 21 ),
Note: See TracChangeset
for help on using the changeset viewer.