Changeset 3098112
- Timestamp:
- 06/05/2024 03:56:59 PM (7 weeks ago)
- Location:
- post-types-order
- Files:
-
- 30 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
post-types-order/assets/blueprints/blueprint.json
r3065414 r3098112 26 26 "username": "admin", 27 27 "password": "password" 28 29 30 31 32 28 33 } 29 34 ] -
post-types-order/trunk/include/class.cpto.php
r3065406 r3098112 327 327 wp_die('Invalid post type'); 328 328 } 329 } 330 331 //add compatibility filters and code 332 include_once(CPTPATH . '/compatibility/LiteSpeed_Cache.php'); 333 329 } 334 330 } 335 331 … … 401 397 do_action('PTO/order_update_complete'); 402 398 403 wp_cache_flush();399 (); 404 400 } 405 401 … … 485 481 do_action('PTO/order_update_complete'); 486 482 487 wp_cache_flush();483 (); 488 484 } 489 485 -
post-types-order/trunk/include/class.functions.php
r2898244 r3098112 240 240 } 241 241 242 242 243 244 /** 245 * Clear any cache plugins 246 * 247 */ 248 static public function site_cache_clear() 249 { 250 wp_cache_flush(); 251 252 $cleared_cache = FALSE; 253 254 if ( function_exists('wp_cache_clear_cache')) 255 { 256 wp_cache_clear_cache(); 257 $cleared_cache = TRUE; 258 } 259 260 if ( function_exists('w3tc_flush_all')) 261 { 262 w3tc_flush_all(); 263 $cleared_cache = TRUE; 264 } 265 266 if ( function_exists('opcache_reset') && ! ini_get( 'opcache.restrict_api' ) ) 267 { 268 @opcache_reset(); 269 $cleared_cache = TRUE; 270 } 271 272 if ( function_exists( 'rocket_clean_domain' ) ) 273 { 274 rocket_clean_domain(); 275 $cleared_cache = TRUE; 276 } 277 278 if ( function_exists('wp_cache_clear_cache')) 279 { 280 wp_cache_clear_cache(); 281 $cleared_cache = TRUE; 282 } 283 284 global $wp_fastest_cache; 285 if ( method_exists( 'WpFastestCache', 'deleteCache' ) && !empty( $wp_fastest_cache ) ) 286 { 287 $wp_fastest_cache->deleteCache(); 288 $cleared_cache = TRUE; 289 } 290 291 //If your host has installed APC cache this plugin allows you to clear the cache from within WordPress 292 if ( function_exists('apc_clear_cache')) 293 { 294 apc_clear_cache(); 295 $cleared_cache = TRUE; 296 } 297 298 if ( function_exists('fvm_purge_all')) 299 { 300 fvm_purge_all(); 301 $cleared_cache = TRUE; 302 } 303 304 if ( class_exists( 'autoptimizeCache' ) ) 305 { 306 autoptimizeCache::clearall(); 307 $cleared_cache = TRUE; 308 } 309 310 //WPEngine 311 if ( class_exists( 'WpeCommon' ) ) 312 { 313 if ( method_exists( 'WpeCommon', 'purge_memcached' ) ) 314 WpeCommon::purge_memcached(); 315 if ( method_exists( 'WpeCommon', 'clear_maxcdn_cache' ) ) 316 WpeCommon::clear_maxcdn_cache(); 317 if ( method_exists( 'WpeCommon', 'purge_varnish_cache' ) ) 318 WpeCommon::purge_varnish_cache(); 319 320 $cleared_cache = TRUE; 321 } 322 323 if (class_exists('Cache_Enabler_Disk') && method_exists('Cache_Enabler_Disk', 'clear_cache')) 324 { 325 Cache_Enabler_Disk::clear_cache(); 326 $cleared_cache = TRUE; 327 } 328 329 //Perfmatters 330 if ( class_exists('Perfmatters\CSS') && method_exists('Perfmatters\CSS', 'clear_used_css') ) 331 { 332 Perfmatters\CSS::clear_used_css(); 333 $cleared_cache = TRUE; 334 } 335 336 if ( defined( 'BREEZE_VERSION' ) ) 337 { 338 do_action( 'breeze_clear_all_cache' ); 339 $cleared_cache = TRUE; 340 } 341 342 if ( function_exists('sg_cachepress_purge_everything')) 343 { 344 sg_cachepress_purge_everything(); 345 $cleared_cache = TRUE; 346 } 347 348 if ( defined ( 'FLYING_PRESS_VERSION' ) ) 349 { 350 do_action('flying_press_purge_everything:before'); 351 352 @unlink(FLYING_PRESS_CACHE_DIR . '/preload.txt'); 353 354 // Delete all files and subdirectories 355 $this->rrmdir( FLYING_PRESS_CACHE_DIR ); 356 357 @mkdir(FLYING_PRESS_CACHE_DIR, 0755, true); 358 359 do_action('flying_press_purge_everything:after'); 360 361 $cleared_cache = TRUE; 362 } 363 364 if (class_exists('\LiteSpeed\Purge')) 365 { 366 \LiteSpeed\Purge::purge_all(); 367 $cleared_cache = TRUE; 368 } 369 370 return $cleared_cache; 371 372 } 243 373 244 374 } -
post-types-order/trunk/include/class.options.php
r3065406 r3098112 187 187 <p class="pt-item"><label> 188 188 <select name="allow_reorder_default_interfaces[<?php echo esc_attr($post_type_name) ?>]"> 189 189 190 <option value="no" <?php if(isset($options['allow_reorder_default_interfaces'][$post_type_name]) && $options['allow_reorder_default_interfaces'][$post_type_name] == 'no') {echo ' selected="selected"';} ?>><?php esc_html_e( "No", 'post-types-order' ) ?></option> 190 <option value="yes" <?php if(isset($options['allow_reorder_default_interfaces'][$post_type_name]) && $options['allow_reorder_default_interfaces'][$post_type_name] == 'yes') {echo ' selected="selected"';} ?>><?php esc_html_e( "Yes", 'post-types-order' ) ?></option>191 191 </select> <?php echo esc_html ( $post_type_data->labels->singular_name ); ?> 192 192 </label><br /> </p> -
post-types-order/trunk/post-types-order.php
r3065406 r3098112 6 6 * Author: Nsp Code 7 7 * Author URI: http://www.nsp-code.com 8 * Version: 2.2. 18 * Version: 2.2. 9 9 * Text Domain: post-types-order 10 10 * Domain Path: /languages/ -
post-types-order/trunk/readme.txt
r3065406 r3098112 4 4 Tags: post order, posts order, post sort, posts sort, post types order 5 5 Requires at least: 2.8 6 Tested up to: 6.5 7 Stable tag: 2.2. 16 Tested up to: 6.5 7 Stable tag: 2.2. 8 8 9 9 Sort Posts and custom Post Type Objects (custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or default WordPress dashboard. … … 95 95 == Change Log == 96 96 97 = 2.2.1 = 98 97 = 2.2.3 = 98 - When order update, attempt to clear the site / server caches. 99 - Set Yes as default for the option to Enable sortable drag-and-drop functionality within the default WordPress post type archive. 100 - WordPress 6.5.3 compatibility tag. 101 102 = 2.2.1 = 103 - Options interface layout updates. 104 - Code cleanup 105 - Remove unused svg icon file. 106 99 107 = 2.2 = 100 108 - Formidable style fix when Autosort is active.
Note: See TracChangeset
for help on using the changeset viewer.