Skip to content

Commit

Permalink
Setting up local config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldhuereca committed Jan 30, 2024
1 parent a4127e9 commit c8d7038
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
enable_warnings: false # Enable checking for warnings (-w)
paths: '.' # Paths to check, space separated
excludes: './lib/* ./php/Plugin_Updater.php' # Paths to excludes, space separated
excludes: '' # Paths to excludes, space separated
standard: 'WordPress' # Standard to use. Accepts WordPress|WordPress-Core|WordPress-Docs|WordPress-Extra|WordPress-VIP-Go|WordPressVIPMinimum|10up-Default.
standard_repo: '' # Public (git) repository URL of the coding standard
repo_branch: 'master' # Branch of Standard repository
Expand Down
4 changes: 2 additions & 2 deletions php/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ public function output_pattern_sync_column( $column, $post_id ) {
* Add the admin menu.
*/
public function add_admin_menu() {
$options = Options::get_options();
$hide_all_patterns = (bool) $options['hideAllPatterns'] ?? false;
$options = Options::get_options();
$hide_all_patterns = (bool) $options['hideAllPatterns'] ?? false;
$hide_patterns_menu = (bool) $options['hidePatternsMenu'] ?? false;

if ( $hide_all_patterns && $hide_patterns_menu ) {
Expand Down
4 changes: 2 additions & 2 deletions php/Plugin_License.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public function perform_action( string $action, string $license = '', bool $forc
*/
private function perform_license_action( string $action, bool $force ) {

$options = Options::get_options();
$maybe_check = get_site_transient( 'dlxgbhacks_core_license_check' );
$options = Options::get_options();
$maybe_check = get_site_transient( 'dlxgbhacks_core_license_check' );

if ( 'check_license' === $action && ! $force && $maybe_check ) {
return $maybe_check;
Expand Down
4 changes: 4 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@

<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/lib/</exclude-pattern>
<exclude-pattern>/build/</exclude-pattern>
<exclude-pattern>/dist/</exclude-pattern>
<exclude-pattern>/php/Plugin_Updater.php</exclude-pattern>
</ruleset>

0 comments on commit c8d7038

Please sign in to comment.