Skip to content

Commit

Permalink
Hotfix: Fix PHP 5.2 error - unexpected T_STRING in /inc/3rd-party/hos…
Browse files Browse the repository at this point in the history
…ting/godaddy.php on line 117
  • Loading branch information
GeekPress committed Mar 29, 2017
1 parent 57fab4b commit e24fa9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions inc/3rd-party/3rd-party.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );

require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/wpengine.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/godaddy.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/flywheel.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/wp-serveur.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/varnish.php' );

if ( version_compare( phpversion(), '5.3.0', '>=' ) ) {
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/savvii.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/godaddy.php' );
}

require( WP_ROCKET_3RD_PARTY_PATH . 'slider/revslider.php' );
Expand Down Expand Up @@ -47,4 +47,4 @@
require( WP_ROCKET_3RD_PARTY_PATH . 'wp-retina-2x.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'plugins/sf-move-login.php' );

require( WP_ROCKET_3RD_PARTY_PATH . 'themes/divi.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'themes/divi.php' );
9 changes: 6 additions & 3 deletions wp-rocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: WP Rocket
Plugin URI: https://wp-rocket.me
Description: The best WordPress performance plugin.
Version: 2.9.9
Version: 2.9.10
Code Name: Iridonia
Author: WP Media
Contributors: Jonathan Buttigieg, Julio Potier, Remy Perona
Expand All @@ -19,7 +19,7 @@
defined( 'ABSPATH' ) or die( 'Cheatin’ uh?' );

// Rocket defines
define( 'WP_ROCKET_VERSION' , '2.9.9' );
define( 'WP_ROCKET_VERSION' , '2.9.10' );
define( 'WP_ROCKET_PRIVATE_KEY' , false );
define( 'WP_ROCKET_SLUG' , 'wp_rocket_settings' );
define( 'WP_ROCKET_WEB_MAIN' , false );
Expand Down Expand Up @@ -268,7 +268,10 @@ function rocket_activation()
require( WP_ROCKET_FUNCTIONS_PATH . 'plugins.php' );
require( WP_ROCKET_FUNCTIONS_PATH . 'i18n.php' );
require( WP_ROCKET_FUNCTIONS_PATH . 'htaccess.php' );
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/godaddy.php' );

if ( version_compare( phpversion(), '5.3.0', '>=' ) ) {
require( WP_ROCKET_3RD_PARTY_PATH . 'hosting/godaddy.php' );
}

if ( rocket_valid_key() ) {
// Add All WP Rocket rules of the .htaccess file
Expand Down

0 comments on commit e24fa9c

Please sign in to comment.