Plugin Directory

Changeset 3450526


Ignore:
Timestamp:
01/30/2026 02:04:05 PM (3 weeks ago)
Author:
blaminhor
Message:
  1. 1.4.4
Location:
blaminhor-essentials
Files:
98 added
5 edited

Legend:

Unmodified
Added
Removed
  • blaminhor-essentials/trunk/assets/js/modules.js

    r3450242 r3450526  
    890890
    891891            $(document).off('click' + ns, '.ap-backup-download').on('click' + ns, '.ap-backup-download', function() {
    892                 self.downloadBackup($(this).data('filename'));
     892                var $row = $(this).closest('tr');
     893                var archives = $row.data('archives');
     894                if (archives && archives.length) {
     895                    self.downloadBackupArchives(archives);
     896                }
    893897            });
    894898
     
    14571461        },
    14581462
     1463        downloadBackupArchives: function(archives) {
     1464            var self = this;
     1465            var index = 0;
     1466
     1467            function downloadNext() {
     1468                if (index >= archives.length) {
     1469                    return;
     1470                }
     1471                var filename = archives[index];
     1472                index++;
     1473                $.post(self.ajaxurl, {
     1474                    action: 'ap_backup_download',
     1475                    nonce: self.nonce,
     1476                    filename: filename
     1477                }, function(response) {
     1478                    if (response.success) {
     1479                        var $iframe = $('<iframe>', { src: response.data.url }).hide().appendTo('body');
     1480                        setTimeout(function() {
     1481                            $iframe.remove();
     1482                            downloadNext();
     1483                        }, 300);
     1484                    } else {
     1485                        alert(response.data);
     1486                    }
     1487                });
     1488            }
     1489
     1490            downloadNext();
     1491        },
     1492
    14591493        deleteBackup: function($btn) {
    14601494            var self = this;
  • blaminhor-essentials/trunk/blaminhor-essentials.php

    r3450476 r3450526  
    44 * Plugin URI:        https://wp.blaminhor.com/
    55 * Description:       A modular toolkit for WordPress with activatable features. Lightweight, secure, and reliable.
    6  * Version:           1.4.3
     6 * Version:           1.4.4
    77 * Requires at least: 6.2
    88 * Requires PHP:      7.4
     
    2323
    2424// Plugin constants
    25 define('BLAMINHOR_ESSENTIALS_VERSION', '1.4.3');
     25define('BLAMINHOR_ESSENTIALS_VERSION', '1.4.4');
    2626define('BLAMINHOR_ESSENTIALS_PLUGIN_FILE', __FILE__);
    2727define('BLAMINHOR_ESSENTIALS_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • blaminhor-essentials/trunk/modules/backup/class-module-backup.php

    r3450351 r3450526  
    19631963                        <th class="ap-sortable" data-sort="number" style="width: 100px;"><?php esc_html_e( 'Size', 'blaminhor-essentials' ); ?> <span class="ap-sort-icon"></span></th>
    19641964                        <th class="ap-sortable desc" data-sort="number" style="width: 160px;"><?php esc_html_e( 'Date', 'blaminhor-essentials' ); ?> <span class="ap-sort-icon"></span></th>
    1965                         <th style="width: 180px;"><?php esc_html_e( 'Actions', 'blaminhor-essentials' ); ?></th>
     1965                        <th style="width: 260px;"><?php esc_html_e( 'Actions', 'blaminhor-essentials' ); ?></th>
    19661966                    </tr>
    19671967                </thead>
    19681968                <tbody>
    19691969                    <?php foreach ( $backups as $backup ) : ?>
    1970                         <tr data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" data-type="<?php echo esc_attr( $backup['type'] ); ?>" data-size="<?php echo esc_attr( $backup['total_size'] ); ?>" data-date="<?php echo esc_attr( $backup['date'] ); ?>">
     1970                        <tr data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" data-type="<?php echo esc_attr( $backup['type'] ); ?>" data-size="<?php echo esc_attr( $backup['total_size'] ); ?>" data-date="<?php echo esc_attr( $backup['date'] ); ?>" data-archives="<?php echo esc_attr( wp_json_encode( array_map( 'basename', $backup['archives'] ) ) ); ?>">
    19711971                            <td>
    19721972                                <code style="font-size: 12px;"><?php echo esc_html( $backup['prefix'] ); ?></code>
     
    19981998                                <button type="button" class="button button-small ap-backup-restore" data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" data-type="<?php echo esc_attr( $backup['type'] ); ?>" data-components="<?php echo esc_attr( wp_json_encode( $backup['components'] ) ); ?>">
    19991999                                    <?php esc_html_e( 'Restore', 'blaminhor-essentials' ); ?>
     2000                                </button>
     2001                                <button type="button" class="button button-small ap-backup-download" data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>">
     2002                                    <?php esc_html_e( 'Download', 'blaminhor-essentials' ); ?>
    20002003                                </button>
    20012004                                <button type="button" class="button button-small ap-backup-delete" data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" style="color: #d63638;">
     
    25072510                                    <th class="ap-sortable" data-sort="number" style="width: 100px;"><?php esc_html_e( 'Size', 'blaminhor-essentials' ); ?> <span class="ap-sort-icon"></span></th>
    25082511                                    <th class="ap-sortable desc" data-sort="number" style="width: 160px;"><?php esc_html_e( 'Date', 'blaminhor-essentials' ); ?> <span class="ap-sort-icon"></span></th>
    2509                                     <th style="width: 180px;"><?php esc_html_e( 'Actions', 'blaminhor-essentials' ); ?></th>
     2512                                    <th style="width: 260px;"><?php esc_html_e( 'Actions', 'blaminhor-essentials' ); ?></th>
    25102513                                </tr>
    25112514                            </thead>
    25122515                            <tbody>
    25132516                                <?php foreach ( $backups as $backup ) : ?>
    2514                                     <tr data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" data-type="<?php echo esc_attr( $backup['type'] ); ?>" data-size="<?php echo esc_attr( $backup['total_size'] ); ?>" data-date="<?php echo esc_attr( $backup['date'] ); ?>">
     2517                                    <tr data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" data-type="<?php echo esc_attr( $backup['type'] ); ?>" data-size="<?php echo esc_attr( $backup['total_size'] ); ?>" data-date="<?php echo esc_attr( $backup['date'] ); ?>" data-archives="<?php echo esc_attr( wp_json_encode( array_map( 'basename', $backup['archives'] ) ) ); ?>">
    25152518                                        <td style="text-align: center;"><input type="checkbox" class="ap-backup-checkbox" value="<?php echo esc_attr( $backup['prefix'] ); ?>"></td>
    25162519                                        <td>
     
    25452548                                            <button type="button" class="button button-small ap-backup-restore" data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" data-type="<?php echo esc_attr( $backup['type'] ); ?>" data-components="<?php echo esc_attr( wp_json_encode( $backup['components'] ) ); ?>">
    25462549                                                <?php esc_html_e( 'Restore', 'blaminhor-essentials' ); ?>
     2550                                            </button>
     2551                                            <button type="button" class="button button-small ap-backup-download" data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>">
     2552                                                <?php esc_html_e( 'Download', 'blaminhor-essentials' ); ?>
    25472553                                            </button>
    25482554                                            <button type="button" class="button button-small ap-backup-delete" data-prefix="<?php echo esc_attr( $backup['prefix'] ); ?>" style="color: #d63638;">
  • blaminhor-essentials/trunk/modules/post-types-order/class-module-post-types-order.php

    r3450476 r3450526  
    220220        }
    221221
    222         // Only override if no explicit orderby was set.
    223         if ( '' === $query->get( 'orderby' ) ) {
     222        // On frontend: always apply custom order for enabled post types.
     223        // On admin: only override if no explicit orderby was set (column click).
     224        if ( ! is_admin() || '' === $query->get( 'orderby' ) ) {
    224225            $query->set( 'orderby', 'menu_order date' );
    225226            $query->set( 'order', 'ASC' );
  • blaminhor-essentials/trunk/readme.txt

    r3450476 r3450526  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.4.3
     7Stable tag: 1.4.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    203203
    204204== Changelog ==
     205
     206= 1.4.4 =
     207* Added: Backup module - Download button to save backup archives to your computer.
    205208
    206209= 1.4.3 =
     
    319322== Upgrade Notice ==
    320323
     324= 1.4.4 =
     325Backup module now includes a Download button to save backup archives directly to your computer.
     326
    321327= 1.4.3 =
    322328Custom post type order now applies to page builder queries (Elementor, etc.).
Note: See TracChangeset for help on using the changeset viewer.