Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/hwp-previews/activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

declare(strict_types=1);

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

/**
* Runs when the plugin is activated.
*/
Expand Down
2 changes: 1 addition & 1 deletion plugins/hwp-previews/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wpengine/hwp-previews",
"type": "wordpress-plugin",
"description": "A WordPress plugin for headless previews.",
"license": "GPL-2.0",
"license": "GPL-2.0-or-later",
"version": "1.0.2",
"authors": [
{
Expand Down
4 changes: 4 additions & 0 deletions plugins/hwp-previews/deactivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
* @since 0.0.1
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

/**
* Runs when the plugin is deactivated.
*/
Expand Down
4 changes: 2 additions & 2 deletions plugins/hwp-previews/hwp-previews.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* Text Domain: hwp-previews
* Domain Path: /languages
* Requires at least: 6.0
* Tested up to: 7.0
* Requires PHP: 8.2+
* Tested up to: 6.9
* Requires PHP: 8.2
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
Expand Down
4 changes: 2 additions & 2 deletions plugins/hwp-previews/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: colin-murphy, joefusco, thdespou, ahuseyn, wpengine
Tags: GraphQL, Headless, Previews, WPGraphQL, React, Rest
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Requires PHP: 8.2
Stable tag: 1.0.2
License: GPL-2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Headless Previews solution for WordPress: fully configurable preview URLs via the settings page which is framework agnostic.
Expand Down
4 changes: 4 additions & 0 deletions plugins/hwp-previews/src/Templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
use HWP\Previews\Integration\Faust_Integration;
use HWP\Previews\Preview\Post\Post_Settings_Service;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

$hwp_previews_tabs_config = (array) get_query_var( 'hwp_previews_main_page_config' );
$hwp_previews_current_tab = (string) ( $hwp_previews_tabs_config['current_tab'] ?? '' );
$hwp_previews_tabs = (array) ( $hwp_previews_tabs_config['tabs'] ?? [] );
Expand Down
4 changes: 4 additions & 0 deletions plugins/hwp-previews/src/Templates/iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

declare(strict_types=1);

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

$hwp_previews_url_template = \HWP\Previews\Preview\Template\Template_Resolver_Service::get_query_variable();
?>

Expand Down
Loading