Changeset 3318616
- Timestamp:
- 06/27/2025 07:33:42 AM (7 months ago)
- Location:
- digital-license-manager/trunk
- Files:
-
- 5 edited
-
digital-license-manager.php (modified) (2 diffs)
-
includes/Enums/LicensePublicStatus.php (modified) (1 diff)
-
includes/ListTables/Activations.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
digital-license-manager/trunk/digital-license-manager.php
r3315067 r3318616 4 4 * Plugin URI: https://codeverve.com/product/digital-license-manager-pro/ 5 5 * Description: Easily manage and sell your license keys on your website. Compatible with WooCommerce for selling licenses but also works without it. 6 * Version: 1.8. 16 * Version: 1.8.2 7 7 * Author: CodeVerve 8 8 * Author URI: https://codeverve.com/ … … 44 44 45 45 if ( ! defined( 'DLM_PLUGIN_VERSION' ) ) { 46 define( 'DLM_PLUGIN_VERSION', '1.8. 1' );46 define( 'DLM_PLUGIN_VERSION', '1.8.2' ); 47 47 } 48 48 if ( ! defined( 'DLM_PURCHASE_URL' ) ) { -
digital-license-manager/trunk/includes/Enums/LicensePublicStatus.php
r3311947 r3318616 94 94 $wrapper = isset( $args['inline'] ) && $args['inline'] ? 'inline' : 'full'; 95 95 96 if ( in_array( $license->getStatus(), [ LicensePrivateStatus::SOLD, LicensePrivateStatus::DELIVERED ] ) ) {96 if ( in_array( $license->getStatus(), [ LicensePrivateStatus::SOLD, LicensePrivateStatus::DELIVERED, LicensePrivateStatus::ACTIVE ] ) ) { 97 97 if ( $license->isExpired() ) { 98 98 $status = self::EXPIRED; -
digital-license-manager/trunk/includes/ListTables/Activations.php
r3311947 r3318616 105 105 private function getRecordsCount( $status = '' ) { 106 106 $query = $this->getRecordsQuery( $status ); 107 108 107 return LicenseActivations::instance()->count( $query['where'] ); 109 108 } … … 119 118 120 119 // Applies the view filter 121 if ( ! empty( $status ) || $this->isViewFilterActive() ) { 122 123 $status = empty( $status ) && ! empty( $_GET['status'] ) ? sanitize_text_field( wp_unslash( $_GET['status'] ) ) : ''; 124 125 if ( 'inactive' === $status ) { 120 if ( empty( $status ) && $this->isViewFilterActive() ) { 121 $status = isset( $_REQUEST['status'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['status'] ) ) : ''; 122 } 123 124 switch($status) { 125 case 'enabled': 126 $where['deactivated_at'] = [ 127 'operator' => "IS", 128 'value' => "NULL", 129 ]; 130 break; 131 case 'disabled': 126 132 $where['deactivated_at'] = [ 127 133 'operator' => "IS", 128 134 'value' => "NOT NULL", 129 135 ]; 130 } else {131 $where['deactivated_at'] = [132 'operator' => "IS",133 'value' => "NULL",134 ];135 }136 136 } 137 137 … … 316 316 $html = sprintf( 317 317 '<div class="dlm-status dlm-status-inactive"><span class="dashicons dashicons-marker"></span> %s</div>', 318 __( ' Inactive', 'digital-license-manager' )318 __( 'Disabled', 'digital-license-manager' ) 319 319 ); 320 320 } else { 321 321 $html = sprintf( 322 322 '<div class="dlm-status dlm-status-delivered"><span class="dashicons dashicons-marker"></span> %s</div>', 323 __( ' Active', 'digital-license-manager' )323 __( 'Enabled', 'digital-license-manager' ) 324 324 ); 325 325 } … … 451 451 private function isViewFilterActive() { 452 452 if ( array_key_exists( 'status', $_GET ) 453 && in_array( $_GET['status'], array( ' active', 'inactive' ) )453 && in_array( $_GET['status'], array( 'enabled', 'disabled' ) ) 454 454 ) { 455 455 return true; … … 469 469 $current = ! empty( $_REQUEST['status'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['status'] ) ) : 'all'; 470 470 471 $total_active = $this->getRecordsCount( 'active' ); 472 $total_inactive = $this->getRecordsCount( 'inactive' ); 471 $total_active = $this->getRecordsCount( 'enabled' ); 472 $total_inactive = $this->getRecordsCount( 'disabled' ); 473 473 474 474 475 // All link … … 483 484 ); 484 485 485 // Activelink486 $class = $current == ' active' ? ' class="current"' : '';487 $activeUrl = esc_url( add_query_arg( 'status', ' active' ) );488 $statusLinks[' active'] = sprintf(486 // Enabled link 487 $class = $current == 'enabled' ? ' class="current"' : ''; 488 $activeUrl = esc_url( add_query_arg( 'status', 'enabled' ) ); 489 $statusLinks['enabled'] = sprintf( 489 490 '<a href="%s" %s>%s <span class="count">(%d)</span></a>', 490 491 $activeUrl, 491 492 $class, 492 __( ' Active', 'digital-license-manager' ),493 __( 'Enabled', 'digital-license-manager' ), 493 494 $total_active 494 495 ); 495 496 496 // Inactivelink497 $class = $current == ' inactive' ? ' class="current"' : '';498 $inactiveUrl = esc_url( add_query_arg( 'status', ' inactive' ) );499 $statusLinks[' inactive'] = sprintf(497 // Disabled link 498 $class = $current == 'disabled' ? ' class="current"' : ''; 499 $inactiveUrl = esc_url( add_query_arg( 'status', 'disabled' ) ); 500 $statusLinks['disabled'] = sprintf( 500 501 '<a href="%s" %s>%s <span class="count">(%d)</span></a>', 501 502 $inactiveUrl, 502 503 $class, 503 __( ' Inactive', 'digital-license-manager' ),504 __( 'Disabled', 'digital-license-manager' ), 504 505 $total_inactive 505 506 ); … … 625 626 $this->processBulkActions(); 626 627 627 $perPage = $this->get_items_per_page( ' activations_per_page', 10 );628 $perPage = $this->get_items_per_page( 'dlm_activations_per_page', 10 ); 628 629 $currentPage = $this->get_pagenum(); 629 630 $totalItems = $this->getRecordsCount(); -
digital-license-manager/trunk/readme.txt
r3315067 r3318616 5 5 Requires PHP: 7.0 6 6 Tested up to: 6.8 7 Stable tag: 1.8. 17 Stable tag: 1.8.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 208 208 209 209 == Changelog == 210 211 212 = 1.8.2 = 213 *Release date - 27 Jun 2025* 214 215 * Fix Active license status showing as Inactive in My Account 216 * Fix count of License Activations in Activations table in Admin 217 * Fix License Activations table view filters 210 218 211 219 = 1.8.1 = -
digital-license-manager/trunk/vendor/composer/installed.php
r3315067 r3318616 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' df4ff9edac66d38ecd7951a6cf7da22cf60caa8f',6 'reference' => '8a625a0a8ed26f889d7632240683b379ba113eca', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => ' df4ff9edac66d38ecd7951a6cf7da22cf60caa8f',25 'reference' => '8a625a0a8ed26f889d7632240683b379ba113eca', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.