| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: Formidable Forms |
| 4 | 4 | Description: Quickly and easily create drag-and-drop forms |
| 5 | -Version: 6.3 | |
| 5 | +Version: 4.01.02 | |
| 6 | 6 | Plugin URI: https://formidableforms.com/ |
| 7 | 7 | Author URI: https://formidableforms.com/ |
| 8 | -Author: Strategy11 Form Builder Team | |
| 8 | +Author: Strategy11 | |
| 9 | 9 | Text Domain: formidable |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | /* |
| @@ -26,11 +26,8 @@ | ||
| 26 | 26 | die( 'You are not allowed to call this page directly.' ); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | add_action( 'plugins_loaded', 'load_formidable_forms', 0 ); |
| 30 | -/** | |
| 31 | - * @return void | |
| 32 | - */ | |
| 33 | 30 | function load_formidable_forms() { |
| 34 | 31 | global $frm_vars; |
| 35 | 32 | $frm_vars = array( |
| 36 | 33 | 'load_css' => false, |
| @@ -38,9 +35,8 @@ | ||
| 38 | 35 | 'created_entries' => array(), |
| 39 | 36 | 'pro_is_authorized' => false, |
| 40 | 37 | ); |
| 41 | 38 | |
| 42 | - // For reverse compatibility. Load Pro if it's still nested. | |
| 43 | 39 | $frm_path = dirname( __FILE__ ); |
| 44 | 40 | if ( file_exists( $frm_path . '/pro/formidable-pro.php' ) ) { |
| 45 | 41 | include( $frm_path . '/pro/formidable-pro.php' ); |
| 46 | 42 | } |
| @@ -55,11 +51,8 @@ | ||
| 55 | 51 | |
| 56 | 52 | // Add the autoloader |
| 57 | 53 | spl_autoload_register( 'frm_forms_autoloader' ); |
| 58 | 54 | |
| 59 | -/** | |
| 60 | - * @return void | |
| 61 | - */ | |
| 62 | 55 | function frm_forms_autoloader( $class_name ) { |
| 63 | 56 | // Only load Frm classes here |
| 64 | 57 | if ( ! preg_match( '/^Frm.+$/', $class_name ) || preg_match( '/^FrmPro.+$/', $class_name ) ) { |
| 65 | 58 | return; |
| @@ -71,10 +64,8 @@ | ||
| 71 | 64 | /** |
| 72 | 65 | * Autoload the Formidable and Pro classes |
| 73 | 66 | * |
| 74 | 67 | * @since 3.0 |
| 75 | - * | |
| 76 | - * @return void | |
| 77 | 68 | */ |
| 78 | 69 | function frm_class_autoloader( $class_name, $filepath ) { |
| 79 | 70 | $deprecated = array( 'FrmEntryFormat', 'FrmPointers', 'FrmEDD_SL_Plugin_Updater' ); |
| 80 | 71 | $is_deprecated = in_array( $class_name, $deprecated ) || preg_match( '/^.+Deprecate/', $class_name ); |
| @@ -100,16 +91,6 @@ | ||
| 100 | 91 | $filepath .= $class_name . '.php'; |
| 101 | 92 | |
| 102 | 93 | if ( file_exists( $filepath ) ) { |
| 103 | 94 | require( $filepath ); |
| 104 | - } | |
| 105 | -} | |
| 106 | - | |
| 107 | -add_action( 'activate_' . FrmAppHelper::plugin_folder() . '/formidable.php', 'frm_maybe_install' ); | |
| 108 | -/** | |
| 109 | - * @return void | |
| 110 | - */ | |
| 111 | -function frm_maybe_install() { | |
| 112 | - if ( get_transient( FrmWelcomeController::$option_name ) !== 'no' ) { | |
| 113 | - set_transient( FrmWelcomeController::$option_name, FrmWelcomeController::$menu_slug, 60 ); | |
| 114 | 95 | } |
| 115 | 96 | } |