PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/styles/components/FrmStyleComponent.php +4 -6 6.27 → trunk View file →
@@ -79,12 +79,10 @@
79 79 *
80 80 * @return void
81 81 */
82 82 public static function register_assets() {
83 - $plugin_url = FrmAppHelper::plugin_url();
84 - $version = FrmAppHelper::plugin_version();
85 -
86 - wp_register_script( self::ASSETS_SLUG, $plugin_url . '/js/formidable_styles.js', array( 'formidable_admin' ), $version, true );
83 + $version = FrmAppHelper::plugin_version();
84 + wp_register_script( self::ASSETS_SLUG, FrmAppHelper::plugin_url() . '/js/formidable_styles.js', array( 'formidable_admin' ), $version, true );
87 85 }
88 86
89 87 /**
90 88 * Get the singleton instance.
@@ -189,9 +187,9 @@
189 187 *
190 188 * @return string
191 189 */
192 190 private function get_field_name() {
193 - return ! empty( $this->field_name ) ? 'name=' . $this->field_name : '';
191 + return $this->field_name ? 'name=' . $this->field_name : '';
194 192 }
195 193
196 194 /**
197 195 * Init the full view path.
@@ -211,9 +209,9 @@
211 209 *
212 210 * @return void
213 211 */
214 212 protected function load_view() {
215 - if ( empty( $this->view_name ) ) {
213 + if ( ! $this->view_name ) {
216 214 return;
217 215 }
218 216
219 217 $this->set_view_path();