Skip to content

Commit

Permalink
style: change Faust WP to FaustWP
Browse files Browse the repository at this point in the history
  • Loading branch information
apmatthews authored and wjohnsto committed Oct 19, 2021
1 parent 4bcc43c commit 403af39
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions plugins/wpe-headless/includes/settings/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function get_secret_key() {
}

/**
* Get a Faust WP setting by name.
* Get a FaustWP setting by name.
*
* @param string $name The setting name.
* @param mixed $default Optional setting value. Default false.
Expand All @@ -93,7 +93,7 @@ function faustwp_get_setting( $name, $default = false ) {
}

/**
* Update a Faust WP setting value.
* Update a FaustWP setting value.
*
* @link https://developer.wordpress.org/reference/functions/update_option/
*
Expand All @@ -110,7 +110,7 @@ function faustwp_update_setting( $name, $value ) {
}

/**
* Get all Faust WP settings.
* Get all FaustWP settings.
*
* @return array An array of settings.
*/
Expand Down
2 changes: 1 addition & 1 deletion plugins/wpe-headless/includes/utilities/functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Various utility functions used through the Faust WP plugin.
* Various utility functions used through the FaustWP plugin.
*
* @package FaustWP
*/
Expand Down
8 changes: 4 additions & 4 deletions plugins/wpe-headless/readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== Headless Plugin ===
=== FaustWP ===
Contributors:
Tags:
Requires at least: 5.3
Tested up to: 5.5
Requires PHP: 5.6
Tested up to: 5.8.1
Requires PHP: 7.2
Stable tag: 0.6.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -28,7 +28,7 @@ Transform your WordPress site to a powerful Headless API.
- Fixed the headless options page sidebar links to new Faust.js documentation site.

= 0.6.0 =
- [Breaking Change] Added support for access/refresh token based auth flow in the authorize endpoint.
- [Breaking Change] Added support for access/refresh token based auth flow in the authorize endpoint.
- Added `page_id` query param to preview pages when the content type is `page`

= 0.5.8 =
Expand Down
8 changes: 4 additions & 4 deletions plugins/wpe-headless/tests/acceptance/SettingsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class SettingsCest
{
/**
* Ensure the Faust WP settings page is available.
* Ensure the FaustWP settings page is available.
*/
public function i_can_access_the_settings_page(AcceptanceTester $I)
{
Expand All @@ -13,7 +13,7 @@ public function i_can_access_the_settings_page(AcceptanceTester $I)
}

/**
* Ensure the Faust WP default settings are set when the plugin is
* Ensure the FaustWP default settings are set when the plugin is
* activated for the first time.
*/
public function i_can_see_the_default_settings(AcceptanceTester $I)
Expand All @@ -22,11 +22,11 @@ public function i_can_see_the_default_settings(AcceptanceTester $I)
$I->amOnPluginsPage();

// Deactivate plugin and remove settings.
$I->deactivatePlugin('faust-wp');
$I->deactivatePlugin('faustwp');
$I->dontHaveOptionInDatabase('wpe_headless');

// Reactivate plugin triggering default settings.
$I->activatePlugin('faust-wp');
$I->activatePlugin('faustwp');

$settings = $I->grabOptionFromDatabase('wpe_headless');

Expand Down
4 changes: 2 additions & 2 deletions plugins/wpe-headless/wpe-headless.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Plugin Name: Faust WP
* Plugin Name: FaustWP
* Plugin URI: https://wpengine.com/
* Description: Plugin for working with Faust.js, the Headless WordPress Framework.
* Author: WP Engine
Expand Down Expand Up @@ -55,7 +55,7 @@
/**
* Callback for WordPress 'activated_plugin' action.
*
* Redirect the user to Faust WP settings page on activation.
* Redirect the user to FaustWP settings page on activation.
*
* @param string $plugin The plugin name.
* @param bool $network_wide True if a network plugin, false if else.
Expand Down

0 comments on commit 403af39

Please sign in to comment.