Changeset 2799781
- Timestamp:
- 10/17/2022 05:45:59 AM (3 years ago)
- Location:
- on-demand-revalidation
- Files:
-
- 14 edited
- 1 copied
-
tags/1.0.8 (copied) (copied from on-demand-revalidation/trunk)
-
tags/1.0.8/on-demand-revalidation.php (modified) (1 diff)
-
tags/1.0.8/readme.txt (modified) (2 diffs)
-
tags/1.0.8/src/Revalidation.php (modified) (2 diffs)
-
tags/1.0.8/vendor/autoload.php (modified) (1 diff)
-
tags/1.0.8/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.0.8/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.0.8/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/on-demand-revalidation.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Revalidation.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
on-demand-revalidation/tags/1.0.8/on-demand-revalidation.php
r2798656 r2799781 7 7 * GitHub Plugin URI: https://github.com/gdidentity/on-demand-revalidation 8 8 * Description: Next.js On-Demand Revalidation on the post update, revalidate specific paths on the post update. 9 * Version: 1.0. 79 * Version: 1.0.8 10 10 * Author: GD IDENTITY 11 11 * Author URI: https://gdidentity.sk -
on-demand-revalidation/tags/1.0.8/readme.txt
r2798656 r2799781 4 4 Requires at least: 4.7 5 5 Tested up to: 6.0 6 Stable tag: 1.0. 76 Stable tag: 1.0.8 7 7 Requires PHP: 5.6 8 8 License: GPL-3 … … 26 26 == Changelog == 27 27 28 = 1.0.8 = 29 - Fix: ensure correct deep paths for posts. Thank you @pressoholics! 30 28 31 = 1.0.7 = 29 - fix: address conflicts with wpgraphql plugin. Thank you @pressoholics!32 - Fix: address conflicts with wpgraphql plugin. Thank you @pressoholics! 30 33 31 34 = 1.0.6 = -
on-demand-revalidation/tags/1.0.8/src/Revalidation.php
r2763094 r2799781 41 41 } 42 42 43 $page_path = "/$post->post_name"; 44 $paths[] = substr( $page_path, -1 ) === '/' ? substr( $page_path, 0, -1 ) : $page_path; 43 $post_permalink = get_permalink( $post ); 44 $parse_permalink = parse_url( $post_permalink ); 45 $page_path = '/'; 46 47 if ( isset( $parse_permalink['path'] ) ) { 48 $page_path = $parse_permalink['path']; 49 } 50 51 $paths[] = substr( $page_path, -1 ) === '/' ? substr( $page_path, 0, -1 ) : $page_path; 45 52 46 53 $revalidate_paths = trim( Settings::get( 'revalidate_paths', '', 'on_demand_revalidation_post_update_settings' ) ); … … 100 107 101 108 add_action('wp_ajax_revalidation-post-update-test', function () { 109 102 110 if ( ! current_user_can( 'edit_posts' ) ) { 103 111 $response = new WP_Error( 'rest_forbidden', __( 'You cannot edit posts.', 'on-demand-revalidation' ), [ 'status' => 401 ] ); -
on-demand-revalidation/tags/1.0.8/vendor/autoload.php
r2798656 r2799781 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac99::getLoader();25 return ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9::getLoader(); -
on-demand-revalidation/tags/1.0.8/vendor/composer/autoload_real.php
r2798656 r2799781 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac995 class ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac99', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac99', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::getInitializer($loader)); 31 31 32 32 $loader->register(true); -
on-demand-revalidation/tags/1.0.8/vendor/composer/autoload_static.php
r2798656 r2799781 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac997 class ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 32 32 { 33 33 return \Closure::bind(function () use ($loader) { 34 $loader->prefixLengthsPsr4 = ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::$prefixLengthsPsr4;35 $loader->prefixDirsPsr4 = ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::$prefixDirsPsr4;36 $loader->classMap = ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::$classMap;34 $loader->prefixLengthsPsr4 = ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::$prefixLengthsPsr4; 35 $loader->prefixDirsPsr4 = ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::$prefixDirsPsr4; 36 $loader->classMap = ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::$classMap; 37 37 38 38 }, null, ClassLoader::class); -
on-demand-revalidation/tags/1.0.8/vendor/composer/installed.php
r2798656 r2799781 2 2 'root' => array( 3 3 'name' => 'gdidentity/on-demand-revalidation', 4 'pretty_version' => '1.0. 7',5 'version' => '1.0. 7.0',6 'reference' => ' c6d8d87df57e6f1d85aacd486e4669d48a4786f5',4 'pretty_version' => '1.0.8', 5 'version' => '1.0.8.0', 6 'reference' => '2afe1303e13b99f62aa0118a97cb86230f55b843', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'gdidentity/on-demand-revalidation' => array( 14 'pretty_version' => '1.0. 7',15 'version' => '1.0. 7.0',16 'reference' => ' c6d8d87df57e6f1d85aacd486e4669d48a4786f5',14 'pretty_version' => '1.0.8', 15 'version' => '1.0.8.0', 16 'reference' => '2afe1303e13b99f62aa0118a97cb86230f55b843', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
on-demand-revalidation/trunk/on-demand-revalidation.php
r2798656 r2799781 7 7 * GitHub Plugin URI: https://github.com/gdidentity/on-demand-revalidation 8 8 * Description: Next.js On-Demand Revalidation on the post update, revalidate specific paths on the post update. 9 * Version: 1.0. 79 * Version: 1.0.8 10 10 * Author: GD IDENTITY 11 11 * Author URI: https://gdidentity.sk -
on-demand-revalidation/trunk/readme.txt
r2798656 r2799781 4 4 Requires at least: 4.7 5 5 Tested up to: 6.0 6 Stable tag: 1.0. 76 Stable tag: 1.0.8 7 7 Requires PHP: 5.6 8 8 License: GPL-3 … … 26 26 == Changelog == 27 27 28 = 1.0.8 = 29 - Fix: ensure correct deep paths for posts. Thank you @pressoholics! 30 28 31 = 1.0.7 = 29 - fix: address conflicts with wpgraphql plugin. Thank you @pressoholics!32 - Fix: address conflicts with wpgraphql plugin. Thank you @pressoholics! 30 33 31 34 = 1.0.6 = -
on-demand-revalidation/trunk/src/Revalidation.php
r2763094 r2799781 41 41 } 42 42 43 $page_path = "/$post->post_name"; 44 $paths[] = substr( $page_path, -1 ) === '/' ? substr( $page_path, 0, -1 ) : $page_path; 43 $post_permalink = get_permalink( $post ); 44 $parse_permalink = parse_url( $post_permalink ); 45 $page_path = '/'; 46 47 if ( isset( $parse_permalink['path'] ) ) { 48 $page_path = $parse_permalink['path']; 49 } 50 51 $paths[] = substr( $page_path, -1 ) === '/' ? substr( $page_path, 0, -1 ) : $page_path; 45 52 46 53 $revalidate_paths = trim( Settings::get( 'revalidate_paths', '', 'on_demand_revalidation_post_update_settings' ) ); … … 100 107 101 108 add_action('wp_ajax_revalidation-post-update-test', function () { 109 102 110 if ( ! current_user_can( 'edit_posts' ) ) { 103 111 $response = new WP_Error( 'rest_forbidden', __( 'You cannot edit posts.', 'on-demand-revalidation' ), [ 'status' => 401 ] ); -
on-demand-revalidation/trunk/vendor/autoload.php
r2798656 r2799781 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac99::getLoader();25 return ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9::getLoader(); -
on-demand-revalidation/trunk/vendor/composer/autoload_real.php
r2798656 r2799781 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac995 class ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac99', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 9b6f3822cedbc209a5971bd8bf83ac99', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitb4fb40d09aed35018035c98e587d7aa9', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::getInitializer($loader)); 31 31 32 32 $loader->register(true); -
on-demand-revalidation/trunk/vendor/composer/autoload_static.php
r2798656 r2799781 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac997 class ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 32 32 { 33 33 return \Closure::bind(function () use ($loader) { 34 $loader->prefixLengthsPsr4 = ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::$prefixLengthsPsr4;35 $loader->prefixDirsPsr4 = ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::$prefixDirsPsr4;36 $loader->classMap = ComposerStaticInit 9b6f3822cedbc209a5971bd8bf83ac99::$classMap;34 $loader->prefixLengthsPsr4 = ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::$prefixLengthsPsr4; 35 $loader->prefixDirsPsr4 = ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::$prefixDirsPsr4; 36 $loader->classMap = ComposerStaticInitb4fb40d09aed35018035c98e587d7aa9::$classMap; 37 37 38 38 }, null, ClassLoader::class); -
on-demand-revalidation/trunk/vendor/composer/installed.php
r2798656 r2799781 2 2 'root' => array( 3 3 'name' => 'gdidentity/on-demand-revalidation', 4 'pretty_version' => '1.0. 7',5 'version' => '1.0. 7.0',6 'reference' => ' c6d8d87df57e6f1d85aacd486e4669d48a4786f5',4 'pretty_version' => '1.0.8', 5 'version' => '1.0.8.0', 6 'reference' => '2afe1303e13b99f62aa0118a97cb86230f55b843', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'gdidentity/on-demand-revalidation' => array( 14 'pretty_version' => '1.0. 7',15 'version' => '1.0. 7.0',16 'reference' => ' c6d8d87df57e6f1d85aacd486e4669d48a4786f5',14 'pretty_version' => '1.0.8', 15 'version' => '1.0.8.0', 16 'reference' => '2afe1303e13b99f62aa0118a97cb86230f55b843', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.