Completed
Push — master ( 6c11f2...a5ca73 )
by Stephanie
03:23
created

FrmAppController::page_route()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
class FrmAppController {
4
5
	public static function menu() {
6
        FrmAppHelper::maybe_add_permissions();
7
        if ( ! current_user_can( 'frm_view_forms' ) ) {
8
            return;
9
        }
10
11
		$menu_name = FrmAppHelper::get_menu_name();
12
		add_menu_page( 'Formidable', $menu_name, 'frm_view_forms', 'formidable', 'FrmFormsController::route', '', self::get_menu_position() );
13
    }
14
15
	private static function get_menu_position() {
16
		return apply_filters( 'frm_menu_position', '29.3' );
17
	}
18
19
	/**
20
	 * @since 3.0
21
	 */
22
	public static function add_admin_class( $classes ) {
23
		if ( self::is_white_page() ) {
24
			$classes .= ' frm-white-body ';
25
		}
26
		return $classes;
27
	}
28
29
	/**
30
	 * @since 3.0
31
	 */
32
	private static function is_white_page() {
33
		$is_white_page = ( FrmAppHelper::is_admin_page( 'formidable' ) || FrmAppHelper::is_admin_page( 'formidable-entries' ) || FrmAppHelper::is_admin_page( 'formidable-pro-upgrade' ) || FrmAppHelper::is_admin_page( 'formidable-addons' ) );
34
		if ( ! $is_white_page ) {
35
			$screen = get_current_screen();
36
			$is_white_page = ( $screen && $screen->id === 'edit-frm_display' );
37
		}
38
39
		return $is_white_page;
40
	}
41
42
    public static function load_wp_admin_style() {
43
        FrmAppHelper::load_font_style();
44
    }
45
46
	public static function get_form_nav( $form, $show_nav = false, $title = 'show' ) {
47
		$show_nav = FrmAppHelper::get_param( 'show_nav', $show_nav, 'get', 'absint' );
48
        if ( empty( $show_nav ) || ! $form ) {
49
            return;
50
        }
51
52
		FrmForm::maybe_get_form( $form );
53
		if ( ! is_object( $form ) ) {
54
			return;
55
		}
56
57
		$id = $form->id;
58
		$current_page = self::get_current_page();
59
		$nav_items = self::get_form_nav_items( $form );
60
61
		include( FrmAppHelper::plugin_path() . '/classes/views/shared/form-nav.php' );
62
	}
63
64
	private static function get_current_page() {
65
		global $pagenow;
66
67
		$page = FrmAppHelper::simple_get( 'page', 'sanitize_title' );
68
		$post_type = FrmAppHelper::simple_get( 'post_type', 'sanitize_title', 'None' );
69
		$current_page = isset( $_GET['page'] ) ? $page : $post_type;
70
		if ( $pagenow == 'post.php' || $pagenow == 'post-new.php' ) {
71
			$current_page = 'frm_display';
72
		}
73
74
		return $current_page;
75
	}
76
77
	private static function get_form_nav_items( $form ) {
78
		$id = $form->parent_form_id ? $form->parent_form_id : $form->id;
79
80
		$nav_items = array(
81
			array(
82
				'link'    => admin_url( 'admin.php?page=formidable&frm_action=edit&id=' . absint( $id ) ),
83
				'label'   => __( 'Build', 'formidable' ),
84
				'current' => array( 'edit', 'new', 'duplicate' ),
85
				'page'    => 'formidable',
86
				'permission' => 'frm_edit_forms',
87
			),
88
			array(
89
				'link'    => admin_url( 'admin.php?page=formidable&frm_action=settings&id=' . absint( $id ) ),
90
				'label'   => __( 'Settings', 'formidable' ),
91
				'current' => array( 'settings' ),
92
				'page'    => 'formidable',
93
				'permission' => 'frm_edit_forms',
94
			),
95
			array(
96
				'link'    => admin_url( 'admin.php?page=formidable-entries&frm_action=list&form=' . absint( $id ) ),
97
				'label'   => __( 'Entries', 'formidable' ),
98
				'current' => array(),
99
				'page'    => 'formidable-entries',
100
				'permission' => 'frm_view_entries',
101
			),
102
		);
103
104
		$nav_args = array(
105
			'form_id' => $id,
106
			'form'    => $form,
107
		);
108
		return apply_filters( 'frm_form_nav_list', $nav_items, $nav_args );
109
	}
110
111
    // Adds a settings link to the plugins page
112
    public static function settings_link( $links ) {
113
		$settings = '<a href="' . esc_url( admin_url( 'admin.php?page=formidable' ) ) . '">' . __( 'Build a Form', 'formidable' ) . '</a>';
114
        array_unshift( $links, $settings );
115
116
        return $links;
117
    }
118
119
    public static function pro_get_started_headline() {
120
		self::maybe_show_upgrade_bar();
121
		self::review_request();
122
123
        // Don't display this error as we're upgrading the thing, or if the user shouldn't see the message
124
        if ( 'upgrade-plugin' == FrmAppHelper::simple_get( 'action', 'sanitize_title' ) || ! current_user_can( 'update_plugins' ) ) {
125
            return;
126
        }
127
128
		$pro_installed = is_dir( WP_PLUGIN_DIR . '/formidable-pro' );
129
130
		if ( get_site_option( 'frmpro-authorized' ) && ! is_callable( 'load_formidable_pro' ) ) {
131
			FrmAppHelper::load_admin_wide_js();
132
133
			// user is authorized, but running free version
134
135
			if ( $pro_installed ) {
136
				// if pro version is installed, include link to activate it
137
				$inst_install_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=formidable-pro/formidable-pro.php' ), 'activate-plugin_formidable-pro/formidable-pro.php' );
138
			} else {
139
				$inst_install_url = 'https://formidableforms.com/knowledgebase/install-formidable-forms/?utm_source=WordPress&utm_medium=get-started&utm_campaign=liteplugin';
140
			}
141
        ?>
142
<div class="error" class="frm_previous_install">
143
		<?php
144
		echo apply_filters( // WPCS: XSS ok.
145
			'frm_pro_update_msg',
146
			sprintf(
147
				esc_html__( 'This site has been previously authorized to run Formidable Forms. %1$sInstall Formidable Pro%2$s or %3$sdeauthorize%4$s this site to continue running the free version and remove this message.', 'formidable' ),
148
				'<br/><a href="' . esc_url( $inst_install_url ) . '" target="_blank">',
149
				'</a>',
150
				'<a href="#" class="frm_deauthorize_link">',
151
				'</a>'
152
			),
153
			esc_url( $inst_install_url )
154
		);
155
		?>
156
</div>
157
<?php
158
        }
159
    }
160
161
	private static function maybe_show_upgrade_bar() {
162
		if ( ! self::is_formidable_page() || FrmAppHelper::pro_is_installed() ) {
163
			return;
164
		}
165
166
		$affiliate = FrmAppHelper::get_affiliate();
167
		if ( ! empty( $affiliate ) ) {
168
			$tip = FrmTipsHelper::get_banner_tip();
169
			$link = FrmAppHelper::admin_upgrade_link( 'banner' );
170
?>
171
<div class="update-nag frm-update-to-pro">
172
	<?php echo FrmAppHelper::kses( $tip['tip'] ); // WPCS: XSS ok. ?>
173
	<span><?php echo FrmAppHelper::kses( $tip['call'] ); // WPCS: XSS ok. ?></span>
174
	<a href="<?php echo esc_url( FrmAppHelper::make_affiliate_url( $link ) ); ?>" class="button">Upgrade to Pro</a>
175
</div>
176
<?php
177
		}
178
	}
179
180
	/**
181
	 * Check if this is a Formidable page: forms, entries, settings, styles
182
	 *
183
	 * @since 3.04.03
184
	 */
185
	private static function is_formidable_page() {
186
		$page = FrmAppHelper::simple_get( 'page', 'sanitize_title' );
187
		return ( strpos( $page, 'formidable' ) === 0 );
188
	}
189
190
	/**
191
	 * Add admin notices as needed for reviews
192
	 *
193
	 * @since 3.04.03
194
	 */
195
	private static function review_request() {
196
197
		// Only show the review request to high-level users on Formidable pages
198
		if ( ! current_user_can( 'frm_change_settings' ) || ! self::is_formidable_page() ) {
199
			return;
200
		}
201
202
		// Verify that we can do a check for reviews
203
		$review = self::get_review_status();
204
205
		// Check if it has been dismissed or if we can ask later
206
		$dismissed = $review['dismissed'];
207
		if ( $dismissed === 'later' && $review['asked'] < 3 ) {
208
			$dismissed = false;
209
		}
210
211
		$week_ago = ( $review['time'] + WEEK_IN_SECONDS ) <= time();
212
		$load     = empty( $dismissed ) && $week_ago;
213
214
		if ( $load ) {
215
			self::review( $review );
216
		}
217
	}
218
219
	/**
220
	 * When was the review request last dismissed?
221
	 *
222
	 * @since 3.04.03
223
	 * @return array
224
	 */
225
	private static function get_review_status() {
226
		$user_id = get_current_user_id();
227
		$review  = get_user_meta( $user_id, 'frm_reviewed', true );
228
		$default = array(
229
			'time'      => time(),
230
			'dismissed' => false,
231
			'asked'     => 0,
232
		);
233
234
		if ( empty( $review ) ) {
235
			// Set the review request to show in a week
236
			update_user_meta( $user_id, 'frm_reviewed', $default );
237
		}
238
239
		$review = array_merge( $default, (array) $review );
240
		$review['asked'] = (int) $review['asked'];
241
		return $review;
242
	}
243
244
	/**
245
	 * Maybe show review request
246
	 *
247
	 * @since 3.04.03
248
	 * @param int $asked
0 ignored issues
show
Bug introduced by
There is no parameter named $asked. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
249
	 */
250
	private static function review( $review ) {
251
252
		// show the review request 3 times, depending on the number of entries
253
		$show_intervals = array( 50, 200, 500 );
254
		$asked = $review['asked'];
255
256
		if ( ! isset( $show_intervals[ $asked ] ) ) {
257
			return;
258
		}
259
260
		$entries = FrmEntry::getRecordCount();
261
		$count   = $show_intervals[ $asked ];
262
		$user    = wp_get_current_user();
263
264
		// Only show review request if the site has collected enough entries
265
		if ( $entries < $count ) {
266
			// check the entry count again in a week
267
			$review['time'] = time();
268
			update_user_meta( $user->ID, 'frm_reviewed', $review );
269
			return;
270
		}
271
272
		$name = $user->first_name;
273
		if ( ! empty( $name ) ) {
274
			$name = ' ' . $name;
275
		}
276
277
		// We have a candidate! Output a review message.
278
		include( FrmAppHelper::plugin_path() . '/classes/views/shared/review.php' );
279
	}
280
281
	/**
282
	 * Save the request to hide the review
283
	 *
284
	 * @since 3.04.03
285
	 */
286
	public static function dismiss_review() {
287
		FrmAppHelper::permission_check( 'frm_change_settings' );
288
		check_ajax_referer( 'frm_ajax', 'nonce' );
289
290
		$user_id   = get_current_user_id();
291
		$review    = get_user_meta( $user_id, 'frm_reviewed', true );
292
		if ( empty( $review ) ) {
293
			$review = array();
294
		}
295
296
		$dismissed = FrmAppHelper::get_post_param( 'link', 'no', 'sanitize_text_field' );
297
		$review['time']      = time();
298
		$review['dismissed'] = $dismissed === 'done' ? true : 'later';
299
		$review['asked']     = isset( $review['asked'] ) ? $review['asked'] + 1 : 1;
300
301
		update_user_meta( $user_id, 'frm_reviewed', $review );
302
		wp_die();
303
	}
304
305
	/**
306
	 * @since 3.04.02
307
	 */
308
	public static function include_upgrade_overlay() {
309
		$is_pro = FrmAppHelper::pro_is_installed();
310
		wp_enqueue_script( 'jquery-ui-dialog' );
311
		wp_enqueue_style( 'jquery-ui-dialog' );
312
		include( FrmAppHelper::plugin_path() . '/classes/views/shared/upgrade_overlay.php' );
313
	}
314
315
	/**
316
	 * @since 3.04.02
317
	 */
318
	public static function remove_upsells() {
319
		remove_action( 'frm_before_settings', 'FrmSettingsController::license_box' );
320
		remove_action( 'frm_after_settings', 'FrmSettingsController::settings_cta' );
321
	}
322
323
	/**
324
	 * If there are CURL problems on this server, wp_remote_post won't work for installing
325
	 * Use a javascript fallback instead.
326
	 *
327
	 * @since 2.0.3
328
	 */
329
	public static function install_js_fallback() {
330
		FrmAppHelper::load_admin_wide_js();
331
		echo '<div id="hidden frm_install_message"></div><script type="text/javascript">jQuery(document).ready(function(){frm_install_now();});</script>';
332
	}
333
334
	/**
335
	 * Check if the database is outdated
336
	 *
337
	 * @since 2.0.1
338
	 * @return boolean
339
	 */
340
	public static function needs_update() {
341
		$needs_upgrade = self::compare_for_update(
342
			array(
343
				'option'             => 'frm_db_version',
344
				'new_db_version'     => FrmAppHelper::$db_version,
345
				'new_plugin_version' => FrmAppHelper::plugin_version(),
346
			)
347
		);
348
349
		if ( ! $needs_upgrade ) {
350
			$needs_upgrade = apply_filters( 'frm_db_needs_upgrade', $needs_upgrade );
351
		}
352
		return $needs_upgrade;
353
	}
354
355
	/**
356
	 * Check both version number and DB number for changes
357
	 *
358
	 * @since 3.0.04
359
	 */
360
	public static function compare_for_update( $atts ) {
361
		$db_version = get_option( $atts['option'] );
362
363
		if ( strpos( $db_version, '-' ) === false ) {
364
			$needs_upgrade = true;
365
		} else {
366
			$last_upgrade = explode( '-', $db_version );
367
			$needs_db_upgrade = (int) $last_upgrade[1] < (int) $atts['new_db_version'];
368
			$new_version = version_compare( $last_upgrade[0], $atts['new_plugin_version'], '<' );
369
			$needs_upgrade = $needs_db_upgrade || $new_version;
370
		}
371
372
		return $needs_upgrade;
373
	}
374
375
	/**
376
	 * Check for database update and trigger js loading
377
	 *
378
	 * @since 2.0.1
379
	 */
380
	public static function admin_init() {
381
		new FrmPersonalData(); // register personal data hooks
382
383
		if ( ! FrmAppHelper::doing_ajax() && self::needs_update() ) {
384
			self::network_upgrade_site();
385
		}
386
387
		$action = FrmAppHelper::simple_get( 'action', 'sanitize_title' );
388
		if ( ! FrmAppHelper::doing_ajax() || $action == 'frm_import_choices' ) {
389
			// don't continue during ajax calls
390
			self::admin_js();
391
		}
392
	}
393
394
    public static function admin_js() {
395
		$version = FrmAppHelper::plugin_version();
396
		FrmAppHelper::load_admin_wide_js( false );
397
398
		$dependecies = array(
399
			'formidable_admin_global',
400
			'formidable',
401
			'jquery',
402
			'jquery-ui-core',
403
			'jquery-ui-draggable',
404
			'jquery-ui-sortable',
405
			'bootstrap_tooltip',
406
			'bootstrap-multiselect',
407
		);
408
409
		if ( FrmAppHelper::is_admin_page( 'formidable-styles' ) ) {
410
			$dependecies[] = 'wp-color-picker';
411
		}
412
413
		wp_register_script( 'formidable_admin', FrmAppHelper::plugin_url() . '/js/formidable_admin.js', $dependecies, $version, true );
414
		wp_register_style( 'formidable-admin', FrmAppHelper::plugin_url() . '/css/frm_admin.css', array(), $version );
415
        wp_register_script( 'bootstrap_tooltip', FrmAppHelper::plugin_url() . '/js/bootstrap.min.js', array( 'jquery' ), '3.3.4' );
416
		wp_register_style( 'formidable-grids', FrmAppHelper::plugin_url() . '/css/frm_grids.css', array(), $version );
417
418
		// load multselect js
419
		wp_register_script( 'bootstrap-multiselect', FrmAppHelper::plugin_url() . '/js/bootstrap-multiselect.js', array( 'jquery', 'bootstrap_tooltip' ), '0.9.8', true );
420
421
		$page = FrmAppHelper::simple_get( 'page', 'sanitize_title' );
422
		$post_type = FrmAppHelper::simple_get( 'post_type', 'sanitize_title' );
423
424
		global $pagenow;
425
		if ( strpos( $page, 'formidable' ) === 0 || ( $pagenow == 'edit.php' && $post_type == 'frm_display' ) ) {
426
427
            wp_enqueue_script( 'admin-widgets' );
428
            wp_enqueue_style( 'widgets' );
429
            wp_enqueue_script( 'formidable' );
430
            wp_enqueue_script( 'formidable_admin' );
431
			FrmAppHelper::localize_script( 'admin' );
432
433
			wp_enqueue_style( 'formidable-admin' );
434
			if ( 'formidable-styles' !== $page ) {
435
				wp_enqueue_style( 'formidable-grids' );
436
				wp_enqueue_style( 'formidable-dropzone' );
437
				add_thickbox();
438
			} else {
439
				$settings = FrmAppHelper::get_settings();
440
				if ( empty( $settings->old_css ) ) {
441
					wp_enqueue_style( 'formidable-grids' );
442
				}
443
			}
444
445
            wp_register_script( 'formidable-editinplace', FrmAppHelper::plugin_url() . '/js/jquery/jquery.editinplace.packed.js', array( 'jquery' ), '2.3.0' );
446
447
			do_action( 'frm_enqueue_builder_scripts' );
448
        } else if ( $pagenow == 'post.php' || ( $pagenow == 'post-new.php' && $post_type == 'frm_display' ) ) {
449
            if ( isset( $_REQUEST['post_type'] ) ) {
450
                $post_type = sanitize_title( $_REQUEST['post_type'] );
451
			} else if ( isset( $_REQUEST['post'] ) && absint( $_REQUEST['post'] ) ) {
452
				$post = get_post( absint( $_REQUEST['post'] ) );
453
                if ( ! $post ) {
454
                    return;
455
                }
456
                $post_type = $post->post_type;
457
            } else {
458
                return;
459
            }
460
461
            if ( $post_type == 'frm_display' ) {
462
                wp_enqueue_script( 'jquery-ui-draggable' );
463
                wp_enqueue_script( 'formidable_admin' );
464
                wp_enqueue_style( 'formidable-admin' );
465
				FrmAppHelper::localize_script( 'admin' );
466
            }
467
        } else if ( $pagenow == 'widgets.php' ) {
468
            FrmAppHelper::load_admin_wide_js();
469
        }
470
    }
471
472
    public static function load_lang() {
473
        load_plugin_textdomain( 'formidable', false, FrmAppHelper::plugin_folder() . '/languages/' );
474
    }
475
476
	/**
477
	 * Check if the styles are updated when a form is loaded on the front-end
478
	 *
479
	 * @since 3.0.1
480
	 */
481
	public static function maybe_update_styles() {
482
		if ( self::needs_update() ) {
483
			self::network_upgrade_site();
484
		}
485
	}
486
487
	/**
488
	 * @since 3.0
489
	 */
490
	public static function create_rest_routes() {
491
		$args = array(
492
			'methods'  => 'GET',
493
			'callback' => 'FrmAppController::api_install',
494
		);
495
		register_rest_route( 'frm-admin/v1', '/install', $args );
496
	}
497
498
	/**
499
	 * Run silent upgrade on each site in the network during a network upgrade.
500
	 * Update database settings for all sites in a network during network upgrade process.
501
	 *
502
	 * @since 2.0.1
503
	 *
504
	 * @param int $blog_id Blog ID.
505
	 */
506
	public static function network_upgrade_site( $blog_id = 0 ) {
507
508
		$request = new WP_REST_Request( 'GET', '/frm-admin/v1/install' );
509
510
		if ( $blog_id ) {
511
			switch_to_blog( $blog_id );
0 ignored issues
show
introduced by
switch_to_blog is not something you should ever need to do in a VIP theme context. Instead use an API (XML-RPC, REST) to interact with other sites if needed.
Loading history...
512
			$response = rest_do_request( $request );
513
			restore_current_blog();
514
		} else {
515
			$response = rest_do_request( $request );
516
		}
517
518
		if ( $response->is_error() ) {
519
			// if the remove post fails, use javascript instead
520
			add_action( 'admin_notices', 'FrmAppController::install_js_fallback' );
521
		}
522
	}
523
524
	/**
525
	 * @since 3.0
526
	 */
527
	public static function api_install() {
528
		if ( self::needs_update() ) {
529
			$running = get_option( 'frm_install_running' );
530
			if ( false === $running || $running < strtotime( '-5 minutes' ) ) {
531
				update_option( 'frm_install_running', time(), 'no' );
532
				self::install();
533
				delete_option( 'frm_install_running' );
534
			}
535
		}
536
		return true;
537
	}
538
539
	/**
540
	 * Silent database upgrade (no redirect).
541
	 * Called via ajax request during network upgrade process.
542
	 *
543
	 * @since 2.0.1
544
	 */
545
	public static function ajax_install() {
546
		self::api_install();
547
		wp_die();
548
	}
549
550
    public static function install() {
551
        $frmdb = new FrmMigrate();
552
        $frmdb->upgrade();
553
    }
554
555
    public static function uninstall() {
556
		FrmAppHelper::permission_check( 'administrator' );
557
        check_ajax_referer( 'frm_ajax', 'nonce' );
558
559
		$frmdb = new FrmMigrate();
560
		$frmdb->uninstall();
561
562
		//disable the plugin and redirect after uninstall so the tables don't get added right back
563
		deactivate_plugins( FrmAppHelper::plugin_folder() . '/formidable.php', false, false );
564
		echo esc_url_raw( admin_url( 'plugins.php?deactivate=true' ) );
565
566
        wp_die();
567
    }
568
569
    public static function drop_tables( $tables ) {
570
        global $wpdb;
571
        $tables[] = $wpdb->prefix . 'frm_fields';
572
        $tables[] = $wpdb->prefix . 'frm_forms';
573
        $tables[] = $wpdb->prefix . 'frm_items';
574
        $tables[] = $wpdb->prefix . 'frm_item_metas';
575
        return $tables;
576
    }
577
578
    public static function deauthorize() {
579
		FrmAppHelper::permission_check( 'frm_change_settings' );
580
        check_ajax_referer( 'frm_ajax', 'nonce' );
581
582
        delete_option( 'frmpro-credentials' );
583
        delete_option( 'frmpro-authorized' );
584
        delete_site_option( 'frmpro-credentials' );
585
        delete_site_option( 'frmpro-authorized' );
586
        wp_die();
587
    }
588
589
	public static function set_footer_text( $text ) {
590
		if ( FrmAppHelper::is_formidable_admin() ) {
591
			$link = FrmAppHelper::admin_upgrade_link( 'footer' );
592
			$text = sprintf(
593
				__( 'Help us spread the %1$sFormidable Forms%2$s love with %3$s %5$s on WordPress.org%4$s. Thank you heaps!', 'formidable' ),
594
				'<a href="' . esc_url( FrmAppHelper::make_affiliate_url( $link ) ) . '" target="_blank">',
595
				'</a>',
596
				'<a href="https://wordpress.org/support/plugin/formidable/reviews/?filter=5#new-post" target="_blank">',
597
				'</a>',
598
				'&#9733;&#9733;&#9733;&#9733;&#9733;'
599
			);
600
			$text = '<span id="footer-thankyou">' . $text . '</span>';
601
		}
602
		return $text;
603
	}
604
605
	/**
606
	 * @deprecated 1.07.05
607
	 * @codeCoverageIgnore
608
	 */
609
    public static function get_form_shortcode( $atts ) {
610
        return FrmDeprecated::get_form_shortcode( $atts );
1 ignored issue
show
Deprecated Code introduced by
The method FrmDeprecated::get_form_shortcode() has been deprecated with message: 1.07.05

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
611
    }
612
613
	/**
614
	 * @deprecated 2.5.4
615
	 * @codeCoverageIgnore
616
	 */
617
	public static function widget_text_filter( $content ) {
618
		return FrmDeprecated::widget_text_filter( $content );
1 ignored issue
show
Deprecated Code introduced by
The method FrmDeprecated::widget_text_filter() has been deprecated with message: 2.5.4

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
619
	}
620
621
	/**
622
	 * Deprecated in favor of wpmu_upgrade_site
623
	 *
624
	 * @deprecated 2.3
625
	 * @codeCoverageIgnore
626
	 */
627
	public static function front_head() {
628
		FrmDeprecated::front_head();
1 ignored issue
show
Deprecated Code introduced by
The method FrmDeprecated::front_head() has been deprecated with message: 2.3

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
629
	}
630
631
632
	/**
633
	 * @deprecated 3.0.04
634
	 * @codeCoverageIgnore
635
	 */
636
	public static function activation_install() {
637
		FrmDeprecated::activation_install();
1 ignored issue
show
Deprecated Code introduced by
The method FrmDeprecated::activation_install() has been deprecated with message: 3.0.04

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
638
	}
639
640
	/**
641
	 * @deprecated 3.0
642
	 * @codeCoverageIgnore
643
	 */
644
	public static function page_route( $content ) {
645
		return FrmDeprecated::page_route( $content );
1 ignored issue
show
Deprecated Code introduced by
The method FrmDeprecated::page_route() has been deprecated with message: 3.0

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
646
	}
647
}
648