From 063c80eaf313601e7d6d7bb8c18df8b1e461f5be Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Sat, 22 Nov 2025 21:16:38 +0100 Subject: [PATCH 1/2] Update class-taxonomies.php --- add-ons/agents/includes/class-taxonomies.php | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/add-ons/agents/includes/class-taxonomies.php b/add-ons/agents/includes/class-taxonomies.php index b8ade7259..9980583be 100644 --- a/add-ons/agents/includes/class-taxonomies.php +++ b/add-ons/agents/includes/class-taxonomies.php @@ -111,17 +111,17 @@ public function create_taxonomy( $args = [] ) { // Check permissions. if ( ! current_user_can( 'manage_options' ) ) { - wp_die( esc_html_e( 'Manage options capabilities required to create a taxonomy.', 'impress_agents' ) ); + wp_die( esc_html__( 'Manage options capabilities required to create a taxonomy.', 'impress_agents' ) ); } /** No empty fields */ if ( ! isset( $args['id'] ) || empty( $args['id'] ) ) { - wp_die( esc_html_e( 'Please complete all required fields.', 'impress_agents' ) ); + wp_die( esc_html__( 'Please complete all required fields.', 'impress_agents' ) ); } if ( ! isset( $args['name'] ) || empty( $args['name'] ) ) { - wp_die( esc_html_e( 'Please complete all required fields.', 'impress_agents' ) ); + wp_die( esc_html__( 'Please complete all required fields.', 'impress_agents' ) ); } if ( ! isset( $args['singular_name'] ) || empty( $args['singular_name'] ) ) { - wp_die( esc_html_e( 'Please complete all required fields.', 'impress_agents' ) ); + wp_die( esc_html__( 'Please complete all required fields.', 'impress_agents' ) ); } extract( $args ); @@ -168,11 +168,11 @@ public function delete_taxonomy( $id = '' ) { // Check permissions. if ( ! current_user_can( 'manage_options' ) ) { - wp_die( esc_html_e( 'Manage options capabilities required to delete a taxonomy.', 'impress_agents' ) ); + wp_die( esc_html__( 'Manage options capabilities required to delete a taxonomy.', 'impress_agents' ) ); } /** No empty ID */ if ( ! isset( $id ) || empty( $id ) ) { - wp_die( esc_html_e( "Nice try, partner. But that taxonomy doesn't exist. Click back and try again.", 'impress_agents' ) ); + wp_die( esc_html__( "Nice try, partner. But that taxonomy doesn't exist. Click back and try again.", 'impress_agents' ) ); } $options = get_option( $this->settings_field ); @@ -181,7 +181,7 @@ public function delete_taxonomy( $id = '' ) { if ( array_key_exists( $id, (array) $options ) ) { unset( $options[$id] ); } else { - wp_die( esc_html_e( "Nice try, partner. But that taxonomy doesn't exist. Click back and try again.", 'impress_agents' ) ); + wp_die( esc_html__( "Nice try, partner. But that taxonomy doesn't exist. Click back and try again.", 'impress_agents' ) ); } /** Update the DB */ @@ -193,17 +193,17 @@ public function edit_taxonomy( $args = [] ) { // Check permissions. if ( ! current_user_can( 'manage_options' ) ) { - wp_die( esc_html_e( 'Manage options capabilities required to edit a taxonomy.', 'impress_agents' ) ); + wp_die( esc_html__( 'Manage options capabilities required to edit a taxonomy.', 'impress_agents' ) ); } /** No empty fields */ if ( ! isset( $args['id'] ) || empty( $args['id'] ) ) { - wp_die( esc_html_e( 'Please complete all required fields.', 'impress_agents' ) ); + wp_die( esc_html__( 'Please complete all required fields.', 'impress_agents' ) ); } if ( ! isset( $args['name'] ) || empty( $args['name'] ) ) { - wp_die( esc_html_e( 'Please complete all required fields.', 'impress_agents' ) ); + wp_die( esc_html__( 'Please complete all required fields.', 'impress_agents' ) ); } if ( ! isset( $args['singular_name'] ) || empty( $args['singular_name'] ) ) { - wp_die( esc_html_e( 'Please complete all required fields.', 'impress_agents' ) ); + wp_die( esc_html__( 'Please complete all required fields.', 'impress_agents' ) ); } extract( $args ); From 8e1998d6b0486e9edfc5652566ec3ac36df46e47 Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Sat, 22 Nov 2025 21:17:58 +0100 Subject: [PATCH 2/2] Update class-taxonomies.php --- add-ons/listings/includes/class-taxonomies.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/add-ons/listings/includes/class-taxonomies.php b/add-ons/listings/includes/class-taxonomies.php index 49111cde1..7fca483ea 100755 --- a/add-ons/listings/includes/class-taxonomies.php +++ b/add-ons/listings/includes/class-taxonomies.php @@ -104,7 +104,7 @@ public function create_taxonomy( $args = array() ) { // Check permissions. if ( ! current_user_can( 'manage_options' ) ) { - wp_die( esc_html_e( 'Manage options capabilities required to create a taxonomy.', 'wp_listings' ) ); + wp_die( esc_html__( 'Manage options capabilities required to create a taxonomy.', 'wp_listings' ) ); } /** No empty fields */ if ( ! isset( $args['id'] ) || empty( $args['id'] ) ) { @@ -161,7 +161,7 @@ public function delete_taxonomy( $id = '' ) { // Check permissions. if ( ! current_user_can( 'manage_options' ) ) { - wp_die( esc_html_e( 'Manage options capabilities required to delete a taxonomy.', 'wp_listings' ) ); + wp_die( esc_html__( 'Manage options capabilities required to delete a taxonomy.', 'wp_listings' ) ); } /** No empty ID */ if ( ! isset( $id ) || empty( $id ) ) { @@ -186,7 +186,7 @@ public function edit_taxonomy( $args = array() ) { // Check permissions. if ( ! current_user_can( 'manage_options' ) ) { - wp_die( esc_html_e( 'Manage options capabilities required to edit a taxonomy.', 'wp_listings' ) ); + wp_die( esc_html__( 'Manage options capabilities required to edit a taxonomy.', 'wp_listings' ) ); } /** No empty fields */ if ( ! isset( $args['id'] ) || empty( $args['id'] ) ) {