| @@ -1,20 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | - | |
| 6 | -// Do not deprecate if the Pro version still use these hooks. | |
| 7 | -$should_deprecate_hook = ! class_exists( 'FrmProDb' ) || version_compare( FrmProDb::$plug_version, '6.16.3' ) >= 0; | |
| 8 | 5 | ?> |
| 9 | 6 | |
| 10 | 7 | <table class="form-table"> |
| 11 | 8 | <?php |
| 12 | - if ( $should_deprecate_hook ) { | |
| 13 | - do_action_deprecated( 'frm_add_form_style_tab_options', array( $values ), '6.16.3' ); | |
| 14 | - } else { | |
| 15 | - do_action( 'frm_add_form_style_tab_options', $values ); | |
| 16 | - } | |
| 9 | + do_action_deprecated( 'frm_add_form_style_tab_options', array( $values ), '6.16.3' ); | |
| 17 | 10 | ?> |
| 18 | 11 | <tr> |
| 19 | 12 | <td colspan="2"> |
| 20 | 13 | <h3><?php esc_html_e( 'Buttons', 'formidable' ); ?></h3> |