Changeset 3256055
- Timestamp:
- 03/14/2025 05:10:04 PM (10 months ago)
- Location:
- nhrrob-options-table-manager
- Files:
-
- 4 added
- 1 deleted
- 34 edited
- 1 copied
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.gif (deleted)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.png (added)
-
assets/screenshot-5.png (added)
-
assets/screenshot-6.gif (added)
-
tags/1.1.5 (copied) (copied from nhrrob-options-table-manager/trunk)
-
tags/1.1.5/assets/css/admin.css (modified) (2 diffs)
-
tags/1.1.5/assets/js/admin.js (modified) (16 diffs)
-
tags/1.1.5/composer.json (modified) (1 diff)
-
tags/1.1.5/includes/Admin/SettingsPage.php (modified) (1 diff)
-
tags/1.1.5/includes/Ajax.php (modified) (2 diffs)
-
tags/1.1.5/includes/Assets.php (modified) (1 diff)
-
tags/1.1.5/includes/Traits/GlobalTrait.php (modified) (1 diff)
-
tags/1.1.5/includes/views/admin/settings/index.php (modified) (3 diffs)
-
tags/1.1.5/nhrrob-options-table-manager.php (modified) (2 diffs)
-
tags/1.1.5/readme.txt (modified) (3 diffs)
-
tags/1.1.5/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.5/vendor/composer/autoload_files.php (modified) (1 diff)
-
tags/1.1.5/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/1.1.5/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.1.5/vendor/composer/installed.json (modified) (7 diffs)
-
tags/1.1.5/vendor/composer/installed.php (modified) (5 diffs)
-
trunk/assets/css/admin.css (modified) (2 diffs)
-
trunk/assets/js/admin.js (modified) (16 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/includes/Admin/SettingsPage.php (modified) (1 diff)
-
trunk/includes/Ajax.php (modified) (2 diffs)
-
trunk/includes/Assets.php (modified) (1 diff)
-
trunk/includes/Traits/GlobalTrait.php (modified) (1 diff)
-
trunk/includes/views/admin/settings/index.php (modified) (3 diffs)
-
trunk/nhrrob-options-table-manager.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_files.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (7 diffs)
-
trunk/vendor/composer/installed.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nhrrob-options-table-manager/tags/1.1.5/assets/css/admin.css
r3240675 r3256055 326 326 border: 1px solid #ccc; 327 327 background-color: #f1f1f1; 328 }328 } 329 329 330 .tab button {330 .tab button { 331 331 background-color: inherit; 332 332 float: left; … … 336 336 padding: 14px 16px; 337 337 transition: 0.3s; 338 } 338 } 339 340 .tab button:hover { 341 background-color: #ddd; 342 } 343 344 .tab button.active { 345 background-color: #ccc; 346 } 347 348 /* Usermeta Table */ 349 #nhrotm-data-table-usermeta_wrapper, 350 #nhrotm-data-table-better_payment_wrapper { 351 display: none; 352 } 353 354 /* Toast Notification */ 355 .nhrotm-toast { 356 position: fixed; 357 top: 50px; 358 right: 50px; 359 padding: 10px 20px !important; 360 border-radius: 4px !important; 361 color: white; 362 font-weight: 500; 363 z-index: 9999; 364 box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; 365 border: none !important; 366 display: none; 367 } 339 368 340 .tab button:hover{341 background-color: # ddd;342 }369 .nhrotm-toast.success { 370 background-color: #4CAF50; 371 } 343 372 344 .tab button.active { 345 background-color: #ccc; 346 } 347 348 /* Usermeta Table */ 349 #nhrotm-data-table-usermeta_wrapper, 350 #nhrotm-data-table-better_payment_wrapper { 351 display: none; 352 } 373 .nhrotm-toast.error { 374 background-color: #F44336; 375 } 376 377 .nhrotm-toast.warning { 378 background-color: #FF9800; 379 } -
nhrrob-options-table-manager/tags/1.1.5/assets/js/admin.js
r3254912 r3256055 5 5 let protectedOptions = nhrotmOptionsTableManager.protected_options; 6 6 let protectedUsermetas = nhrotmOptionsTableManager.protected_usermetas; 7 let isBetterPaymentInstalled = nhrotmOptionsTableManager.is_better_payment_installed; 7 8 8 9 function isProtected(optionName) { … … 12 13 function isProtectedMeta(metaKey) { 13 14 return protectedUsermetas.includes(metaKey); 15 } 16 17 // Toast notification system 18 function showToast(message, type = 'success') { 19 // Remove any existing toasts 20 $('.nhrotm-toast').remove(); 21 22 // Create toast element 23 const toast = $('<div class="nhrotm-toast ' + type + '">' + message + '</div>'); 24 $('body').append(toast); 25 26 // Show and then hide after 3 seconds 27 toast.fadeIn(300).delay(3000).fadeOut(300, function() { 28 $(this).remove(); 29 }); 14 30 } 15 31 … … 67 83 success: function(response) { 68 84 if (response.success) { 69 alert("Option added successfully!");85 showToast("Option added successfully!", "success"); 70 86 $('.nhrotm-add-option-modal').hide(); 71 87 $('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data 72 88 } else { 73 alert('Failed to add option: ' + response.data);89 showToast('Failed to add option: ' + response.data, "error"); 74 90 } 75 91 } … … 99 115 100 116 if (isProtected(row.option_name)) { 101 alert('This option is protected and cannot be edited.');117 showToast('This option is protected and cannot be edited.', "warning"); 102 118 return; 103 119 } … … 126 142 let message = response.data.message ?? 'Error: Failed to find option value'; 127 143 // $('.nhrotm-edit-option-value').val(option_value); 128 alert(message);144 showToast(message, "error"); 129 145 } 130 146 } … … 156 172 success: function(response) { 157 173 if (response.success) { 158 alert("Option updated successfully!");174 showToast("Option updated successfully!", "success"); 159 175 $('.nhrotm-edit-option-modal').hide(); 160 176 table.ajax.reload(null, false); // Reload table data 161 177 } else { 162 alert('Error: ' + response.data); 163 // alert("Failed to update option."); 178 showToast('Error: ' + response.data, "error"); 164 179 } 165 180 } … … 178 193 179 194 if (isProtected(optionName)) { 180 alert('This option is protected and cannot be deleted.');195 showToast('This option is protected and cannot be deleted.', "warning"); 181 196 return; 182 197 } … … 193 208 success: function(response) { 194 209 if (response.success) { 195 alert("Option deleted successfully!");210 showToast("Option deleted successfully!", "success"); 196 211 jQuery('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data 197 212 } else { 198 alert("Failed to delete option."); 199 // alert('Error: ' + response.data); 213 showToast("Failed to delete option.", "error"); 200 214 } 201 215 } … … 226 240 $('#nhrotm-usage-analytics-results').html(tableContent); 227 241 } else { 228 alert("Error: " + response.data); 229 } 230 } 231 }); 232 } 242 showToast("Error: " + response.data, "error"); 243 } 244 } 245 }); 246 } 247 248 let usermetaTableAdjusted = false; 249 let betterPaymentTableAdjusted = false; 233 250 234 251 // Toggle … … 249 266 $( '#nhrotm-data-table-usermeta_wrapper' ).fadeIn(); 250 267 $('.nhrotm-data-table-wrap .logged-user-id').fadeIn(); 268 269 if ( ! usermetaTableAdjusted ) { 270 $('#nhrotm-data-table-usermeta').DataTable().columns.adjust().draw(); 271 usermetaTableAdjusted = true; 272 } 251 273 } else if ( $(this).hasClass('better_payment-table') ) { 252 274 $( '#nhrotm-data-table-usermeta_wrapper' ).fadeOut(); … … 255 277 256 278 $('#nhrotm-data-table-better_payment_wrapper').fadeIn(); 279 280 if ( ! betterPaymentTableAdjusted ) { 281 $('#nhrotm-data-table-better_payment').DataTable().columns.adjust().draw(); 282 betterPaymentTableAdjusted = true; 283 } 257 284 } 258 285 }); … … 300 327 301 328 if (isProtectedMeta(row.meta_key)) { 302 alert('This meta is protected and cannot be edited.');329 showToast('This meta is protected and cannot be edited.', "warning"); 303 330 return; 304 331 } … … 322 349 success: function(response) { 323 350 if (response.success) { 324 alert("Meta updated successfully!");351 showToast("Meta updated successfully!", "success"); 325 352 $('.nhrotm-edit-usermeta-modal').hide(); 326 353 $('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data 327 354 } else { 328 alert('Error: ' + response.data); 329 // alert("Failed to update meta."); 355 showToast('Error: ' + response.data, "error"); 330 356 } 331 357 } … … 346 372 347 373 if (isProtected(metaKey)) { 348 alert('This meta is protected and cannot be deleted.');374 showToast('This meta is protected and cannot be deleted.', "warning"); 349 375 return; 350 376 } … … 362 388 success: function(response) { 363 389 if (response.success) { 364 alert("Meta deleted successfully!");390 showToast("Meta deleted successfully!", "success"); 365 391 jQuery('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data 366 392 } else { 367 // alert("Failed to delete meta."); 368 alert('Error: ' + response.data); 393 showToast('Error: ' + response.data, "error"); 369 394 } 370 395 } … … 374 399 375 400 // Better Payment Table 376 $('#nhrotm-data-table-better_payment').DataTable({ 377 "processing": true, 378 "serverSide": true, 379 "ajax": { 380 "type": "GET", 381 "url": nhrotmOptionsTableManager.ajaxUrl + "?action=nhrotm_better_payment_table_data&nonce="+nhrotmOptionsTableManager.nonce, 382 }, 383 "columns": [ 384 { "data": "id", 'visible': false }, 385 { "data": "transaction_id" }, 386 { "data": "email" }, 387 { "data": "amount" }, 388 { "data": "form_fields_info" }, 389 { "data": "source" }, 390 { "data": "status" }, 391 { "data": "payment_date" }, 392 ], 393 "searchDelay": 500, // Delay in milliseconds (0.5 seconds) 394 // "scrollY": "400px", // Fixed height 395 // "scrollCollapse": true, 396 // "paging": true, 397 // "order": [[0, 'asc']], // Default order on the first column in ascending 398 }); 401 if ( isBetterPaymentInstalled ) { 402 $('#nhrotm-data-table-better_payment').DataTable({ 403 "processing": true, 404 "serverSide": true, 405 "ajax": { 406 "type": "GET", 407 "url": nhrotmOptionsTableManager.ajaxUrl + "?action=nhrotm_better_payment_table_data&nonce="+nhrotmOptionsTableManager.nonce, 408 }, 409 "columns": [ 410 { "data": "id", 'visible': false }, 411 { "data": "transaction_id" }, 412 { "data": "email" }, 413 { "data": "amount" }, 414 { "data": "form_fields_info" }, 415 { "data": "source" }, 416 { "data": "status" }, 417 { "data": "payment_date" }, 418 ], 419 "searchDelay": 500, // Delay in milliseconds (0.5 seconds) 420 // "scrollY": "400px", // Fixed height 421 // "scrollCollapse": true, 422 // "paging": true, 423 // "order": [[0, 'asc']], // Default order on the first column in ascending 424 }); 425 } 399 426 400 427 }); -
nhrrob-options-table-manager/tags/1.1.5/composer.json
r3253999 r3256055 24 24 "phpunit/phpunit": "^9.6", 25 25 "10up/wp_mock": "dev-trunk" 26 }, 27 "scripts": { 28 "deploy": "composer install --no-dev && wp dist-archive . && composer install" 26 29 } 27 30 } -
nhrrob-options-table-manager/tags/1.1.5/includes/Admin/SettingsPage.php
r3113823 r3256055 27 27 $options = wp_load_alloptions(); 28 28 $protected_options = $this->get_protected_options(); 29 29 $is_better_payment_installed = $this->is_better_payment_installed(); 30 30 31 ob_start(); 31 32 include NHROTM_VIEWS_PATH . '/admin/settings/index.php'; -
nhrrob-options-table-manager/tags/1.1.5/includes/Ajax.php
r3254912 r3256055 316 316 // Wrap the option_value in the scrollable-cell div 317 317 foreach ($data as &$row) { 318 $is_protected = in_array($row['option_name'], $this->get_protected_options()); 319 $protected_attr = $is_protected ? sprintf('title="%s" disabled', esc_attr__('Protected', 'nhrrob-options-table-manager')) : ''; 320 318 321 $row['option_value'] = '<div class="scrollable-cell">' . esc_html($row['option_value']) . '</div>'; 319 $row['actions'] = '<button class="nhrotm-edit-button" data-id="' . esc_attr($row['option_id']) . '">Edit</button> 320 <button class="nhrotm-delete-button" data-id="' . esc_attr($row['option_id']) . '">Delete</button>'; 322 323 $row['actions'] = sprintf( 324 '<button class="nhrotm-edit-button" data-id="%s" %s>Edit</button> 325 <button class="nhrotm-delete-button" data-id="%s" %s>Delete</button>', 326 esc_attr($row['option_id']), 327 $protected_attr, 328 esc_attr($row['option_id']), 329 $protected_attr, 330 ); 321 331 } 322 332 … … 938 948 // Format output 939 949 foreach ($data as &$row) { 950 $is_protected = in_array($row['meta_key'], $this->get_protected_usermetas()); 951 $protected_attr = $is_protected ? sprintf('title="%s" disabled', esc_attr__('Protected', 'nhrrob-options-table-manager')) : ''; 952 940 953 // phpcs:ignore:WordPress.DB.SlowDBQuery.slow_db_query_meta_value 941 954 $row['meta_value'] = '<div class="scrollable-cell">' . esc_html($row['meta_value']) . '</div>'; 942 955 $row['actions'] = sprintf( 943 '<button class="nhrotm-edit-button-usermeta" data-id="%1$s">Edit</button> ' . 944 '<button class="nhrotm-delete-button-usermeta" data-id="%1$s">Delete</button>', 945 esc_attr($row['umeta_id']) 956 '<button class="nhrotm-edit-button-usermeta" data-id="%s" %s>Edit</button> 957 <button class="nhrotm-delete-button-usermeta" data-id="%s" %s>Delete</button>', 958 esc_attr($row['umeta_id']), 959 $protected_attr, 960 esc_attr($row['umeta_id']), 961 $protected_attr, 946 962 ); 947 963 } -
nhrrob-options-table-manager/tags/1.1.5/includes/Assets.php
r3179599 r3256055 84 84 'error' => __( 'Something went wrong', 'nhrrob-options-table-manager' ), 85 85 'protected_options' => $this->get_protected_options(), 86 'protected_usermetas' => $this->get_protected_usermetas() 86 'protected_usermetas' => $this->get_protected_usermetas(), 87 'is_better_payment_installed' => $this->is_better_payment_installed(), 87 88 ] ); 88 89 } -
nhrrob-options-table-manager/tags/1.1.5/includes/Traits/GlobalTrait.php
r3253999 r3256055 337 337 } 338 338 339 public function is_better_payment_installed() { 340 return class_exists('\Better_Payment'); 341 } 342 339 343 // 340 344 -
nhrrob-options-table-manager/tags/1.1.5/includes/views/admin/settings/index.php
r3240675 r3256055 13 13 <button class="tablinks active options-table"><?php esc_html_e('Options Table', 'nhrrob-options-table-manager'); ?></button> 14 14 <button class="tablinks usermeta-table"><?php esc_html_e('Usermeta Table', 'nhrrob-options-table-manager'); ?></button> 15 16 <?php if ( $is_better_payment_installed ) : ?> 15 17 <button class="tablinks better_payment-table"><?php esc_html_e('Better Payment Table', 'nhrrob-options-table-manager'); ?></button> 18 <?php endif; ?> 16 19 </div> 17 20 … … 50 53 </table> 51 54 55 <?php if ( $is_better_payment_installed ) : ?> 52 56 <table id="nhrotm-data-table-better_payment" class="nhrotm-data-table wp-list-table widefat fixed striped"> 53 57 <thead> … … 68 72 </tbody> 69 73 </table> 74 <?php endif; ?> 70 75 </div> 71 76 -
nhrrob-options-table-manager/tags/1.1.5/nhrrob-options-table-manager.php
r3254912 r3256055 6 6 * Author: Nazmul Hasan Robin 7 7 * Author URI: https://profiles.wordpress.org/nhrrob/ 8 * Version: 1.1. 48 * Version: 1.1.5 9 9 * Requires at least: 6.0 10 10 * Requires PHP: 7.4 … … 28 28 * @var string 29 29 */ 30 const nhrotm_version = '1.1. 4';30 const nhrotm_version = '1.1.5'; 31 31 32 32 /** -
nhrrob-options-table-manager/tags/1.1.5/readme.txt
r3254912 r3256055 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 47 Stable tag: 1.1.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 14 14 - 🚀 [GitHub Repository](https://github.com/nhrrob/nhrrob-options-table-manager): Found a bug or have a feature request? Let us know! 15 15 - 💬 [Slack Community](https://join.slack.com/t/nhrrob/shared_invite/zt-2m3nyrl1f-eKv7wwJzsiALcg0nY6~e0Q): Got questions or just want to chat? Come hang out with us on Slack! 16 17 https://www.youtube.com/watch?v=le89m1qfb0U 16 18 17 19 Are you fed up with the size of wp otions table? You are not alone! … … 70 72 71 73 1. DataTable view of the wp_options table 72 2. Analytics on plugin usage by prefixes 73 3. Plugin features at a glance 74 2. Add option modal screen 75 3. Options table search view 76 4. Edit option modal for serialized data 77 5. Options table usage analytics 78 6. Plugin features at a glance 74 79 75 80 76 81 == Changelog == 82 83 = 1.1.5 - 14/03/2025 = 84 - Added: Protected option and usermeta now having tooltip on edit and delete button 85 - Added: Class exists check for Better Payment table 86 - Added: Toast notification added replacing alert messages 87 - Fixed: Fatal error due to PHPUnit vendor file missing 88 - Fixed: Usermeta table pagination issue 89 - Few minor bug fixing & improvements 77 90 78 91 = 1.1.4 - 12/03/2025 = -
nhrrob-options-table-manager/tags/1.1.5/vendor/autoload.php
r3107726 r3256055 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec409::getLoader();7 return ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getLoader(); -
nhrrob-options-table-manager/tags/1.1.5/vendor/composer/autoload_files.php
r3253999 r3256055 8 8 return array( 9 9 'ec07570ca5a812141189b1fa81503674' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert/Functions.php', 10 '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', 10 11 'c72349b1fe8d0deeedd3a52e8aa814d8' => $vendorDir . '/mockery/mockery/library/helpers.php', 11 12 'ce9671a430e4846b44e1c68c7611f9f5' => $vendorDir . '/mockery/mockery/library/Mockery.php', 12 '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',13 13 ); -
nhrrob-options-table-manager/tags/1.1.5/vendor/composer/autoload_real.php
r3253999 r3256055 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec4095 class ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file);59 composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire 9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file)71 function composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
nhrrob-options-table-manager/tags/1.1.5/vendor/composer/autoload_static.php
r3253999 r3256055 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec4097 class ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6 8 8 { 9 9 public static $files = array ( 10 10 'ec07570ca5a812141189b1fa81503674' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert/Functions.php', 11 '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', 11 12 'c72349b1fe8d0deeedd3a52e8aa814d8' => __DIR__ . '/..' . '/mockery/mockery/library/helpers.php', 12 13 'ce9671a430e4846b44e1c68c7611f9f5' => __DIR__ . '/..' . '/mockery/mockery/library/Mockery.php', 13 '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',14 14 ); 15 15 … … 775 775 { 776 776 return \Closure::bind(function () use ($loader) { 777 $loader->prefixLengthsPsr4 = ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$prefixLengthsPsr4;778 $loader->prefixDirsPsr4 = ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$prefixDirsPsr4;779 $loader->classMap = ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$classMap;777 $loader->prefixLengthsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixLengthsPsr4; 778 $loader->prefixDirsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixDirsPsr4; 779 $loader->classMap = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$classMap; 780 780 781 781 }, null, ClassLoader::class); -
nhrrob-options-table-manager/tags/1.1.5/vendor/composer/installed.json
r3253999 r3256055 8 8 "type": "git", 9 9 "url": "https://github.com/10up/wp_mock.git", 10 "reference": " 010d556e0482e4d94776a5b0641429dca00333e4"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/10up/wp_mock/zipball/ 010d556e0482e4d94776a5b0641429dca00333e4",15 "reference": " 010d556e0482e4d94776a5b0641429dca00333e4",10 "reference": "f25b5895ed31bf5e7036fe0c666664364ae011c2" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/10up/wp_mock/zipball/f25b5895ed31bf5e7036fe0c666664364ae011c2", 15 "reference": "f25b5895ed31bf5e7036fe0c666664364ae011c2", 16 16 "shasum": "" 17 17 }, … … 36 36 "sempro/phpunit-pretty-print": "^1.4" 37 37 }, 38 "time": "202 4-08-08T04:41:18+00:00",38 "time": "2025-03-12T00:36:13+00:00", 39 39 "default-branch": true, 40 40 "type": "library", … … 55 55 "support": { 56 56 "issues": "https://github.com/10up/wp_mock/issues", 57 "source": "https://github.com/10up/wp_mock/tree/ trunk"57 "source": "https://github.com/10up/wp_mock/tree/1.1.0" 58 58 }, 59 59 "install-path": "../10up/wp_mock" … … 117 117 "type": "git", 118 118 "url": "https://github.com/doctrine/instantiator.git", 119 "reference": " 8ec66b1425f6506905f6880a8c7cd85ba8537b00"120 }, 121 "dist": { 122 "type": "zip", 123 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ 8ec66b1425f6506905f6880a8c7cd85ba8537b00",124 "reference": " 8ec66b1425f6506905f6880a8c7cd85ba8537b00",119 "reference": "32877dd24a4a2b324698e07b2d3285fb44e627c6" 120 }, 121 "dist": { 122 "type": "zip", 123 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/32877dd24a4a2b324698e07b2d3285fb44e627c6", 124 "reference": "32877dd24a4a2b324698e07b2d3285fb44e627c6", 125 125 "shasum": "" 126 126 }, … … 137 137 "phpunit/phpunit": "^10.5" 138 138 }, 139 "time": "2025-0 2-11T07:45:10+00:00",139 "time": "2025-03-10T23:43:28+00:00", 140 140 "default-branch": true, 141 141 "type": "library", … … 914 914 "type": "git", 915 915 "url": "https://github.com/sebastianbergmann/phpunit.git", 916 "reference": " 7fcb3793ca4cf63ad51605747e52b32ad788f61c"917 }, 918 "dist": { 919 "type": "zip", 920 "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ 7fcb3793ca4cf63ad51605747e52b32ad788f61c",921 "reference": " 7fcb3793ca4cf63ad51605747e52b32ad788f61c",916 "reference": "0ba51826060145c283f852646230783151b3ff34" 917 }, 918 "dist": { 919 "type": "zip", 920 "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0ba51826060145c283f852646230783151b3ff34", 921 "reference": "0ba51826060145c283f852646230783151b3ff34", 922 922 "shasum": "" 923 923 }, … … 955 955 "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" 956 956 }, 957 "time": "2025-03- 04T12:16:09+00:00",957 "time": "2025-03-13T14:02:12+00:00", 958 958 "bin": [ 959 959 "phpunit" -
nhrrob-options-table-manager/tags/1.1.5/vendor/composer/installed.php
r3253999 r3256055 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' c2ad281e3302296e3134794153bde4b90fec7f49',8 'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1', 9 9 'name' => 'nhrotm/options-table-manager', 10 10 'dev' => true, … … 19 19 0 => '9999999-dev', 20 20 ), 21 'reference' => ' 010d556e0482e4d94776a5b0641429dca00333e4',21 'reference' => 'f25b5895ed31bf5e7036fe0c666664364ae011c2', 22 22 'dev_requirement' => true, 23 23 ), … … 49 49 'install_path' => __DIR__ . '/../doctrine/instantiator', 50 50 'aliases' => array(), 51 'reference' => ' 8ec66b1425f6506905f6880a8c7cd85ba8537b00',51 'reference' => '32877dd24a4a2b324698e07b2d3285fb44e627c6', 52 52 'dev_requirement' => true, 53 53 ), … … 93 93 'install_path' => __DIR__ . '/../../', 94 94 'aliases' => array(), 95 'reference' => ' c2ad281e3302296e3134794153bde4b90fec7f49',95 'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1', 96 96 'dev_requirement' => false, 97 97 ), … … 176 176 'install_path' => __DIR__ . '/../phpunit/phpunit', 177 177 'aliases' => array(), 178 'reference' => ' 7fcb3793ca4cf63ad51605747e52b32ad788f61c',178 'reference' => '0ba51826060145c283f852646230783151b3ff34', 179 179 'dev_requirement' => true, 180 180 ), -
nhrrob-options-table-manager/trunk/assets/css/admin.css
r3240675 r3256055 326 326 border: 1px solid #ccc; 327 327 background-color: #f1f1f1; 328 }328 } 329 329 330 .tab button {330 .tab button { 331 331 background-color: inherit; 332 332 float: left; … … 336 336 padding: 14px 16px; 337 337 transition: 0.3s; 338 } 338 } 339 340 .tab button:hover { 341 background-color: #ddd; 342 } 343 344 .tab button.active { 345 background-color: #ccc; 346 } 347 348 /* Usermeta Table */ 349 #nhrotm-data-table-usermeta_wrapper, 350 #nhrotm-data-table-better_payment_wrapper { 351 display: none; 352 } 353 354 /* Toast Notification */ 355 .nhrotm-toast { 356 position: fixed; 357 top: 50px; 358 right: 50px; 359 padding: 10px 20px !important; 360 border-radius: 4px !important; 361 color: white; 362 font-weight: 500; 363 z-index: 9999; 364 box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; 365 border: none !important; 366 display: none; 367 } 339 368 340 .tab button:hover{341 background-color: # ddd;342 }369 .nhrotm-toast.success { 370 background-color: #4CAF50; 371 } 343 372 344 .tab button.active { 345 background-color: #ccc; 346 } 347 348 /* Usermeta Table */ 349 #nhrotm-data-table-usermeta_wrapper, 350 #nhrotm-data-table-better_payment_wrapper { 351 display: none; 352 } 373 .nhrotm-toast.error { 374 background-color: #F44336; 375 } 376 377 .nhrotm-toast.warning { 378 background-color: #FF9800; 379 } -
nhrrob-options-table-manager/trunk/assets/js/admin.js
r3254912 r3256055 5 5 let protectedOptions = nhrotmOptionsTableManager.protected_options; 6 6 let protectedUsermetas = nhrotmOptionsTableManager.protected_usermetas; 7 let isBetterPaymentInstalled = nhrotmOptionsTableManager.is_better_payment_installed; 7 8 8 9 function isProtected(optionName) { … … 12 13 function isProtectedMeta(metaKey) { 13 14 return protectedUsermetas.includes(metaKey); 15 } 16 17 // Toast notification system 18 function showToast(message, type = 'success') { 19 // Remove any existing toasts 20 $('.nhrotm-toast').remove(); 21 22 // Create toast element 23 const toast = $('<div class="nhrotm-toast ' + type + '">' + message + '</div>'); 24 $('body').append(toast); 25 26 // Show and then hide after 3 seconds 27 toast.fadeIn(300).delay(3000).fadeOut(300, function() { 28 $(this).remove(); 29 }); 14 30 } 15 31 … … 67 83 success: function(response) { 68 84 if (response.success) { 69 alert("Option added successfully!");85 showToast("Option added successfully!", "success"); 70 86 $('.nhrotm-add-option-modal').hide(); 71 87 $('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data 72 88 } else { 73 alert('Failed to add option: ' + response.data);89 showToast('Failed to add option: ' + response.data, "error"); 74 90 } 75 91 } … … 99 115 100 116 if (isProtected(row.option_name)) { 101 alert('This option is protected and cannot be edited.');117 showToast('This option is protected and cannot be edited.', "warning"); 102 118 return; 103 119 } … … 126 142 let message = response.data.message ?? 'Error: Failed to find option value'; 127 143 // $('.nhrotm-edit-option-value').val(option_value); 128 alert(message);144 showToast(message, "error"); 129 145 } 130 146 } … … 156 172 success: function(response) { 157 173 if (response.success) { 158 alert("Option updated successfully!");174 showToast("Option updated successfully!", "success"); 159 175 $('.nhrotm-edit-option-modal').hide(); 160 176 table.ajax.reload(null, false); // Reload table data 161 177 } else { 162 alert('Error: ' + response.data); 163 // alert("Failed to update option."); 178 showToast('Error: ' + response.data, "error"); 164 179 } 165 180 } … … 178 193 179 194 if (isProtected(optionName)) { 180 alert('This option is protected and cannot be deleted.');195 showToast('This option is protected and cannot be deleted.', "warning"); 181 196 return; 182 197 } … … 193 208 success: function(response) { 194 209 if (response.success) { 195 alert("Option deleted successfully!");210 showToast("Option deleted successfully!", "success"); 196 211 jQuery('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data 197 212 } else { 198 alert("Failed to delete option."); 199 // alert('Error: ' + response.data); 213 showToast("Failed to delete option.", "error"); 200 214 } 201 215 } … … 226 240 $('#nhrotm-usage-analytics-results').html(tableContent); 227 241 } else { 228 alert("Error: " + response.data); 229 } 230 } 231 }); 232 } 242 showToast("Error: " + response.data, "error"); 243 } 244 } 245 }); 246 } 247 248 let usermetaTableAdjusted = false; 249 let betterPaymentTableAdjusted = false; 233 250 234 251 // Toggle … … 249 266 $( '#nhrotm-data-table-usermeta_wrapper' ).fadeIn(); 250 267 $('.nhrotm-data-table-wrap .logged-user-id').fadeIn(); 268 269 if ( ! usermetaTableAdjusted ) { 270 $('#nhrotm-data-table-usermeta').DataTable().columns.adjust().draw(); 271 usermetaTableAdjusted = true; 272 } 251 273 } else if ( $(this).hasClass('better_payment-table') ) { 252 274 $( '#nhrotm-data-table-usermeta_wrapper' ).fadeOut(); … … 255 277 256 278 $('#nhrotm-data-table-better_payment_wrapper').fadeIn(); 279 280 if ( ! betterPaymentTableAdjusted ) { 281 $('#nhrotm-data-table-better_payment').DataTable().columns.adjust().draw(); 282 betterPaymentTableAdjusted = true; 283 } 257 284 } 258 285 }); … … 300 327 301 328 if (isProtectedMeta(row.meta_key)) { 302 alert('This meta is protected and cannot be edited.');329 showToast('This meta is protected and cannot be edited.', "warning"); 303 330 return; 304 331 } … … 322 349 success: function(response) { 323 350 if (response.success) { 324 alert("Meta updated successfully!");351 showToast("Meta updated successfully!", "success"); 325 352 $('.nhrotm-edit-usermeta-modal').hide(); 326 353 $('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data 327 354 } else { 328 alert('Error: ' + response.data); 329 // alert("Failed to update meta."); 355 showToast('Error: ' + response.data, "error"); 330 356 } 331 357 } … … 346 372 347 373 if (isProtected(metaKey)) { 348 alert('This meta is protected and cannot be deleted.');374 showToast('This meta is protected and cannot be deleted.', "warning"); 349 375 return; 350 376 } … … 362 388 success: function(response) { 363 389 if (response.success) { 364 alert("Meta deleted successfully!");390 showToast("Meta deleted successfully!", "success"); 365 391 jQuery('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data 366 392 } else { 367 // alert("Failed to delete meta."); 368 alert('Error: ' + response.data); 393 showToast('Error: ' + response.data, "error"); 369 394 } 370 395 } … … 374 399 375 400 // Better Payment Table 376 $('#nhrotm-data-table-better_payment').DataTable({ 377 "processing": true, 378 "serverSide": true, 379 "ajax": { 380 "type": "GET", 381 "url": nhrotmOptionsTableManager.ajaxUrl + "?action=nhrotm_better_payment_table_data&nonce="+nhrotmOptionsTableManager.nonce, 382 }, 383 "columns": [ 384 { "data": "id", 'visible': false }, 385 { "data": "transaction_id" }, 386 { "data": "email" }, 387 { "data": "amount" }, 388 { "data": "form_fields_info" }, 389 { "data": "source" }, 390 { "data": "status" }, 391 { "data": "payment_date" }, 392 ], 393 "searchDelay": 500, // Delay in milliseconds (0.5 seconds) 394 // "scrollY": "400px", // Fixed height 395 // "scrollCollapse": true, 396 // "paging": true, 397 // "order": [[0, 'asc']], // Default order on the first column in ascending 398 }); 401 if ( isBetterPaymentInstalled ) { 402 $('#nhrotm-data-table-better_payment').DataTable({ 403 "processing": true, 404 "serverSide": true, 405 "ajax": { 406 "type": "GET", 407 "url": nhrotmOptionsTableManager.ajaxUrl + "?action=nhrotm_better_payment_table_data&nonce="+nhrotmOptionsTableManager.nonce, 408 }, 409 "columns": [ 410 { "data": "id", 'visible': false }, 411 { "data": "transaction_id" }, 412 { "data": "email" }, 413 { "data": "amount" }, 414 { "data": "form_fields_info" }, 415 { "data": "source" }, 416 { "data": "status" }, 417 { "data": "payment_date" }, 418 ], 419 "searchDelay": 500, // Delay in milliseconds (0.5 seconds) 420 // "scrollY": "400px", // Fixed height 421 // "scrollCollapse": true, 422 // "paging": true, 423 // "order": [[0, 'asc']], // Default order on the first column in ascending 424 }); 425 } 399 426 400 427 }); -
nhrrob-options-table-manager/trunk/composer.json
r3253999 r3256055 24 24 "phpunit/phpunit": "^9.6", 25 25 "10up/wp_mock": "dev-trunk" 26 }, 27 "scripts": { 28 "deploy": "composer install --no-dev && wp dist-archive . && composer install" 26 29 } 27 30 } -
nhrrob-options-table-manager/trunk/includes/Admin/SettingsPage.php
r3113823 r3256055 27 27 $options = wp_load_alloptions(); 28 28 $protected_options = $this->get_protected_options(); 29 29 $is_better_payment_installed = $this->is_better_payment_installed(); 30 30 31 ob_start(); 31 32 include NHROTM_VIEWS_PATH . '/admin/settings/index.php'; -
nhrrob-options-table-manager/trunk/includes/Ajax.php
r3254912 r3256055 316 316 // Wrap the option_value in the scrollable-cell div 317 317 foreach ($data as &$row) { 318 $is_protected = in_array($row['option_name'], $this->get_protected_options()); 319 $protected_attr = $is_protected ? sprintf('title="%s" disabled', esc_attr__('Protected', 'nhrrob-options-table-manager')) : ''; 320 318 321 $row['option_value'] = '<div class="scrollable-cell">' . esc_html($row['option_value']) . '</div>'; 319 $row['actions'] = '<button class="nhrotm-edit-button" data-id="' . esc_attr($row['option_id']) . '">Edit</button> 320 <button class="nhrotm-delete-button" data-id="' . esc_attr($row['option_id']) . '">Delete</button>'; 322 323 $row['actions'] = sprintf( 324 '<button class="nhrotm-edit-button" data-id="%s" %s>Edit</button> 325 <button class="nhrotm-delete-button" data-id="%s" %s>Delete</button>', 326 esc_attr($row['option_id']), 327 $protected_attr, 328 esc_attr($row['option_id']), 329 $protected_attr, 330 ); 321 331 } 322 332 … … 938 948 // Format output 939 949 foreach ($data as &$row) { 950 $is_protected = in_array($row['meta_key'], $this->get_protected_usermetas()); 951 $protected_attr = $is_protected ? sprintf('title="%s" disabled', esc_attr__('Protected', 'nhrrob-options-table-manager')) : ''; 952 940 953 // phpcs:ignore:WordPress.DB.SlowDBQuery.slow_db_query_meta_value 941 954 $row['meta_value'] = '<div class="scrollable-cell">' . esc_html($row['meta_value']) . '</div>'; 942 955 $row['actions'] = sprintf( 943 '<button class="nhrotm-edit-button-usermeta" data-id="%1$s">Edit</button> ' . 944 '<button class="nhrotm-delete-button-usermeta" data-id="%1$s">Delete</button>', 945 esc_attr($row['umeta_id']) 956 '<button class="nhrotm-edit-button-usermeta" data-id="%s" %s>Edit</button> 957 <button class="nhrotm-delete-button-usermeta" data-id="%s" %s>Delete</button>', 958 esc_attr($row['umeta_id']), 959 $protected_attr, 960 esc_attr($row['umeta_id']), 961 $protected_attr, 946 962 ); 947 963 } -
nhrrob-options-table-manager/trunk/includes/Assets.php
r3179599 r3256055 84 84 'error' => __( 'Something went wrong', 'nhrrob-options-table-manager' ), 85 85 'protected_options' => $this->get_protected_options(), 86 'protected_usermetas' => $this->get_protected_usermetas() 86 'protected_usermetas' => $this->get_protected_usermetas(), 87 'is_better_payment_installed' => $this->is_better_payment_installed(), 87 88 ] ); 88 89 } -
nhrrob-options-table-manager/trunk/includes/Traits/GlobalTrait.php
r3253999 r3256055 337 337 } 338 338 339 public function is_better_payment_installed() { 340 return class_exists('\Better_Payment'); 341 } 342 339 343 // 340 344 -
nhrrob-options-table-manager/trunk/includes/views/admin/settings/index.php
r3240675 r3256055 13 13 <button class="tablinks active options-table"><?php esc_html_e('Options Table', 'nhrrob-options-table-manager'); ?></button> 14 14 <button class="tablinks usermeta-table"><?php esc_html_e('Usermeta Table', 'nhrrob-options-table-manager'); ?></button> 15 16 <?php if ( $is_better_payment_installed ) : ?> 15 17 <button class="tablinks better_payment-table"><?php esc_html_e('Better Payment Table', 'nhrrob-options-table-manager'); ?></button> 18 <?php endif; ?> 16 19 </div> 17 20 … … 50 53 </table> 51 54 55 <?php if ( $is_better_payment_installed ) : ?> 52 56 <table id="nhrotm-data-table-better_payment" class="nhrotm-data-table wp-list-table widefat fixed striped"> 53 57 <thead> … … 68 72 </tbody> 69 73 </table> 74 <?php endif; ?> 70 75 </div> 71 76 -
nhrrob-options-table-manager/trunk/nhrrob-options-table-manager.php
r3254912 r3256055 6 6 * Author: Nazmul Hasan Robin 7 7 * Author URI: https://profiles.wordpress.org/nhrrob/ 8 * Version: 1.1. 48 * Version: 1.1.5 9 9 * Requires at least: 6.0 10 10 * Requires PHP: 7.4 … … 28 28 * @var string 29 29 */ 30 const nhrotm_version = '1.1. 4';30 const nhrotm_version = '1.1.5'; 31 31 32 32 /** -
nhrrob-options-table-manager/trunk/readme.txt
r3254912 r3256055 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 47 Stable tag: 1.1.5 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 14 14 - 🚀 [GitHub Repository](https://github.com/nhrrob/nhrrob-options-table-manager): Found a bug or have a feature request? Let us know! 15 15 - 💬 [Slack Community](https://join.slack.com/t/nhrrob/shared_invite/zt-2m3nyrl1f-eKv7wwJzsiALcg0nY6~e0Q): Got questions or just want to chat? Come hang out with us on Slack! 16 17 https://www.youtube.com/watch?v=le89m1qfb0U 16 18 17 19 Are you fed up with the size of wp otions table? You are not alone! … … 70 72 71 73 1. DataTable view of the wp_options table 72 2. Analytics on plugin usage by prefixes 73 3. Plugin features at a glance 74 2. Add option modal screen 75 3. Options table search view 76 4. Edit option modal for serialized data 77 5. Options table usage analytics 78 6. Plugin features at a glance 74 79 75 80 76 81 == Changelog == 82 83 = 1.1.5 - 14/03/2025 = 84 - Added: Protected option and usermeta now having tooltip on edit and delete button 85 - Added: Class exists check for Better Payment table 86 - Added: Toast notification added replacing alert messages 87 - Fixed: Fatal error due to PHPUnit vendor file missing 88 - Fixed: Usermeta table pagination issue 89 - Few minor bug fixing & improvements 77 90 78 91 = 1.1.4 - 12/03/2025 = -
nhrrob-options-table-manager/trunk/vendor/autoload.php
r3107726 r3256055 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec409::getLoader();7 return ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getLoader(); -
nhrrob-options-table-manager/trunk/vendor/composer/autoload_files.php
r3253999 r3256055 8 8 return array( 9 9 'ec07570ca5a812141189b1fa81503674' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert/Functions.php', 10 '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', 10 11 'c72349b1fe8d0deeedd3a52e8aa814d8' => $vendorDir . '/mockery/mockery/library/helpers.php', 11 12 'ce9671a430e4846b44e1c68c7611f9f5' => $vendorDir . '/mockery/mockery/library/Mockery.php', 12 '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',13 13 ); -
nhrrob-options-table-manager/trunk/vendor/composer/autoload_real.php
r3253999 r3256055 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec4095 class ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file);59 composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire 9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file)71 function composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
nhrrob-options-table-manager/trunk/vendor/composer/autoload_static.php
r3253999 r3256055 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec4097 class ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6 8 8 { 9 9 public static $files = array ( 10 10 'ec07570ca5a812141189b1fa81503674' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert/Functions.php', 11 '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', 11 12 'c72349b1fe8d0deeedd3a52e8aa814d8' => __DIR__ . '/..' . '/mockery/mockery/library/helpers.php', 12 13 'ce9671a430e4846b44e1c68c7611f9f5' => __DIR__ . '/..' . '/mockery/mockery/library/Mockery.php', 13 '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',14 14 ); 15 15 … … 775 775 { 776 776 return \Closure::bind(function () use ($loader) { 777 $loader->prefixLengthsPsr4 = ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$prefixLengthsPsr4;778 $loader->prefixDirsPsr4 = ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$prefixDirsPsr4;779 $loader->classMap = ComposerStaticInit 9da0bb700250b4b33b32a0a2bf7ec409::$classMap;777 $loader->prefixLengthsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixLengthsPsr4; 778 $loader->prefixDirsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixDirsPsr4; 779 $loader->classMap = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$classMap; 780 780 781 781 }, null, ClassLoader::class); -
nhrrob-options-table-manager/trunk/vendor/composer/installed.json
r3253999 r3256055 8 8 "type": "git", 9 9 "url": "https://github.com/10up/wp_mock.git", 10 "reference": " 010d556e0482e4d94776a5b0641429dca00333e4"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/10up/wp_mock/zipball/ 010d556e0482e4d94776a5b0641429dca00333e4",15 "reference": " 010d556e0482e4d94776a5b0641429dca00333e4",10 "reference": "f25b5895ed31bf5e7036fe0c666664364ae011c2" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/10up/wp_mock/zipball/f25b5895ed31bf5e7036fe0c666664364ae011c2", 15 "reference": "f25b5895ed31bf5e7036fe0c666664364ae011c2", 16 16 "shasum": "" 17 17 }, … … 36 36 "sempro/phpunit-pretty-print": "^1.4" 37 37 }, 38 "time": "202 4-08-08T04:41:18+00:00",38 "time": "2025-03-12T00:36:13+00:00", 39 39 "default-branch": true, 40 40 "type": "library", … … 55 55 "support": { 56 56 "issues": "https://github.com/10up/wp_mock/issues", 57 "source": "https://github.com/10up/wp_mock/tree/ trunk"57 "source": "https://github.com/10up/wp_mock/tree/1.1.0" 58 58 }, 59 59 "install-path": "../10up/wp_mock" … … 117 117 "type": "git", 118 118 "url": "https://github.com/doctrine/instantiator.git", 119 "reference": " 8ec66b1425f6506905f6880a8c7cd85ba8537b00"120 }, 121 "dist": { 122 "type": "zip", 123 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ 8ec66b1425f6506905f6880a8c7cd85ba8537b00",124 "reference": " 8ec66b1425f6506905f6880a8c7cd85ba8537b00",119 "reference": "32877dd24a4a2b324698e07b2d3285fb44e627c6" 120 }, 121 "dist": { 122 "type": "zip", 123 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/32877dd24a4a2b324698e07b2d3285fb44e627c6", 124 "reference": "32877dd24a4a2b324698e07b2d3285fb44e627c6", 125 125 "shasum": "" 126 126 }, … … 137 137 "phpunit/phpunit": "^10.5" 138 138 }, 139 "time": "2025-0 2-11T07:45:10+00:00",139 "time": "2025-03-10T23:43:28+00:00", 140 140 "default-branch": true, 141 141 "type": "library", … … 914 914 "type": "git", 915 915 "url": "https://github.com/sebastianbergmann/phpunit.git", 916 "reference": " 7fcb3793ca4cf63ad51605747e52b32ad788f61c"917 }, 918 "dist": { 919 "type": "zip", 920 "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ 7fcb3793ca4cf63ad51605747e52b32ad788f61c",921 "reference": " 7fcb3793ca4cf63ad51605747e52b32ad788f61c",916 "reference": "0ba51826060145c283f852646230783151b3ff34" 917 }, 918 "dist": { 919 "type": "zip", 920 "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0ba51826060145c283f852646230783151b3ff34", 921 "reference": "0ba51826060145c283f852646230783151b3ff34", 922 922 "shasum": "" 923 923 }, … … 955 955 "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" 956 956 }, 957 "time": "2025-03- 04T12:16:09+00:00",957 "time": "2025-03-13T14:02:12+00:00", 958 958 "bin": [ 959 959 "phpunit" -
nhrrob-options-table-manager/trunk/vendor/composer/installed.php
r3253999 r3256055 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' c2ad281e3302296e3134794153bde4b90fec7f49',8 'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1', 9 9 'name' => 'nhrotm/options-table-manager', 10 10 'dev' => true, … … 19 19 0 => '9999999-dev', 20 20 ), 21 'reference' => ' 010d556e0482e4d94776a5b0641429dca00333e4',21 'reference' => 'f25b5895ed31bf5e7036fe0c666664364ae011c2', 22 22 'dev_requirement' => true, 23 23 ), … … 49 49 'install_path' => __DIR__ . '/../doctrine/instantiator', 50 50 'aliases' => array(), 51 'reference' => ' 8ec66b1425f6506905f6880a8c7cd85ba8537b00',51 'reference' => '32877dd24a4a2b324698e07b2d3285fb44e627c6', 52 52 'dev_requirement' => true, 53 53 ), … … 93 93 'install_path' => __DIR__ . '/../../', 94 94 'aliases' => array(), 95 'reference' => ' c2ad281e3302296e3134794153bde4b90fec7f49',95 'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1', 96 96 'dev_requirement' => false, 97 97 ), … … 176 176 'install_path' => __DIR__ . '/../phpunit/phpunit', 177 177 'aliases' => array(), 178 'reference' => ' 7fcb3793ca4cf63ad51605747e52b32ad788f61c',178 'reference' => '0ba51826060145c283f852646230783151b3ff34', 179 179 'dev_requirement' => true, 180 180 ),
Note: See TracChangeset
for help on using the changeset viewer.