diff --git a/fs-testimonial.php b/fs-testimonial.php index a73b67d..ae0316c 100644 --- a/fs-testimonial.php +++ b/fs-testimonial.php @@ -38,12 +38,12 @@ static function get_testimonials( $plugin ) { include 'inc/freemius/Freemius.php'; } - $settings = get_option( 'fstm_credentials', [] ); + $settings = get_option( 'fstm_credentials', array() ); if ( ! $settings ) { - return (object) [ - 'error' => [ 'message' => 'API credentials not set.', ] - ]; + return (object) array( + 'error' => array( 'message' => 'API credentials not set.', ) + ); } // Init SDK. @@ -64,11 +64,11 @@ static function get_testimonials( $plugin ) { * FS_Testimonials constructor. */ public function __construct() { - add_shortcode( 'freemius-testimonials', [ $this, 'testimonials' ] ); + add_shortcode( 'freemius-testimonials', array( $this, 'testimonials' ) ); - add_action( 'admin_init', [ $this, 'admin' ] ); + add_action( 'admin_init', array( $this, 'admin' ) ); - add_action( 'wp_enqueue_scripts', [ $this, 'scripts' ] ); + add_action( 'wp_enqueue_scripts', array( $this, 'scripts' ) ); } public function admin() { @@ -78,7 +78,7 @@ public function admin() { add_settings_section( 'fstm_general_section', '', - [ $this, 'admin_section_render' ], + array( $this, 'admin_section_render' ), 'general' ); @@ -89,7 +89,7 @@ public function admin_section_render() { } public function scripts() { - wp_enqueue_style( 'fmt-script', plugin_dir_url( __FILE__ ) . '/assets/front.css', '' ); + wp_enqueue_style( 'fmt-script', plugin_dir_url( __FILE__ ) . '/assets/front.css', '', '1.0.0' ); } /** @@ -97,9 +97,9 @@ public function scripts() { * @param array $params * @return string */ - function testimonials( $params = [] ) { + function testimonials( $params = array() ) { - $params = $params ? $params : []; + $params = $params ? $params : array(); $compress = ''; diff --git a/inc/tpl.admin-section.php b/inc/tpl.admin-section.php index 45c2211..0a2ba93 100644 --- a/inc/tpl.admin-section.php +++ b/inc/tpl.admin-section.php @@ -3,13 +3,13 @@ * Admin settings section */ -$settings = get_option( 'fstm_credentials', [] ); +$settings = get_option( 'fstm_credentials', array() ); -$settings = wp_parse_args( $settings, [ -'dev_id' => '', -'dev_public' => '', -'dev_secret' => '', -] ); +$settings = wp_parse_args( $settings, array( + 'dev_id' => '', + 'dev_public' => '', + 'dev_secret' => '', +) ); ?>
diff --git a/readme.txt b/readme.txt index 513b08a..8492ba7 100755 --- a/readme.txt +++ b/readme.txt @@ -53,5 +53,5 @@ You can use this shortcode after replacing 999 with your plugin ID `[freemius-te == Changelog == = 1.0.0 = -* 2017-10-05 +* 2017-10-03 * Initial release. It's alive!