Changeset 426027
- Timestamp:
- 08/19/2011 08:53:29 PM (15 years ago)
- File:
-
- 1 edited
-
prophoto-beta-tester/trunk/pp-beta-tester.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prophoto-beta-tester/trunk/pp-beta-tester.php
r425561 r426027 5 5 Description: Facilitates beta-testing for future releases of the ProPhoto theme 6 6 Author: Jared Henderson 7 Version: 0.1 37 Version: 0.14 8 8 Author URI: http://www.prophotoblogs.com/beta-testing-plugin/ 9 9 */ … … 29 29 add_action( 'post_pp_loaded', array( &$this, 'updateMenuTerms' ) ); 30 30 add_action( 'post_pp_loaded', array( &$this, 'fixSlideshowTerms' ) ); 31 add_action( 'post_pp_loaded', array( &$this, 'deleteSuperHugeSprites' ) ); 31 32 32 33 self::fixBadTransient(); 33 34 } 35 36 37 38 function deleteSuperHugeSprites() { 39 if ( pp::site()->svn < 550 && !ppOpt::test( 'sprites_fixed', 'true' ) ) { 40 if ( pp::site()->svn > 497 ) { 41 $hugeSprites = glob( pp::fileInfo()->imagesFolderPath . '/gallery_btn*' ); 42 foreach ( $hugeSprites as $hugeSprite ) { 43 @unlink( $hugeSprite ); 44 } 45 ppOpt::update( 'sprites_fixed', 'true' ); 46 ppSlideshowGallery::btnsSrcs(); 47 } 48 } 49 if ( pp::site()->svn > 550 ) { 50 ppOpt::delete( 'sprites_fixed' ); 51 } 52 } 53 34 54 35 55
Note: See TracChangeset
for help on using the changeset viewer.