Skip to content

Commit

Permalink
fix couple other warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Dec 17, 2024
1 parent 955c336 commit 27ace5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nacc-wordpress-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace NACCPlugin;

if ( basename( $_SERVER['PHP_SELF'] ) == basename( __FILE__ ) ) {
if ( ! defined( 'WPINC' ) ) {
die( 'Sorry, but you cannot access this page directly.' );
}

Expand Down Expand Up @@ -332,8 +332,8 @@ public static function register_settings(): void {
public static function create_menu(): void {
// Create the plugin's settings page in the WordPress admin menu
add_options_page(
esc_html__( 'NACC Settings' ), // Page Title
esc_html__( 'NACC' ), // Menu Title
esc_html__( 'NACC Settings', 'nacc' ), // Page Title
esc_html__( 'NACC', 'nacc' ), // Menu Title
'manage_options', // Capability
'nacc', // Menu Slug
[ static::class, 'draw_settings' ] // Callback function to display the page content
Expand Down

0 comments on commit 27ace5f

Please sign in to comment.