Changeset 2531472
- Timestamp:
- 05/14/2021 12:18:48 AM (5 years ago)
- Location:
- wp-roids/trunk
- Files:
-
- 3 edited
-
CHANGELOG.md (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
wp-roids.php (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-roids/trunk/CHANGELOG.md
r2530095 r2531472 1 = v4.0.1 = 2 3 - **Rollback:** Type-hinting on PHP functions as many folks not yet on PHP 7 4 1 5 = v4.0.0 = 2 6 -
wp-roids/trunk/readme.txt
r2530095 r2531472 5 5 Tags: cache,performance,pagespeed,optimize 6 6 Requires at least: 4.2 7 Tested up to: 5.7. 18 Requires PHP: 5. 4.09 Stable tag: 4.0. 07 Tested up to: 5.7.2 8 Requires PHP: 5.6.0 9 Stable tag: 4.0.1 10 10 License: GPLv3 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html … … 71 71 72 72 some security plugins disable this, so just turn this protection off for a minute during install/activation 73 - **PHP version greater than 5. 4.0**73 - **PHP version greater than 5.6.0** 74 74 75 75 It WILL throw errors on activation if not! No damage should occur though … … 288 288 289 289 == Changelog == 290 291 = v4.0.1 = 292 293 - **Rollback:** Type-hinting on PHP functions as many folks not yet on PHP 7 290 294 291 295 = v4.0.0 = -
wp-roids/trunk/wp-roids.php
r2530095 r2531472 3 3 Plugin Name: WP Roids 4 4 Description: The fastest caching plugin for WordPress! 5 Version: 4.0. 05 Version: 4.0.1 6 6 Author: Philip K. Meadows 7 7 Author URI: https://philmeadows.com … … 383 383 * @return bool 384 384 */ 385 private function alternateIsDir( string$file )385 private function alternateIsDir( $file ) 386 386 { 387 387 $output = FALSE; … … 401 401 * @return bool 402 402 */ 403 private function strposArray( string $haystack, array $needles, int$offset = 0 )403 private function strposArray( $haystack, $needles, $offset = 0 ) 404 404 { 405 405 foreach( $needles as $lookup ) … … 421 421 * @return array $schedules 422 422 */ 423 public function addCronIntervals( array$schedules )423 public function addCronIntervals( $schedules ) 424 424 { 425 425 $schedules['every_five_minutes'] = array( … … 751 751 * @return bool 752 752 */ 753 private function isViableView( WP_Post $post = NULL, bool$assets = FALSE )753 private function isViableView( $post = NULL, $assets = FALSE ) 754 754 { 755 755 $output = TRUE; … … 853 853 * @return bool: TRUE on success, FALSE on fail 854 854 */ 855 public function cacheView( int $id = NULL, bool$internalCall = FALSE )855 public function cacheView( $id = NULL, $internalCall = FALSE ) 856 856 { 857 857 if( $this->debug === TRUE ) $this->writeLog( 'cacheView() running... Received $id data (if any): ' . var_export( $id, TRUE ) ); … … 999 999 * @return void 1000 1000 */ 1001 public function cacheDecider( int$id )1001 public function cacheDecider( $id ) 1002 1002 { 1003 1003 if( $this->debug === TRUE ) $this->writeLog( 'cacheDecider() running...'); … … 1041 1041 * @return void 1042 1042 */ 1043 public function deleteCachePost( int$id )1043 public function deleteCachePost( $id ) 1044 1044 { 1045 1045 if( $this->debug === TRUE ) $this->writeLog( 'deleteCachePost() running...' ); … … 1101 1101 * @return void 1102 1102 */ 1103 public function cacheComment( int $commentId, int$commentApproved = 1 )1103 public function cacheComment( $commentId, $commentApproved = 1 ) 1104 1104 { 1105 1105 if( $this->debug === TRUE ) $this->writeLog( 'cacheComment() running...' ); … … 1118 1118 * @return string $html: Minified HTML 1119 1119 */ 1120 private function minifyHTML( string$html )1120 private function minifyHTML( $html ) 1121 1121 { 1122 1122 if( $this->debug === TRUE ) $this->writeLog( 'minifyHTML() running...' ); … … 1361 1361 * @return void 1362 1362 */ 1363 private function doAssets( array$fileTypes )1363 private function doAssets( $fileTypes ) 1364 1364 { 1365 1365 if( $this->debug === TRUE ) $this->writeLog( 'doAssets() running...' ); … … 1416 1416 * @return array $filenames: List of CSS or JS assets. Format: $handle => $src 1417 1417 */ 1418 private function getAssets( string$type )1418 private function getAssets( $type ) 1419 1419 { 1420 1420 if( $this->debug === TRUE ) $this->writeLog( 'getAssets() running...' ); … … 1528 1528 * @return bool $refresh: Whether we need to recompile our asset file for this type 1529 1529 */ 1530 private function refreshRequired( array $filenames, string$type )1530 private function refreshRequired( $filenames, $type ) 1531 1531 { 1532 1532 if( $this->debug === TRUE ) $this->writeLog( 'refreshRequired() running...' ); … … 1601 1601 * @return bool on success 1602 1602 */ 1603 private function refresh( array $filenames, string$type )1603 private function refresh( $filenames, $type ) 1604 1604 { 1605 1605 if( $this->debug === TRUE ) $this->writeLog( 'refresh() running...' ); … … 1772 1772 * @return bool on success 1773 1773 */ 1774 private function requeueAssets( array $filenames, string$type )1774 private function requeueAssets( $filenames, $type ) 1775 1775 { 1776 1776 if( $this->debug === TRUE ) $this->writeLog( 'requeueAssets() running...' ); … … 1873 1873 * @return string: the src with version query var removed 1874 1874 */ 1875 public function removeScriptVersion( string$src )1875 public function removeScriptVersion( $src ) 1876 1876 { 1877 1877 if( $this->debug === TRUE ) $this->writeLog( 'removeScriptVersion() running on src `' . $src . '`' ); … … 1887 1887 * @return void 1888 1888 */ 1889 private function recursiveRemoveDirectory( string$directory )1889 private function recursiveRemoveDirectory( $directory ) 1890 1890 { 1891 1891 if( $this->debug === TRUE ) $this->writeLog( 'recursiveRemoveDirectory() running on `' . $directory . '`' ); … … 1928 1928 * @return void 1929 1929 */ 1930 private function recursiveRemoveEmptyDirectory( string$directory )1930 private function recursiveRemoveEmptyDirectory( $directory ) 1931 1931 { 1932 1932 if( $this->debug === TRUE ) $this->writeLog( 'recursiveRemoveEmptyDirectory() running on `' . $directory . '`' ); … … 1964 1964 * Display a message 1965 1965 */ 1966 private function notice( string $message, string$type = 'error' )1966 private function notice( $message, $type = 'error' ) 1967 1967 { 1968 1968 switch( $type ) … … 2040 2040 * @return array $links: The new links array 2041 2041 */ 2042 public function pluginMetaLinks( array $links, string$file )2042 public function pluginMetaLinks( $links, $file ) 2043 2043 { 2044 2044 if ( $file == plugin_basename( dirname( __FILE__ ) . '/wp-roids.php' ) ) … … 2056 2056 * @return array $links: Our new set of links 2057 2057 */ 2058 public function pluginActionLinks( array$links )2058 public function pluginActionLinks( $links ) 2059 2059 { 2060 2060 $mylinks = array( … … 2071 2071 * @return string HTML 2072 2072 */ 2073 private function flushCacheLink( string$linkText = 'Flush Cache' )2073 private function flushCacheLink( $linkText = 'Flush Cache' ) 2074 2074 { 2075 2075 $url = admin_url( 'admin.php?page=' . $this->textDomain );
Note: See TracChangeset
for help on using the changeset viewer.