WordPress.org

Plugin Directory

Changeset 792915


Ignore:
Timestamp:
10/24/13 11:23:26 (6 months ago)
Author:
donncha
Message:

Add trailing slashes to the admin bar path, to fix the path when no trailing slash is used. Props @gonperesgmailcom http://wordpress.org/support/topic/fixed-delete-individual-pages-from-cache?replies=2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache.php

    r792265 r792915  
    393393        return false; 
    394394    if ( isset( $_GET[ 'action' ] ) && $_GET[ 'action' ] == 'delcachepage' && ( isset( $_GET[ '_wpnonce' ] ) ? wp_verify_nonce( $_REQUEST[ '_wpnonce' ], 'delete-cache' ) : false ) ) { 
    395         $path = get_supercache_dir() . preg_replace( '/:.*$/', '', $_GET[ 'path' ] ); 
     395        $path = trailingslashit( get_supercache_dir() . preg_replace( '/:.*$/', '', $_GET[ 'path' ] ) ); 
    396396        $files = get_all_supercache_filenames( $path ); 
    397397        foreach( $files as $cache_file ) 
Note: See TracChangeset for help on using the changeset viewer.