Skip to content

Commit

Permalink
Fix textdomains and filter names
Browse files Browse the repository at this point in the history
Replaced fluent-support and ninja_magic_login references
  • Loading branch information
tdrayson committed Oct 30, 2024
1 parent 2f64c05 commit f00249e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
20 changes: 10 additions & 10 deletions app/Hooks/Handlers/AdminMenuHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,44 +31,44 @@ public function addMenu()

add_submenu_page(
'fluent-auth',
__('Dashboard', 'fluent-support'),
__('Dashboard', 'fluent-support'),
__('Dashboard', 'fluent-security'),
__('Dashboard', 'fluent-security'),
$permission,
'fluent-auth',
array($this, 'render')
);

add_submenu_page(
'fluent-auth',
__('Security Settings', 'fluent-support'),
__('Security Settings', 'fluent-support'),
__('Security Settings', 'fluent-security'),
__('Security Settings', 'fluent-security'),
$permission,
'fluent-auth#/settings',
array($this, 'render')
);

add_submenu_page(
'fluent-auth',
__('Social Login', 'fluent-support'),
__('Social Login', 'fluent-support'),
__('Social Login', 'fluent-security'),
__('Social Login', 'fluent-security'),
$permission,
'fluent-auth#/social-login-settings',
array($this, 'render')
);

add_submenu_page(
'fluent-auth',
__('Login Redirects', 'fluent-support'),
__('Login Redirects', 'fluent-support'),
__('Login Redirects', 'fluent-security'),
__('Login Redirects', 'fluent-security'),
$permission,
'fluent-auth#/login-redirects',
array($this, 'render')
);

add_submenu_page(
'fluent-auth',
__('Logs', 'fluent-support'),
__('Logs', 'fluent-support'),
__('Logs', 'fluent-security'),
__('Logs', 'fluent-security'),
$permission,
'fluent-auth#/logs',
array($this, 'render')
Expand Down
38 changes: 19 additions & 19 deletions app/Hooks/Handlers/CustomAuthHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,40 +383,40 @@ public function getSignupFields()
*
* @param array $fields Form fields
*/
return apply_filters('fluent_support/registration_form_fields', [
return apply_filters('fluent_auth/registration_form_fields', [
'first_name' => [
'required' => true,
'type' => 'text',
'label' => __('First name', 'fluent-support'),
'label' => __('First name', 'fluent-security'),
'id' => 'fls_first_name',
'placeholder' => __('First name', 'fluent-support')
'placeholder' => __('First name', 'fluent-security')
],
'last_name' => [
'type' => 'text',
'label' => __('Last Name', 'fluent-support'),
'label' => __('Last Name', 'fluent-security'),
'id' => 'fls_last_name',
'placeholder' => __('Last name', 'fluent-support')
'placeholder' => __('Last name', 'fluent-security')
],
'username' => [
'required' => true,
'type' => 'text',
'label' => __('Username', 'fluent-support'),
'label' => __('Username', 'fluent-security'),
'id' => 'fls_reg_username',
'placeholder' => __('Username', 'fluent-support')
'placeholder' => __('Username', 'fluent-security')
],
'email' => [
'required' => true,
'type' => 'email',
'label' => __('Email Address', 'fluent-support'),
'label' => __('Email Address', 'fluent-security'),
'id' => 'fls_reg_email',
'placeholder' => __('Your Email Address', 'fluent-support')
'placeholder' => __('Your Email Address', 'fluent-security')
],
'password' => [
'required' => true,
'type' => 'password',
'label' => __('Password', 'fluent-support'),
'label' => __('Password', 'fluent-security'),
'id' => 'fls_reg_password',
'placeholder' => __('Password', 'fluent-support')
'placeholder' => __('Password', 'fluent-security')
]
]);
}
Expand All @@ -430,13 +430,13 @@ public static function resetPasswordFields()
*
* @param array $fields Form fields
*/
return apply_filters('fluent_support/reset_password_form', [
return apply_filters('fluent_auth/reset_password_form', [
'user_login' => [
'required' => true,
'type' => 'text',
'label' => __('Email Address', 'fluent-support'),
'label' => __('Email Address', 'fluent-security'),
'id' => 'fls_email',
'placeholder' => __('Your Email Address', 'fluent-support')
'placeholder' => __('Your Email Address', 'fluent-security')
]
]);
}
Expand Down Expand Up @@ -1004,7 +1004,7 @@ public function handlePasswordResentAjax()

$message = sprintf(__('<p>Hi %s,</p>', 'fluent-security'), $user_data->first_name) .
__('<p>Someone has requested a new password for the following account on WordPress:</p>', 'fluent-security') .
sprintf(__('<p>Username: %s</p>', 'fluent-support'), $user_login) .
sprintf(__('<p>Username: %s</p>', 'fluent-security'), $user_login) .
sprintf(__('<p>%s</p>', 'fluent-security'), $resetLink) .
sprintf(__('<p>If you did not request to reset your password, please ignore this email.</p>', 'fluent-security'));

Expand Down Expand Up @@ -1085,10 +1085,10 @@ protected function nativeLoginForm($args = array())
'echo' => true,
'redirect' => (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
'form_id' => 'loginform',
'label_username' => __('Username or Email Address'),
'label_password' => __('Password'),
'label_remember' => __('Remember Me'),
'label_log_in' => __('Log In'),
'label_username' => __('Username or Email Address', 'fluent-security'),
'label_password' => __('Password', 'fluent-security'),
'label_remember' => __('Remember Me', 'fluent-security'),
'label_log_in' => __('Log In', 'fluent-security'),
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
Expand Down
4 changes: 2 additions & 2 deletions app/Hooks/Handlers/MagicLoginHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public function pushAssets()
wp_localize_script('fls_magic_url', 'fls_magic_login_vars', [
'ajaxurl' => admin_url('admin-ajax.php'),
'success_icon' => FLUENT_AUTH_PLUGIN_URL . 'dist/images/success.png',
'empty_text' => __('Please provide username / email to get magic login link', 'ninja_magic_login'),
'wait_text' => __('Please Wait...', 'ninja_magic_login'),
'empty_text' => __('Please provide username / email to get magic login link', 'fluent-security'),
'wait_text' => __('Please Wait...', 'fluent-security'),
]);

$this->assetLoaded = true;
Expand Down

0 comments on commit f00249e

Please sign in to comment.