Skip to content

Commit

Permalink
Merge pull request #114 from 10up/fix/user-correct-textdomain
Browse files Browse the repository at this point in the history
Fix: User correct textdomain and remove unused variable
  • Loading branch information
felipeelia authored Dec 10, 2024
2 parents de55abb + e7de8ad commit c651524
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions includes/classes/Feature/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class Users extends Feature {
public function __construct() {
$this->slug = 'users';

$this->title = esc_html__( 'Users', 'elasticpress' );
$this->title = esc_html__( 'Users', 'elasticpress-labs' );

$this->summary = __( 'Improve user search relevancy and query performance.', 'elasticpress' );
$this->summary = __( 'Improve user search relevancy and query performance.', 'elasticpress-labs' );

$this->docs_url = __( 'https://elasticpress.zendesk.com/hc/en-us/articles/360050447492-Configuring-ElasticPress-via-the-Plugin-Dashboard#users', 'elasticpress' );
$this->docs_url = __( 'https://elasticpress.zendesk.com/hc/en-us/articles/360050447492-Configuring-ElasticPress-via-the-Plugin-Dashboard#users', 'elasticpress-labs' );

$this->requires_install_reindex = true;

Expand Down Expand Up @@ -58,8 +58,8 @@ public function search_setup() {
*/
public function output_feature_box_long() {
?>
<p><?php esc_html_e( 'This feature will empower your website to overcome traditional WordPress user search and query limitations that can present themselves at scale.', 'elasticpress' ); ?></p>
<p><?php esc_html_e( 'Be aware that storing user data may bound you to certain legal obligations depending on your local government regulations.', 'elasticpress' ); ?></p>
<p><?php esc_html_e( 'This feature will empower your website to overcome traditional WordPress user search and query limitations that can present themselves at scale.', 'elasticpress-labs' ); ?></p>
<p><?php esc_html_e( 'Be aware that storing user data may bound you to certain legal obligations depending on your local government regulations.', 'elasticpress-labs' ); ?></p>
<?php
}

Expand Down
6 changes: 2 additions & 4 deletions includes/classes/Indexable/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class User extends Indexable {
*/
public function __construct() {
$this->labels = [
'plural' => esc_html__( 'Users', 'elasticpress' ),
'singular' => esc_html__( 'User', 'elasticpress' ),
'plural' => esc_html__( 'Users', 'elasticpress-labs' ),
'singular' => esc_html__( 'User', 'elasticpress-labs' ),
];
}

Expand All @@ -64,8 +64,6 @@ public function setup() {
* @return array
*/
public function format_args( $query_vars, $query ) {
global $wpdb;

/**
* Handle `number` query var
*/
Expand Down

0 comments on commit c651524

Please sign in to comment.