Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Fixes for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jonny-bull committed Sep 17, 2021
1 parent 9f52246 commit 6eabf52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions flagpole.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ function flagpole_admin_imports( $hook ) {
require plugin_dir_path( __FILE__ ) . 'includes/admin/settings-page.php';
require plugin_dir_path( __FILE__ ) . 'includes/api/api.general.php';
require plugin_dir_path( __FILE__ ) . 'includes/api/api.shortcode.php';
require plugin_dir_path( __FILE__ ) . 'includes/acf/class-acf-filter.php';

if ( class_exists( 'ACF' ) ) {
require plugin_dir_path( __FILE__ ) . 'includes/acf/class-acf-filter.php';
}

/**
* AJAX Action toggling features from the WP admin area.
Expand Down Expand Up @@ -354,6 +357,6 @@ function flagpole_operation_redirect( $error_code = false, $redirect = true ) {
*
* @return void
*/
function flagpole_acf_location_type(): void {
function flagpole_acf_location_type() {
acf_register_location_type( 'Flagpole\ACF_Filter' );
}
4 changes: 1 addition & 3 deletions includes/acf/class-acf-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
* @package Peake\Plugins
*/

declare( strict_types=1 );

namespace Flagpole;

use ACF_Location;
Expand All @@ -29,7 +27,7 @@ class ACF_Filter extends ACF_Location {
*
* @return void
*/
public function initialize(): void {
public function initialize() {
$this->name = 'feature-flags';
$this->label = __( 'Feature flags', 'flagpole' );
$this->category = 'forms';
Expand Down

0 comments on commit 6eabf52

Please sign in to comment.