Version Description
- May 19, 2018 =
- Fix missing submit button.
Download this release
Release Info
| Developer | cdillon27 |
| Plugin | |
| Version | 2.31.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.31.2 to 2.31.3
admin/settings/class-strong-testimonials-settings.php
CHANGED
|
@@ -43,8 +43,8 @@ class Strong_Testimonials_Settings {
|
|
| 43 |
if ( ! current_user_can( 'strong_testimonials_options' ) )
|
| 44 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
| 45 |
|
| 46 |
-
$
|
| 47 |
-
$url
|
| 48 |
?>
|
| 49 |
<div class="wrap wpmtst">
|
| 50 |
|
|
@@ -57,13 +57,13 @@ class Strong_Testimonials_Settings {
|
|
| 57 |
<?php endif; ?>
|
| 58 |
|
| 59 |
<h2 class="nav-tab-wrapper">
|
| 60 |
-
<?php do_action( 'wpmtst_settings_tabs', $
|
| 61 |
</h2>
|
| 62 |
|
| 63 |
-
<form id="<?php esc_attr_e( $
|
| 64 |
<?php
|
| 65 |
-
if ( isset( self::$callbacks[ $
|
| 66 |
-
call_user_func( self::$callbacks[ $
|
| 67 |
} else {
|
| 68 |
call_user_func( self::$callbacks[ self::DEFAULT_TAB ] );
|
| 69 |
}
|
|
@@ -81,12 +81,16 @@ class Strong_Testimonials_Settings {
|
|
| 81 |
}
|
| 82 |
|
| 83 |
public static function submit_row() {
|
| 84 |
-
|
| 85 |
-
if (
|
| 86 |
submit_button( '', 'primary', 'submit-form', false );
|
| 87 |
}
|
| 88 |
}
|
| 89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
}
|
| 91 |
|
| 92 |
Strong_Testimonials_Settings::init();
|
| 43 |
if ( ! current_user_can( 'strong_testimonials_options' ) )
|
| 44 |
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
| 45 |
|
| 46 |
+
$tab = self::get_tab();
|
| 47 |
+
$url = admin_url( 'edit.php?post_type=wpm-testimonial&page=testimonial-settings' );
|
| 48 |
?>
|
| 49 |
<div class="wrap wpmtst">
|
| 50 |
|
| 57 |
<?php endif; ?>
|
| 58 |
|
| 59 |
<h2 class="nav-tab-wrapper">
|
| 60 |
+
<?php do_action( 'wpmtst_settings_tabs', $tab, $url ); ?>
|
| 61 |
</h2>
|
| 62 |
|
| 63 |
+
<form id="<?php esc_attr_e( $tab ); ?>-form" method="post" action="options.php">
|
| 64 |
<?php
|
| 65 |
+
if ( isset( self::$callbacks[ $tab ] ) && wpmtst_callback_exists( self::$callbacks[ $tab ] ) ) {
|
| 66 |
+
call_user_func( self::$callbacks[ $tab ] );
|
| 67 |
} else {
|
| 68 |
call_user_func( self::$callbacks[ self::DEFAULT_TAB ] );
|
| 69 |
}
|
| 81 |
}
|
| 82 |
|
| 83 |
public static function submit_row() {
|
| 84 |
+
$tabs = array( 'general', 'form', 'licenses', 'compat' );
|
| 85 |
+
if ( in_array( self::get_tab(), $tabs ) ) {
|
| 86 |
submit_button( '', 'primary', 'submit-form', false );
|
| 87 |
}
|
| 88 |
}
|
| 89 |
|
| 90 |
+
private static function get_tab() {
|
| 91 |
+
return ( isset( $_GET['tab'] ) && $_GET['tab'] ) ? $_GET['tab'] : self::DEFAULT_TAB;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
}
|
| 95 |
|
| 96 |
Strong_Testimonials_Settings::init();
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: cdillon27
|
|
| 3 |
Tags: testimonials, testimonial slider, testimonial form, reviews, star ratings
|
| 4 |
Requires at least: 3.7
|
| 5 |
Tested up to: 4.9.6
|
| 6 |
-
Stable tag: 2.31.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -197,6 +197,9 @@ If you prefer, start a private support ticket at [support.strongplugins.com](htt
|
|
| 197 |
|
| 198 |
== Changelog ==
|
| 199 |
|
|
|
|
|
|
|
|
|
|
| 200 |
= 2.31.2 - May 18, 2018 =
|
| 201 |
* Fix bug in average rating half-star.
|
| 202 |
|
| 3 |
Tags: testimonials, testimonial slider, testimonial form, reviews, star ratings
|
| 4 |
Requires at least: 3.7
|
| 5 |
Tested up to: 4.9.6
|
| 6 |
+
Stable tag: 2.31.3
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 197 |
|
| 198 |
== Changelog ==
|
| 199 |
|
| 200 |
+
= 2.31.3 - May 19, 2018 =
|
| 201 |
+
* Fix missing submit button.
|
| 202 |
+
|
| 203 |
= 2.31.2 - May 18, 2018 =
|
| 204 |
* Fix bug in average rating half-star.
|
| 205 |
|
strong-testimonials.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Plugin URI: https://strongplugins.com/plugins/strong-testimonials/
|
| 5 |
* Description: Collect and display your testimonials or reviews.
|
| 6 |
* Author: Chris Dillon
|
| 7 |
-
* Version: 2.31.
|
| 8 |
*
|
| 9 |
* Author URI: https://strongplugins.com/
|
| 10 |
* Text Domain: strong-testimonials
|
|
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 34 |
exit;
|
| 35 |
}
|
| 36 |
|
| 37 |
-
define( 'WPMTST_VERSION', '2.31.
|
| 38 |
define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
|
| 39 |
define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
|
| 40 |
define( 'STRONGPLUGINS_STORE_URL', 'https://strongplugins.com' );
|
| 4 |
* Plugin URI: https://strongplugins.com/plugins/strong-testimonials/
|
| 5 |
* Description: Collect and display your testimonials or reviews.
|
| 6 |
* Author: Chris Dillon
|
| 7 |
+
* Version: 2.31.3
|
| 8 |
*
|
| 9 |
* Author URI: https://strongplugins.com/
|
| 10 |
* Text Domain: strong-testimonials
|
| 34 |
exit;
|
| 35 |
}
|
| 36 |
|
| 37 |
+
define( 'WPMTST_VERSION', '2.31.3' );
|
| 38 |
define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
|
| 39 |
define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
|
| 40 |
define( 'STRONGPLUGINS_STORE_URL', 'https://strongplugins.com' );
|
