Changeset 2867710
- Timestamp:
- 02/19/2023 04:04:41 PM (17 months ago)
- Location:
- wp-dark-mode
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-dark-mode/tags/4.0.6/includes/appsero/src/Client.php
r2867708 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero Client … … 290 290 * @return string 291 291 */ 292 public function __trans( $text ) { // phpcs:ignore292 public function __trans( $text ) { 293 293 return call_user_func( '__', $text, $this->textdomain ); 294 294 } -
wp-dark-mode/tags/4.0.6/includes/appsero/src/Insights.php
r2867708 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero Insights -
wp-dark-mode/tags/4.0.6/includes/appsero/src/License.php
r2867708 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero License Checker … … 170 170 'license_key' => $license_key, 171 171 'url' => esc_url( home_url() ), 172 'is_local' => $this->client->is_local_server() ,172 'is_local' => $this->client->is_local_server() 173 173 ]; 174 174 … … 178 178 return [ 179 179 'success' => false, 180 'error' => $response->get_error_message() ,180 'error' => $response->get_error_message() 181 181 ]; 182 182 } … … 187 187 return [ 188 188 'success' => false, 189 'error' => $this->client->__trans( 'Unknown error occurred, Please try again.' ) ,189 'error' => $this->client->__trans( 'Unknown error occurred, Please try again.' ) 190 190 ]; 191 191 } … … 194 194 $response = [ 195 195 'success' => false, 196 'error' => $response['errors']['license_key'][0] ,196 'error' => $response['errors']['license_key'][0] 197 197 ]; 198 198 } … … 228 228 'icon_url' => '', 229 229 'position' => null, 230 'parent_slug' => '' ,230 'parent_slug' => '' 231 231 ]; 232 232 … … 265 265 266 266 if ( isset( $_POST['_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_nonce'] ) ), $this->client->name ) ) { 267 $this->license_form_submit( $_POST ); 267 $this->license_form_submit( $_POST ); 268 268 } else { 269 269 $this->error = esc_html__( 'You are not allowed to do this action.', 'wp-dark-mode' ); 270 } 270 } 271 271 } 272 272 … … 289 289 <div class="appsero-license-details"> 290 290 291 <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?>291 <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?> 292 292 <p> 293 293 <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( '<strong>%s</strong> license is activated.' ), esc_html( $license['title'] ) ) ); ?> 294 294 </p> 295 <?php else 295 <?php else: ?> 296 296 <p> 297 297 <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( 'Activate <strong>%s</strong> by your license key to get professional support and automatic update from your WordPress dashboard.' ), esc_html( $this->client->name ) ) ); ?> … … 703 703 'title' => $response['title'], 704 704 'source_id' => $response['source_identifier'], 705 'recurring' => $response['recurring'] ,705 'recurring' => $response['recurring'] 706 706 ]; 707 707 … … 734 734 $data = [ 735 735 'key' => '', 736 'status' => 'deactivate' ,736 'status' => 'deactivate' 737 737 ]; 738 738 -
wp-dark-mode/tags/4.0.6/includes/appsero/src/Updater.php
r2867695 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero Updater … … 179 179 'slug' => $this->client->slug, 180 180 'basename' => $this->client->basename, 181 'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : '' ,181 'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : '' 182 182 ]; 183 183 -
wp-dark-mode/trunk/includes/appsero/src/Client.php
r2867708 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero Client … … 290 290 * @return string 291 291 */ 292 public function __trans( $text ) { // phpcs:ignore292 public function __trans( $text ) { 293 293 return call_user_func( '__', $text, $this->textdomain ); 294 294 } -
wp-dark-mode/trunk/includes/appsero/src/Insights.php
r2867708 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero Insights -
wp-dark-mode/trunk/includes/appsero/src/License.php
r2867708 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero License Checker … … 170 170 'license_key' => $license_key, 171 171 'url' => esc_url( home_url() ), 172 'is_local' => $this->client->is_local_server() ,172 'is_local' => $this->client->is_local_server() 173 173 ]; 174 174 … … 178 178 return [ 179 179 'success' => false, 180 'error' => $response->get_error_message() ,180 'error' => $response->get_error_message() 181 181 ]; 182 182 } … … 187 187 return [ 188 188 'success' => false, 189 'error' => $this->client->__trans( 'Unknown error occurred, Please try again.' ) ,189 'error' => $this->client->__trans( 'Unknown error occurred, Please try again.' ) 190 190 ]; 191 191 } … … 194 194 $response = [ 195 195 'success' => false, 196 'error' => $response['errors']['license_key'][0] ,196 'error' => $response['errors']['license_key'][0] 197 197 ]; 198 198 } … … 228 228 'icon_url' => '', 229 229 'position' => null, 230 'parent_slug' => '' ,230 'parent_slug' => '' 231 231 ]; 232 232 … … 265 265 266 266 if ( isset( $_POST['_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_nonce'] ) ), $this->client->name ) ) { 267 $this->license_form_submit( $_POST ); 267 $this->license_form_submit( $_POST ); 268 268 } else { 269 269 $this->error = esc_html__( 'You are not allowed to do this action.', 'wp-dark-mode' ); 270 } 270 } 271 271 } 272 272 … … 289 289 <div class="appsero-license-details"> 290 290 291 <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?>291 <?php if ( ( $license && isset( $license['status'] ) && 'activate' === sanitize_text_field( $license['status'] ) ) ) : ?> 292 292 <p> 293 293 <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( '<strong>%s</strong> license is activated.' ), esc_html( $license['title'] ) ) ); ?> 294 294 </p> 295 <?php else 295 <?php else: ?> 296 296 <p> 297 297 <?php echo wp_kses_post( wp_sprintf( $this->client->__trans( 'Activate <strong>%s</strong> by your license key to get professional support and automatic update from your WordPress dashboard.' ), esc_html( $this->client->name ) ) ); ?> … … 703 703 'title' => $response['title'], 704 704 'source_id' => $response['source_identifier'], 705 'recurring' => $response['recurring'] ,705 'recurring' => $response['recurring'] 706 706 ]; 707 707 … … 734 734 $data = [ 735 735 'key' => '', 736 'status' => 'deactivate' ,736 'status' => 'deactivate' 737 737 ]; 738 738 -
wp-dark-mode/trunk/includes/appsero/src/Updater.php
r2867695 r2867710 1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName1 <?php 2 2 /** 3 3 * Appsero Updater … … 179 179 'slug' => $this->client->slug, 180 180 'basename' => $this->client->basename, 181 'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : '' ,181 'license_key' => ! empty( $license ) && isset( $license['key'] ) ? $license['key'] : '' 182 182 ]; 183 183
Note: See TracChangeset
for help on using the changeset viewer.