PluginProbe
Faust.js / 1.0.2
Faust.js v1.0.2
1.8.12 1.8.11 1.4.1 1.8.0 1.8.8 1.8.9 trunk 0.7.0 0.7.1 0.7.10 0.7.11 0.7.3 0.7.4 0.7.5 0.7.6 0.7.7 0.7.8 0.7.9 0.8.0 0.8.1 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 All 40 releases
← All changes | faustwp.php +4 -51 trunk1.0.2 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: Faust.js™
4 4 * Plugin URI: https://faustjs.org/
5 - * Description: Plugin for working with Faust.js™, the Headless WordPress Toolkit.
5 + * Description: Plugin for working with Faust.js™, the Headless WordPress Framework.
6 6 * Author: WP Engine
7 7 * Author URI: https://wpengine.com/
8 8 * License: GPLv2 or later
9 9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -8,12 +8,11 @@
8 8 * License: GPLv2 or later
9 9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
10 10 * Text Domain: faustwp
11 11 * Domain Path: /languages
12 - * Version: 1.8.12
13 - * Requires PHP: 7.4
12 + * Version: 1.0.2
13 + * Requires PHP: 7.2
14 14 * Requires at least: 5.7
15 - * Tested up to: 7.0
16 15 *
17 16 * @package FaustWP
18 17 */
19 18
@@ -23,56 +22,13 @@
23 22 exit;
24 23 }
25 24
26 25 define( 'FAUSTWP_FILE', __FILE__ );
27 -define( 'FAUSTWP_DIR', __DIR__ );
26 +define( 'FAUSTWP_DIR', dirname( __FILE__ ) );
28 27 define( 'FAUSTWP_URL', plugin_dir_url( __FILE__ ) );
29 28 define( 'FAUSTWP_PATH', plugin_basename( FAUSTWP_FILE ) );
30 29 define( 'FAUSTWP_SLUG', dirname( plugin_basename( FAUSTWP_FILE ) ) );
31 30
32 -
33 -/**
34 - * Get the minimum version of PHP required for this plugin.
35 - *
36 - * @return string Minimum version required.
37 - */
38 -function faustwp_minimum_php_requirement() {
39 - return '7.4';
40 -}
41 -
42 -if ( ! is_php_version_compatible( faustwp_minimum_php_requirement() ) ) {
43 - add_action(
44 - 'admin_notices',
45 - function () {
46 - ?>
47 - <div class="notice notice-error">
48 - <p>
49 - <?php
50 - printf(
51 - /* translators: %s: Minimum required PHP version */
52 - esc_html__( 'FaustWP requires PHP version %s or later. Please upgrade PHP or disable the plugin.', 'faustwp' ),
53 - esc_html( faustwp_minimum_php_requirement() )
54 - );
55 - ?>
56 - </p>
57 - </div>
58 - <?php
59 - }
60 - );
61 - return;
62 -}
63 -
64 -// Loads the updater service when present. The embedded self-updater files
65 -// (includes/updates/class-plugin-updater.php and includes/updates/check-for-updates.php)
66 -// are excluded from the WordPress.org distribution, so the requires below only execute
67 -// in distributions that ship the external updater.
68 -if ( file_exists( FAUSTWP_DIR . '/includes/updates/class-plugin-updater.php' ) ) {
69 - require FAUSTWP_DIR . '/includes/updates/class-plugin-updater.php';
70 -}
71 -if ( file_exists( FAUSTWP_DIR . '/includes/updates/check-for-updates.php' ) ) {
72 - require FAUSTWP_DIR . '/includes/updates/check-for-updates.php';
73 -}
74 -
75 31 require FAUSTWP_DIR . '/includes/auth/functions.php';
76 32 require FAUSTWP_DIR . '/includes/telemetry/functions.php';
77 33 require FAUSTWP_DIR . '/includes/replacement/functions.php';
78 34 require FAUSTWP_DIR . '/includes/settings/functions.php';
@@ -80,9 +36,8 @@
80 36 require FAUSTWP_DIR . '/includes/utilities/functions.php';
81 37 require FAUSTWP_DIR . '/includes/auth/callbacks.php';
82 38 require FAUSTWP_DIR . '/includes/deny-public-access/functions.php';
83 39 require FAUSTWP_DIR . '/includes/detect-conflicts/functions.php';
84 -require FAUSTWP_DIR . '/includes/blocks/functions.php';
85 40 require FAUSTWP_DIR . '/includes/deny-public-access/callbacks.php';
86 41 require FAUSTWP_DIR . '/includes/menus/callbacks.php';
87 42 require FAUSTWP_DIR . '/includes/admin-menus/callbacks.php';
88 43 require FAUSTWP_DIR . '/includes/replacement/callbacks.php';
@@ -92,6 +47,4 @@
92 47 require FAUSTWP_DIR . '/includes/settings/callbacks.php';
93 48 require FAUSTWP_DIR . '/includes/updates/upgrade-database.php';
94 49 require FAUSTWP_DIR . '/includes/utilities/callbacks.php';
95 50 require FAUSTWP_DIR . '/includes/detect-conflicts/callbacks.php';
96 -require FAUSTWP_DIR . '/includes/blocks/callbacks.php';
97 -require FAUSTWP_DIR . '/includes/telemetry/callbacks.php';