Skip to content

Commit

Permalink
Abstract plugin name - see #26
Browse files Browse the repository at this point in the history
  • Loading branch information
julien731 committed Jul 31, 2016
1 parent 26fc309 commit c90679e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions includes/admin/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function network_settings_page() {

// Standalone site menu
if ( true === is_multisite() && false === WPGA()->is_network_enabled() ) {
add_submenu_page( 'options-general.php', esc_html__( 'WP Google Authenticator Settings', 'wpga' ), esc_html__( 'Authenticator', 'wpga' ), 'administrator', 'wpga-settings', array(
add_submenu_page( 'options-general.php', sprintf( esc_html__( '%1$s Settings', 'wpga' ), WPGA_NAME ), esc_html__( 'Authenticator', 'wpga' ), 'administrator', 'wpga-settings', array(
$this,
'settings_page',
) );
Expand Down Expand Up @@ -447,7 +447,7 @@ public function settings_page() {
$form_action = is_network_admin() ? esc_url( add_query_arg( 'page', 'wpga-settings', admin_url( 'network/settings.php' ) ) ): esc_url( add_query_arg( 'page', 'wpga_options', admin_url( 'options-general.php' ) ) ); ?>
<div class="wrap">

<h2><?php esc_html_e( 'Authenticator Settings', 'wpga' ); ?></h2>
<h2><?php printf( esc_html__( '%1$s Settings', 'wpga' ), WPGA_NAME ); ?></h2>

<form action="<?php echo $form_action; ?>" method="post">
<?php
Expand Down Expand Up @@ -1315,7 +1315,7 @@ public function settingsPage() {
?>
<div class="wrap">
<div class="icon32" id="<?php echo esc_attr( $this->icon ); ?>"></div>
<h2><?php esc_html_e( 'WP Google Authenticator Settings', 'wpga' ); ?></h2>
<h2><?php printf( esc_html__( '%1$s Settings', 'wpga' ), WPGA_NAME ); ?></h2>

<form action="options.php" method="post">
<?php
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/functions-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function wpga_init_settings() {
'name' => WPGA_PREFIX . '_options',
'menu_name' => esc_html__( 'Authenticator', 'wpga' ),
'parent' => 'options-general.php',
'page_title' => esc_html__( 'WP Google Authenticator Settings', 'wpga' ),
'page_title' => sprintf( esc_html__( '%1$s Settings', 'wpga' ), WPGA_NAME ),
'slug' => WPGA_PREFIX . '_options',
'page' => 'wpga-settings',
'prefix' => WPGA_PREFIX,
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/functions-user-profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function wpga_user_profile_fields( $user ) {
}
?>

<h3 id="wpga"><?php esc_html_e( 'Authenticator Settings', 'wpga' ); ?></h3>
<h3 id="wpga"><?php printf( esc_html__( '%1$s Settings', 'wpga' ), WPGA_NAME ); ?></h3>

<table class="form-table">

Expand Down

0 comments on commit c90679e

Please sign in to comment.