| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* Class FrmDeprecated |
| 8 |
* |
| 9 |
* @since 3.04.03 |
| 10 |
* @codeCoverageIgnore |
| 11 |
*/ |
| 12 |
class FrmDeprecated { |
| 13 |
|
| 14 |
/** |
| 15 |
* Routes for wordpress pages -- we're just replacing content |
| 16 |
* |
| 17 |
* @deprecated 3.0 |
| 18 |
*/ |
| 19 |
public static function page_route( $content ) { |
| 20 |
_deprecated_function( __FUNCTION__, '3.0' ); |
| 21 |
global $post; |
| 22 |
|
| 23 |
if ( $post && isset( $_GET['form'] ) ) { |
| 24 |
$content = FrmFormsController::page_preview(); |
| 25 |
} |
| 26 |
|
| 27 |
return $content; |
| 28 |
} |
| 29 |
} |
| 30 |
|