💥 TRENDING: Changeset/ - High Quality

Changeset 3256055


Ignore:
Timestamp:
03/14/2025 05:10:04 PM (10 months ago)
Author:
nhrrob
Message:

Update to version 1.1.5 from GitHub

Location:
nhrrob-options-table-manager
Files:
4 added
1 deleted
34 edited
1 copied

Legend:

Unmodified
Added
Removed
  • nhrrob-options-table-manager/tags/1.1.5/assets/css/admin.css

    r3240675 r3256055  
    326326    border: 1px solid #ccc;
    327327    background-color: #f1f1f1;
    328   }
     328}
    329329 
    330   .tab button {
     330.tab button {
    331331    background-color: inherit;
    332332    float: left;
     
    336336    padding: 14px 16px;
    337337    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}
    339368 
    340   .tab button:hover {
    341     background-color: #ddd;
    342   }
     369.nhrotm-toast.success {
     370    background-color: #4CAF50;
     371}
    343372 
    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  
    55        let protectedOptions = nhrotmOptionsTableManager.protected_options;
    66        let protectedUsermetas = nhrotmOptionsTableManager.protected_usermetas;
     7        let isBetterPaymentInstalled = nhrotmOptionsTableManager.is_better_payment_installed;
    78
    89        function isProtected(optionName) {
     
    1213        function isProtectedMeta(metaKey) {
    1314            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            });
    1430        }
    1531
     
    6783                success: function(response) {
    6884                    if (response.success) {
    69                         alert("Option added successfully!");
     85                        showToast("Option added successfully!", "success");
    7086                        $('.nhrotm-add-option-modal').hide();
    7187                        $('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data
    7288                    } else {
    73                         alert('Failed to add option: ' + response.data);
     89                        showToast('Failed to add option: ' + response.data, "error");
    7490                    }
    7591                }
     
    99115               
    100116            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");
    102118                return;
    103119            }
     
    126142                        let message = response.data.message ?? 'Error: Failed to find option value';
    127143                        // $('.nhrotm-edit-option-value').val(option_value);
    128                         alert(message);
     144                        showToast(message, "error");
    129145                    }
    130146                }
     
    156172                    success: function(response) {
    157173                        if (response.success) {
    158                             alert("Option updated successfully!");
     174                            showToast("Option updated successfully!", "success");
    159175                            $('.nhrotm-edit-option-modal').hide();
    160176                            table.ajax.reload(null, false); // Reload table data
    161177                        } else {
    162                             alert('Error: ' + response.data);
    163                             // alert("Failed to update option.");
     178                            showToast('Error: ' + response.data, "error");
    164179                        }
    165180                    }
     
    178193
    179194            if (isProtected(optionName)) {
    180                 alert('This option is protected and cannot be deleted.');
     195                showToast('This option is protected and cannot be deleted.', "warning");
    181196                return;
    182197            }
     
    193208                    success: function(response) {
    194209                        if (response.success) {
    195                             alert("Option deleted successfully!");
     210                            showToast("Option deleted successfully!", "success");
    196211                            jQuery('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data
    197212                        } else {
    198                             alert("Failed to delete option.");
    199                             // alert('Error: ' + response.data);
     213                            showToast("Failed to delete option.", "error");
    200214                        }
    201215                    }
     
    226240                        $('#nhrotm-usage-analytics-results').html(tableContent);
    227241                    } 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;
    233250
    234251        // Toggle
     
    249266                $( '#nhrotm-data-table-usermeta_wrapper' ).fadeIn();
    250267                $('.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                }
    251273            } else if ( $(this).hasClass('better_payment-table') ) {
    252274                $( '#nhrotm-data-table-usermeta_wrapper' ).fadeOut();
     
    255277
    256278                $('#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                }
    257284            }
    258285        });
     
    300327               
    301328            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");
    303330                return;
    304331            }
     
    322349                    success: function(response) {
    323350                        if (response.success) {
    324                             alert("Meta updated successfully!");
     351                            showToast("Meta updated successfully!", "success");
    325352                            $('.nhrotm-edit-usermeta-modal').hide();
    326353                            $('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data
    327354                        } else {
    328                             alert('Error: ' + response.data);
    329                             // alert("Failed to update meta.");
     355                            showToast('Error: ' + response.data, "error");
    330356                        }
    331357                    }
     
    346372
    347373            if (isProtected(metaKey)) {
    348                 alert('This meta is protected and cannot be deleted.');
     374                showToast('This meta is protected and cannot be deleted.', "warning");
    349375                return;
    350376            }
     
    362388                    success: function(response) {
    363389                        if (response.success) {
    364                             alert("Meta deleted successfully!");
     390                            showToast("Meta deleted successfully!", "success");
    365391                            jQuery('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data
    366392                        } else {
    367                             // alert("Failed to delete meta.");
    368                             alert('Error: ' + response.data);
     393                            showToast('Error: ' + response.data, "error");
    369394                        }
    370395                    }
     
    374399
    375400        // 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        }
    399426       
    400427    });
  • nhrrob-options-table-manager/tags/1.1.5/composer.json

    r3253999 r3256055  
    2424        "phpunit/phpunit": "^9.6",
    2525        "10up/wp_mock": "dev-trunk"
     26    },
     27    "scripts": {
     28        "deploy": "composer install --no-dev && wp dist-archive . && composer install"
    2629    }
    2730}
  • nhrrob-options-table-manager/tags/1.1.5/includes/Admin/SettingsPage.php

    r3113823 r3256055  
    2727        $options = wp_load_alloptions();
    2828        $protected_options = $this->get_protected_options();
    29        
     29        $is_better_payment_installed = $this->is_better_payment_installed();
     30         
    3031        ob_start();
    3132        include NHROTM_VIEWS_PATH . '/admin/settings/index.php';
  • nhrrob-options-table-manager/tags/1.1.5/includes/Ajax.php

    r3254912 r3256055  
    316316        // Wrap the option_value in the scrollable-cell div
    317317        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
    318321            $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            );
    321331        }
    322332       
     
    938948        // Format output
    939949        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           
    940953            // phpcs:ignore:WordPress.DB.SlowDBQuery.slow_db_query_meta_value
    941954            $row['meta_value'] = '<div class="scrollable-cell">' . esc_html($row['meta_value']) . '</div>';
    942955            $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,
    946962            );
    947963        }
  • nhrrob-options-table-manager/tags/1.1.5/includes/Assets.php

    r3179599 r3256055  
    8484            'error' => __( 'Something went wrong', 'nhrrob-options-table-manager' ),
    8585            '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(),
    8788        ] );
    8889    }
  • nhrrob-options-table-manager/tags/1.1.5/includes/Traits/GlobalTrait.php

    r3253999 r3256055  
    337337    }
    338338
     339    public function is_better_payment_installed() {
     340        return class_exists('\Better_Payment');
     341    }
     342
    339343    //
    340344
  • nhrrob-options-table-manager/tags/1.1.5/includes/views/admin/settings/index.php

    r3240675 r3256055  
    1313            <button class="tablinks active options-table"><?php esc_html_e('Options Table', 'nhrrob-options-table-manager'); ?></button>
    1414            <button class="tablinks usermeta-table"><?php esc_html_e('Usermeta Table', 'nhrrob-options-table-manager'); ?></button>
     15           
     16            <?php if ( $is_better_payment_installed ) : ?>
    1517            <button class="tablinks better_payment-table"><?php esc_html_e('Better Payment Table', 'nhrrob-options-table-manager'); ?></button>
     18            <?php endif; ?>
    1619        </div>
    1720
     
    5053        </table>
    5154
     55        <?php if ( $is_better_payment_installed ) : ?>
    5256        <table id="nhrotm-data-table-better_payment" class="nhrotm-data-table wp-list-table widefat fixed striped">
    5357            <thead>
     
    6872            </tbody>
    6973        </table>
     74        <?php endif; ?>
    7075    </div>
    7176
  • nhrrob-options-table-manager/tags/1.1.5/nhrrob-options-table-manager.php

    r3254912 r3256055  
    66 * Author: Nazmul Hasan Robin
    77 * Author URI: https://profiles.wordpress.org/nhrrob/
    8  * Version: 1.1.4
     8 * Version: 1.1.5
    99 * Requires at least: 6.0
    1010 * Requires PHP: 7.4
     
    2828     * @var string
    2929     */
    30     const nhrotm_version = '1.1.4';
     30    const nhrotm_version = '1.1.5';
    3131
    3232    /**
  • nhrrob-options-table-manager/tags/1.1.5/readme.txt

    r3254912 r3256055  
    55Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 1.1.4
     7Stable tag: 1.1.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1414- 🚀 [GitHub Repository](https://github.com/nhrrob/nhrrob-options-table-manager): Found a bug or have a feature request? Let us know!
    1515- 💬 [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
     17https://www.youtube.com/watch?v=le89m1qfb0U
    1618
    1719Are you fed up with the size of wp otions table? You are not alone!
     
    7072
    71731. DataTable view of the wp_options table
    72 2. Analytics on plugin usage by prefixes
    73 3. Plugin features at a glance
     742. Add option modal screen
     753. Options table search view
     764. Edit option modal for serialized data
     775. Options table usage analytics
     786. Plugin features at a glance
    7479
    7580
    7681== 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
    7790
    7891= 1.1.4 - 12/03/2025 =
  • nhrrob-options-table-manager/tags/1.1.5/vendor/autoload.php

    r3107726 r3256055  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409::getLoader();
     7return ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getLoader();
  • nhrrob-options-table-manager/tags/1.1.5/vendor/composer/autoload_files.php

    r3253999 r3256055  
    88return array(
    99    'ec07570ca5a812141189b1fa81503674' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert/Functions.php',
     10    '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1011    'c72349b1fe8d0deeedd3a52e8aa814d8' => $vendorDir . '/mockery/mockery/library/helpers.php',
    1112    'ce9671a430e4846b44e1c68c7611f9f5' => $vendorDir . '/mockery/mockery/library/Mockery.php',
    12     '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1313);
  • nhrrob-options-table-manager/tags/1.1.5/vendor/composer/autoload_real.php

    r3253999 r3256055  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409
     5class ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequire9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file);
     59            composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file);
    6060        }
    6161
     
    6969 * @return void
    7070 */
    71 function composerRequire9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file)
     71function composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file)
    7272{
    7373    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • nhrrob-options-table-manager/tags/1.1.5/vendor/composer/autoload_static.php

    r3253999 r3256055  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409
     7class ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6
    88{
    99    public static $files = array (
    1010        'ec07570ca5a812141189b1fa81503674' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert/Functions.php',
     11        '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1112        'c72349b1fe8d0deeedd3a52e8aa814d8' => __DIR__ . '/..' . '/mockery/mockery/library/helpers.php',
    1213        'ce9671a430e4846b44e1c68c7611f9f5' => __DIR__ . '/..' . '/mockery/mockery/library/Mockery.php',
    13         '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1414    );
    1515
     
    775775    {
    776776        return \Closure::bind(function () use ($loader) {
    777             $loader->prefixLengthsPsr4 = ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$prefixLengthsPsr4;
    778             $loader->prefixDirsPsr4 = ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$prefixDirsPsr4;
    779             $loader->classMap = ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$classMap;
     777            $loader->prefixLengthsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixLengthsPsr4;
     778            $loader->prefixDirsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixDirsPsr4;
     779            $loader->classMap = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$classMap;
    780780
    781781        }, null, ClassLoader::class);
  • nhrrob-options-table-manager/tags/1.1.5/vendor/composer/installed.json

    r3253999 r3256055  
    88                "type": "git",
    99                "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",
    1616                "shasum": ""
    1717            },
     
    3636                "sempro/phpunit-pretty-print": "^1.4"
    3737            },
    38             "time": "2024-08-08T04:41:18+00:00",
     38            "time": "2025-03-12T00:36:13+00:00",
    3939            "default-branch": true,
    4040            "type": "library",
     
    5555            "support": {
    5656                "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"
    5858            },
    5959            "install-path": "../10up/wp_mock"
     
    117117                "type": "git",
    118118                "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",
    125125                "shasum": ""
    126126            },
     
    137137                "phpunit/phpunit": "^10.5"
    138138            },
    139             "time": "2025-02-11T07:45:10+00:00",
     139            "time": "2025-03-10T23:43:28+00:00",
    140140            "default-branch": true,
    141141            "type": "library",
     
    914914                "type": "git",
    915915                "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",
    922922                "shasum": ""
    923923            },
     
    955955                "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
    956956            },
    957             "time": "2025-03-04T12:16:09+00:00",
     957            "time": "2025-03-13T14:02:12+00:00",
    958958            "bin": [
    959959                "phpunit"
  • nhrrob-options-table-manager/tags/1.1.5/vendor/composer/installed.php

    r3253999 r3256055  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'c2ad281e3302296e3134794153bde4b90fec7f49',
     8        'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1',
    99        'name' => 'nhrotm/options-table-manager',
    1010        'dev' => true,
     
    1919                0 => '9999999-dev',
    2020            ),
    21             'reference' => '010d556e0482e4d94776a5b0641429dca00333e4',
     21            'reference' => 'f25b5895ed31bf5e7036fe0c666664364ae011c2',
    2222            'dev_requirement' => true,
    2323        ),
     
    4949            'install_path' => __DIR__ . '/../doctrine/instantiator',
    5050            'aliases' => array(),
    51             'reference' => '8ec66b1425f6506905f6880a8c7cd85ba8537b00',
     51            'reference' => '32877dd24a4a2b324698e07b2d3285fb44e627c6',
    5252            'dev_requirement' => true,
    5353        ),
     
    9393            'install_path' => __DIR__ . '/../../',
    9494            'aliases' => array(),
    95             'reference' => 'c2ad281e3302296e3134794153bde4b90fec7f49',
     95            'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1',
    9696            'dev_requirement' => false,
    9797        ),
     
    176176            'install_path' => __DIR__ . '/../phpunit/phpunit',
    177177            'aliases' => array(),
    178             'reference' => '7fcb3793ca4cf63ad51605747e52b32ad788f61c',
     178            'reference' => '0ba51826060145c283f852646230783151b3ff34',
    179179            'dev_requirement' => true,
    180180        ),
  • nhrrob-options-table-manager/trunk/assets/css/admin.css

    r3240675 r3256055  
    326326    border: 1px solid #ccc;
    327327    background-color: #f1f1f1;
    328   }
     328}
    329329 
    330   .tab button {
     330.tab button {
    331331    background-color: inherit;
    332332    float: left;
     
    336336    padding: 14px 16px;
    337337    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}
    339368 
    340   .tab button:hover {
    341     background-color: #ddd;
    342   }
     369.nhrotm-toast.success {
     370    background-color: #4CAF50;
     371}
    343372 
    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  
    55        let protectedOptions = nhrotmOptionsTableManager.protected_options;
    66        let protectedUsermetas = nhrotmOptionsTableManager.protected_usermetas;
     7        let isBetterPaymentInstalled = nhrotmOptionsTableManager.is_better_payment_installed;
    78
    89        function isProtected(optionName) {
     
    1213        function isProtectedMeta(metaKey) {
    1314            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            });
    1430        }
    1531
     
    6783                success: function(response) {
    6884                    if (response.success) {
    69                         alert("Option added successfully!");
     85                        showToast("Option added successfully!", "success");
    7086                        $('.nhrotm-add-option-modal').hide();
    7187                        $('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data
    7288                    } else {
    73                         alert('Failed to add option: ' + response.data);
     89                        showToast('Failed to add option: ' + response.data, "error");
    7490                    }
    7591                }
     
    99115               
    100116            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");
    102118                return;
    103119            }
     
    126142                        let message = response.data.message ?? 'Error: Failed to find option value';
    127143                        // $('.nhrotm-edit-option-value').val(option_value);
    128                         alert(message);
     144                        showToast(message, "error");
    129145                    }
    130146                }
     
    156172                    success: function(response) {
    157173                        if (response.success) {
    158                             alert("Option updated successfully!");
     174                            showToast("Option updated successfully!", "success");
    159175                            $('.nhrotm-edit-option-modal').hide();
    160176                            table.ajax.reload(null, false); // Reload table data
    161177                        } else {
    162                             alert('Error: ' + response.data);
    163                             // alert("Failed to update option.");
     178                            showToast('Error: ' + response.data, "error");
    164179                        }
    165180                    }
     
    178193
    179194            if (isProtected(optionName)) {
    180                 alert('This option is protected and cannot be deleted.');
     195                showToast('This option is protected and cannot be deleted.', "warning");
    181196                return;
    182197            }
     
    193208                    success: function(response) {
    194209                        if (response.success) {
    195                             alert("Option deleted successfully!");
     210                            showToast("Option deleted successfully!", "success");
    196211                            jQuery('#nhrotm-data-table').DataTable().ajax.reload(); // Reload table data
    197212                        } else {
    198                             alert("Failed to delete option.");
    199                             // alert('Error: ' + response.data);
     213                            showToast("Failed to delete option.", "error");
    200214                        }
    201215                    }
     
    226240                        $('#nhrotm-usage-analytics-results').html(tableContent);
    227241                    } 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;
    233250
    234251        // Toggle
     
    249266                $( '#nhrotm-data-table-usermeta_wrapper' ).fadeIn();
    250267                $('.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                }
    251273            } else if ( $(this).hasClass('better_payment-table') ) {
    252274                $( '#nhrotm-data-table-usermeta_wrapper' ).fadeOut();
     
    255277
    256278                $('#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                }
    257284            }
    258285        });
     
    300327               
    301328            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");
    303330                return;
    304331            }
     
    322349                    success: function(response) {
    323350                        if (response.success) {
    324                             alert("Meta updated successfully!");
     351                            showToast("Meta updated successfully!", "success");
    325352                            $('.nhrotm-edit-usermeta-modal').hide();
    326353                            $('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data
    327354                        } else {
    328                             alert('Error: ' + response.data);
    329                             // alert("Failed to update meta.");
     355                            showToast('Error: ' + response.data, "error");
    330356                        }
    331357                    }
     
    346372
    347373            if (isProtected(metaKey)) {
    348                 alert('This meta is protected and cannot be deleted.');
     374                showToast('This meta is protected and cannot be deleted.', "warning");
    349375                return;
    350376            }
     
    362388                    success: function(response) {
    363389                        if (response.success) {
    364                             alert("Meta deleted successfully!");
     390                            showToast("Meta deleted successfully!", "success");
    365391                            jQuery('#nhrotm-data-table-usermeta').DataTable().ajax.reload(); // Reload table data
    366392                        } else {
    367                             // alert("Failed to delete meta.");
    368                             alert('Error: ' + response.data);
     393                            showToast('Error: ' + response.data, "error");
    369394                        }
    370395                    }
     
    374399
    375400        // 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        }
    399426       
    400427    });
  • nhrrob-options-table-manager/trunk/composer.json

    r3253999 r3256055  
    2424        "phpunit/phpunit": "^9.6",
    2525        "10up/wp_mock": "dev-trunk"
     26    },
     27    "scripts": {
     28        "deploy": "composer install --no-dev && wp dist-archive . && composer install"
    2629    }
    2730}
  • nhrrob-options-table-manager/trunk/includes/Admin/SettingsPage.php

    r3113823 r3256055  
    2727        $options = wp_load_alloptions();
    2828        $protected_options = $this->get_protected_options();
    29        
     29        $is_better_payment_installed = $this->is_better_payment_installed();
     30         
    3031        ob_start();
    3132        include NHROTM_VIEWS_PATH . '/admin/settings/index.php';
  • nhrrob-options-table-manager/trunk/includes/Ajax.php

    r3254912 r3256055  
    316316        // Wrap the option_value in the scrollable-cell div
    317317        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
    318321            $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            );
    321331        }
    322332       
     
    938948        // Format output
    939949        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           
    940953            // phpcs:ignore:WordPress.DB.SlowDBQuery.slow_db_query_meta_value
    941954            $row['meta_value'] = '<div class="scrollable-cell">' . esc_html($row['meta_value']) . '</div>';
    942955            $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,
    946962            );
    947963        }
  • nhrrob-options-table-manager/trunk/includes/Assets.php

    r3179599 r3256055  
    8484            'error' => __( 'Something went wrong', 'nhrrob-options-table-manager' ),
    8585            '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(),
    8788        ] );
    8889    }
  • nhrrob-options-table-manager/trunk/includes/Traits/GlobalTrait.php

    r3253999 r3256055  
    337337    }
    338338
     339    public function is_better_payment_installed() {
     340        return class_exists('\Better_Payment');
     341    }
     342
    339343    //
    340344
  • nhrrob-options-table-manager/trunk/includes/views/admin/settings/index.php

    r3240675 r3256055  
    1313            <button class="tablinks active options-table"><?php esc_html_e('Options Table', 'nhrrob-options-table-manager'); ?></button>
    1414            <button class="tablinks usermeta-table"><?php esc_html_e('Usermeta Table', 'nhrrob-options-table-manager'); ?></button>
     15           
     16            <?php if ( $is_better_payment_installed ) : ?>
    1517            <button class="tablinks better_payment-table"><?php esc_html_e('Better Payment Table', 'nhrrob-options-table-manager'); ?></button>
     18            <?php endif; ?>
    1619        </div>
    1720
     
    5053        </table>
    5154
     55        <?php if ( $is_better_payment_installed ) : ?>
    5256        <table id="nhrotm-data-table-better_payment" class="nhrotm-data-table wp-list-table widefat fixed striped">
    5357            <thead>
     
    6872            </tbody>
    6973        </table>
     74        <?php endif; ?>
    7075    </div>
    7176
  • nhrrob-options-table-manager/trunk/nhrrob-options-table-manager.php

    r3254912 r3256055  
    66 * Author: Nazmul Hasan Robin
    77 * Author URI: https://profiles.wordpress.org/nhrrob/
    8  * Version: 1.1.4
     8 * Version: 1.1.5
    99 * Requires at least: 6.0
    1010 * Requires PHP: 7.4
     
    2828     * @var string
    2929     */
    30     const nhrotm_version = '1.1.4';
     30    const nhrotm_version = '1.1.5';
    3131
    3232    /**
  • nhrrob-options-table-manager/trunk/readme.txt

    r3254912 r3256055  
    55Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 1.1.4
     7Stable tag: 1.1.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1414- 🚀 [GitHub Repository](https://github.com/nhrrob/nhrrob-options-table-manager): Found a bug or have a feature request? Let us know!
    1515- 💬 [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
     17https://www.youtube.com/watch?v=le89m1qfb0U
    1618
    1719Are you fed up with the size of wp otions table? You are not alone!
     
    7072
    71731. DataTable view of the wp_options table
    72 2. Analytics on plugin usage by prefixes
    73 3. Plugin features at a glance
     742. Add option modal screen
     753. Options table search view
     764. Edit option modal for serialized data
     775. Options table usage analytics
     786. Plugin features at a glance
    7479
    7580
    7681== 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
    7790
    7891= 1.1.4 - 12/03/2025 =
  • nhrrob-options-table-manager/trunk/vendor/autoload.php

    r3107726 r3256055  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409::getLoader();
     7return ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getLoader();
  • nhrrob-options-table-manager/trunk/vendor/composer/autoload_files.php

    r3253999 r3256055  
    88return array(
    99    'ec07570ca5a812141189b1fa81503674' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert/Functions.php',
     10    '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1011    'c72349b1fe8d0deeedd3a52e8aa814d8' => $vendorDir . '/mockery/mockery/library/helpers.php',
    1112    'ce9671a430e4846b44e1c68c7611f9f5' => $vendorDir . '/mockery/mockery/library/Mockery.php',
    12     '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1313);
  • nhrrob-options-table-manager/trunk/vendor/composer/autoload_real.php

    r3253999 r3256055  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409
     5class ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit9da0bb700250b4b33b32a0a2bf7ec409', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitc83a368fb0a6cb7c10ebd3a7c89f3ef6', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequire9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file);
     59            composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file);
    6060        }
    6161
     
    6969 * @return void
    7070 */
    71 function composerRequire9da0bb700250b4b33b32a0a2bf7ec409($fileIdentifier, $file)
     71function composerRequirec83a368fb0a6cb7c10ebd3a7c89f3ef6($fileIdentifier, $file)
    7272{
    7373    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • nhrrob-options-table-manager/trunk/vendor/composer/autoload_static.php

    r3253999 r3256055  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409
     7class ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6
    88{
    99    public static $files = array (
    1010        'ec07570ca5a812141189b1fa81503674' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert/Functions.php',
     11        '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1112        'c72349b1fe8d0deeedd3a52e8aa814d8' => __DIR__ . '/..' . '/mockery/mockery/library/helpers.php',
    1213        'ce9671a430e4846b44e1c68c7611f9f5' => __DIR__ . '/..' . '/mockery/mockery/library/Mockery.php',
    13         '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
    1414    );
    1515
     
    775775    {
    776776        return \Closure::bind(function () use ($loader) {
    777             $loader->prefixLengthsPsr4 = ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$prefixLengthsPsr4;
    778             $loader->prefixDirsPsr4 = ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$prefixDirsPsr4;
    779             $loader->classMap = ComposerStaticInit9da0bb700250b4b33b32a0a2bf7ec409::$classMap;
     777            $loader->prefixLengthsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixLengthsPsr4;
     778            $loader->prefixDirsPsr4 = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$prefixDirsPsr4;
     779            $loader->classMap = ComposerStaticInitc83a368fb0a6cb7c10ebd3a7c89f3ef6::$classMap;
    780780
    781781        }, null, ClassLoader::class);
  • nhrrob-options-table-manager/trunk/vendor/composer/installed.json

    r3253999 r3256055  
    88                "type": "git",
    99                "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",
    1616                "shasum": ""
    1717            },
     
    3636                "sempro/phpunit-pretty-print": "^1.4"
    3737            },
    38             "time": "2024-08-08T04:41:18+00:00",
     38            "time": "2025-03-12T00:36:13+00:00",
    3939            "default-branch": true,
    4040            "type": "library",
     
    5555            "support": {
    5656                "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"
    5858            },
    5959            "install-path": "../10up/wp_mock"
     
    117117                "type": "git",
    118118                "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",
    125125                "shasum": ""
    126126            },
     
    137137                "phpunit/phpunit": "^10.5"
    138138            },
    139             "time": "2025-02-11T07:45:10+00:00",
     139            "time": "2025-03-10T23:43:28+00:00",
    140140            "default-branch": true,
    141141            "type": "library",
     
    914914                "type": "git",
    915915                "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",
    922922                "shasum": ""
    923923            },
     
    955955                "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
    956956            },
    957             "time": "2025-03-04T12:16:09+00:00",
     957            "time": "2025-03-13T14:02:12+00:00",
    958958            "bin": [
    959959                "phpunit"
  • nhrrob-options-table-manager/trunk/vendor/composer/installed.php

    r3253999 r3256055  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'c2ad281e3302296e3134794153bde4b90fec7f49',
     8        'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1',
    99        'name' => 'nhrotm/options-table-manager',
    1010        'dev' => true,
     
    1919                0 => '9999999-dev',
    2020            ),
    21             'reference' => '010d556e0482e4d94776a5b0641429dca00333e4',
     21            'reference' => 'f25b5895ed31bf5e7036fe0c666664364ae011c2',
    2222            'dev_requirement' => true,
    2323        ),
     
    4949            'install_path' => __DIR__ . '/../doctrine/instantiator',
    5050            'aliases' => array(),
    51             'reference' => '8ec66b1425f6506905f6880a8c7cd85ba8537b00',
     51            'reference' => '32877dd24a4a2b324698e07b2d3285fb44e627c6',
    5252            'dev_requirement' => true,
    5353        ),
     
    9393            'install_path' => __DIR__ . '/../../',
    9494            'aliases' => array(),
    95             'reference' => 'c2ad281e3302296e3134794153bde4b90fec7f49',
     95            'reference' => 'dba98765f9cc0e552896e643526a5154d2d8b9e1',
    9696            'dev_requirement' => false,
    9797        ),
     
    176176            'install_path' => __DIR__ . '/../phpunit/phpunit',
    177177            'aliases' => array(),
    178             'reference' => '7fcb3793ca4cf63ad51605747e52b32ad788f61c',
     178            'reference' => '0ba51826060145c283f852646230783151b3ff34',
    179179            'dev_requirement' => true,
    180180        ),
Note: See TracChangeset for help on using the changeset viewer.