Plugin Directory

Changeset 2531472


Ignore:
Timestamp:
05/14/2021 12:18:48 AM (5 years ago)
Author:
PhilMeadows
Message:

type-hinting removed

Location:
wp-roids/trunk
Files:
3 edited

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
    15= v4.0.0 =
    26
  • wp-roids/trunk/readme.txt

    r2530095 r2531472  
    55Tags: cache,performance,pagespeed,optimize
    66Requires at least: 4.2
    7 Tested up to: 5.7.1
    8 Requires PHP: 5.4.0
    9 Stable tag: 4.0.0
     7Tested up to: 5.7.2
     8Requires PHP: 5.6.0
     9Stable tag: 4.0.1
    1010License: GPLv3 or later
    1111License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html
     
    7171
    7272    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**
    7474
    7575    It WILL throw errors on activation if not! No damage should occur though   
     
    288288
    289289== Changelog ==
     290
     291= v4.0.1 =
     292
     293- **Rollback:** Type-hinting on PHP functions as many folks not yet on PHP 7
    290294
    291295= v4.0.0 =
  • wp-roids/trunk/wp-roids.php

    r2530095 r2531472  
    33Plugin Name: WP Roids
    44Description: The fastest caching plugin for WordPress!
    5 Version: 4.0.0
     5Version: 4.0.1
    66Author: Philip K. Meadows
    77Author URI: https://philmeadows.com
     
    383383        * @return bool
    384384        */
    385         private function alternateIsDir( string $file )
     385        private function alternateIsDir( $file )
    386386        {
    387387            $output = FALSE;
     
    401401        * @return bool
    402402        */
    403         private function strposArray( string $haystack, array $needles, int $offset = 0 )
     403        private function strposArray( $haystack, $needles, $offset = 0 )
    404404        {
    405405            foreach( $needles as $lookup )
     
    421421        * @return array $schedules
    422422        */
    423         public function addCronIntervals( array $schedules )
     423        public function addCronIntervals( $schedules )
    424424        {
    425425            $schedules['every_five_minutes'] = array(
     
    751751        * @return bool
    752752        */
    753         private function isViableView( WP_Post $post = NULL, bool $assets = FALSE )
     753        private function isViableView( $post = NULL, $assets = FALSE )
    754754        {
    755755            $output = TRUE;
     
    853853        * @return bool: TRUE on success, FALSE on fail
    854854        */
    855         public function cacheView( int $id = NULL, bool $internalCall = FALSE )
     855        public function cacheView( $id = NULL, $internalCall = FALSE )
    856856        {
    857857            if( $this->debug === TRUE ) $this->writeLog( 'cacheView() running... Received $id data (if any): ' . var_export( $id, TRUE ) );
     
    999999        * @return void
    10001000        */
    1001         public function cacheDecider( int $id )
     1001        public function cacheDecider( $id )
    10021002        {
    10031003            if( $this->debug === TRUE ) $this->writeLog( 'cacheDecider() running...');
     
    10411041        * @return void
    10421042        */
    1043         public function deleteCachePost( int $id )
     1043        public function deleteCachePost( $id )
    10441044        {
    10451045            if( $this->debug === TRUE ) $this->writeLog( 'deleteCachePost() running...' );
     
    11011101        * @return void
    11021102        */
    1103         public function cacheComment( int $commentId, int $commentApproved = 1 )
     1103        public function cacheComment( $commentId, $commentApproved = 1 )
    11041104        {
    11051105            if( $this->debug === TRUE ) $this->writeLog( 'cacheComment() running...' );
     
    11181118        * @return string $html: Minified HTML
    11191119        */
    1120         private function minifyHTML( string $html )
     1120        private function minifyHTML( $html )
    11211121        {
    11221122            if( $this->debug === TRUE ) $this->writeLog( 'minifyHTML() running...' );
     
    13611361        * @return void
    13621362        */
    1363         private function doAssets( array $fileTypes )
     1363        private function doAssets( $fileTypes )
    13641364        {
    13651365            if( $this->debug === TRUE ) $this->writeLog( 'doAssets() running...' );
     
    14161416        * @return array $filenames: List of CSS or JS assets. Format: $handle => $src
    14171417        */
    1418         private function getAssets( string $type )
     1418        private function getAssets( $type )
    14191419        {
    14201420            if( $this->debug === TRUE ) $this->writeLog( 'getAssets() running...' );
     
    15281528        * @return bool $refresh: Whether we need to recompile our asset file for this type
    15291529        */
    1530         private function refreshRequired( array $filenames, string $type )
     1530        private function refreshRequired( $filenames, $type )
    15311531        {
    15321532            if( $this->debug === TRUE ) $this->writeLog( 'refreshRequired() running...' );
     
    16011601        * @return bool on success
    16021602        */
    1603         private function refresh( array $filenames, string $type )
     1603        private function refresh( $filenames, $type )
    16041604        {
    16051605            if( $this->debug === TRUE ) $this->writeLog( 'refresh() running...' );
     
    17721772        * @return bool on success
    17731773        */
    1774         private function requeueAssets( array $filenames, string $type )
     1774        private function requeueAssets( $filenames, $type )
    17751775        {
    17761776            if( $this->debug === TRUE ) $this->writeLog( 'requeueAssets() running...' );
     
    18731873        * @return string: the src with version query var removed
    18741874        */
    1875         public function removeScriptVersion( string $src )
     1875        public function removeScriptVersion( $src )
    18761876        {
    18771877            if( $this->debug === TRUE ) $this->writeLog( 'removeScriptVersion() running on src `' . $src . '`' );
     
    18871887        * @return void
    18881888        */
    1889         private function recursiveRemoveDirectory( string $directory )
     1889        private function recursiveRemoveDirectory( $directory )
    18901890        {
    18911891            if( $this->debug === TRUE ) $this->writeLog( 'recursiveRemoveDirectory() running on `' . $directory . '`' );
     
    19281928        * @return void
    19291929        */
    1930         private function recursiveRemoveEmptyDirectory( string $directory )
     1930        private function recursiveRemoveEmptyDirectory( $directory )
    19311931        {
    19321932            if( $this->debug === TRUE ) $this->writeLog( 'recursiveRemoveEmptyDirectory() running on `' . $directory . '`' );
     
    19641964        * Display a message
    19651965        */
    1966         private function notice( string $message, string $type = 'error' )
     1966        private function notice( $message, $type = 'error' )
    19671967        {
    19681968            switch( $type )
     
    20402040        * @return array $links: The new links array
    20412041        */
    2042         public function pluginMetaLinks( array $links, string $file )
     2042        public function pluginMetaLinks( $links, $file )
    20432043        {
    20442044            if ( $file == plugin_basename( dirname( __FILE__ ) . '/wp-roids.php' ) )
     
    20562056        * @return array $links: Our new set of links
    20572057        */
    2058         public function pluginActionLinks( array $links )
     2058        public function pluginActionLinks( $links )
    20592059        {
    20602060            $mylinks = array(
     
    20712071        * @return string HTML
    20722072        */
    2073         private function flushCacheLink( string $linkText = 'Flush Cache' )
     2073        private function flushCacheLink( $linkText = 'Flush Cache' )
    20742074        {
    20752075            $url = admin_url( 'admin.php?page=' . $this->textDomain );
Note: See TracChangeset for help on using the changeset viewer.