Plugin Directory

Changeset 3468614


Ignore:
Timestamp:
02/24/2026 12:13:54 PM (5 weeks ago)
Author:
redshape
Message:

1.4.2

Location:
redshape-easy-labels
Files:
3 edited
12 copied

Legend:

Unmodified
Added
Removed
  • redshape-easy-labels/tags/1.4.2/includes/class-redshape-easylabels.php

    r3468585 r3468614  
    1111    exit;
    1212}
     13
     14// Verify all required files are present before loading them.
     15// A missing file means an incomplete deploy — show a clear admin notice instead of a fatal PHP error.
     16$redshape_easylabels_required_files = array(
     17    'class-redshape-easylabels-cache.php',
     18    'class-redshape-easylabels-i18n.php',
     19    'class-redshape-easylabels-helpers.php',
     20    'class-redshape-easylabels-admin-columns.php',
     21    'class-redshape-easylabels-bulk-actions.php',
     22    'class-redshape-easylabels-filter-bar.php',
     23    'class-redshape-easylabels-meta-box.php',
     24    'class-redshape-easylabels-ajax.php',
     25    'class-redshape-easylabels-dashboard-widget.php',
     26    'class-redshape-easylabels-settings.php',
     27);
     28$redshape_easylabels_missing_files = array();
     29foreach ( $redshape_easylabels_required_files as $redshape_easylabels_file ) {
     30    if ( ! file_exists( plugin_dir_path( __FILE__ ) . $redshape_easylabels_file ) ) {
     31        $redshape_easylabels_missing_files[] = $redshape_easylabels_file;
     32    }
     33}
     34if ( ! empty( $redshape_easylabels_missing_files ) ) {
     35    add_action( 'admin_notices', function() use ( $redshape_easylabels_missing_files ) {
     36        $redshape_easylabels_safe_list = implode( ', ', array_map( 'esc_html', $redshape_easylabels_missing_files ) );
     37        echo '<div class="notice notice-error"><p><strong>REDSHAPE Easy Labels</strong>: ' .
     38            esc_html__( 'The plugin could not be loaded because the following files are missing. Please re-upload the complete plugin package.', 'redshape-easy-labels' ) .
     39            ' <code>' . $redshape_easylabels_safe_list . '</code></p></div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     40    } );
     41    return;
     42}
     43unset( $redshape_easylabels_required_files, $redshape_easylabels_missing_files, $redshape_easylabels_file );
    1344
    1445// Core dependencies
  • redshape-easy-labels/tags/1.4.2/readme.txt

    r3468610 r3468614  
    55Tested up to: 6.9
    66Requires PHP: 7.0
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9393
    9494== Changelog ==
     95
     96= 1.4.2 =
     97* Fix: Fatal error on activation when any core class file is missing from a partial deploy (`class-redshape-easylabels-helpers.php`, etc.) — `class-redshape-easylabels.php` now checks all 10 required files with `file_exists()` before loading them; if any are missing a clear admin notice lists them and the plugin exits cleanly instead of crashing WordPress
     98* Fix: PHPCS `NonPrefixedVariableFound` warning — removed global variable `$_redshape_easylabels_lang_gen` in `redshape-easy-labels.php`, replaced with an inline `file_exists()` call
     99* Fix: Hidden `.DS_Store` files removed from plugin package
     100* Version bump: 1.4.1 → 1.4.2
    95101
    96102= 1.4.1 =
     
    230236== Upgrade Notice ==
    231237
     238= 1.4.2 =
     239Bugfix release. Fixes fatal errors on activation when plugin files are missing from a partial deploy — WordPress now shows a clear admin notice listing the missing files instead of crashing. Recommended update for all users.
     240
    232241= 1.4.1 =
    233242Bugfix release. Fixes a fatal error on activation after partial deploys, a data-loss bug when saving settings, and the post type selector showing only post+page for new labels. Adds "Check for updates" link in the plugin row. Recommended update for all 1.4.0 users.
  • redshape-easy-labels/tags/1.4.2/redshape-easy-labels.php

    r3468610 r3468614  
    33 * Plugin Name: REDSHAPE Easy Labels
    44 * Description: Colored labels and internal notes system for posts and pages, visible only in backend for content organization. Supports 10 languages (IT, EN, FR, DE, ES, RU, ZH, JA, KO, HI).
    5  * Version: 1.4.1
     5 * Version: 1.4.2
    66 * Author: REDSHAPE
    77 * Author URI: https://redshape.it
     
    1818
    1919// Define plugin constants
    20 define('REDSHAPE_EASYLABELS_VERSION', '1.4.1');
     20define('REDSHAPE_EASYLABELS_VERSION', '1.4.2');
    2121define('REDSHAPE_EASYLABELS_PLUGIN_URL', plugin_dir_url(__FILE__));
    2222define('REDSHAPE_EASYLABELS_PLUGIN_PATH', plugin_dir_path(__FILE__));
  • redshape-easy-labels/trunk/includes/class-redshape-easylabels.php

    r3468585 r3468614  
    1111    exit;
    1212}
     13
     14// Verify all required files are present before loading them.
     15// A missing file means an incomplete deploy — show a clear admin notice instead of a fatal PHP error.
     16$redshape_easylabels_required_files = array(
     17    'class-redshape-easylabels-cache.php',
     18    'class-redshape-easylabels-i18n.php',
     19    'class-redshape-easylabels-helpers.php',
     20    'class-redshape-easylabels-admin-columns.php',
     21    'class-redshape-easylabels-bulk-actions.php',
     22    'class-redshape-easylabels-filter-bar.php',
     23    'class-redshape-easylabels-meta-box.php',
     24    'class-redshape-easylabels-ajax.php',
     25    'class-redshape-easylabels-dashboard-widget.php',
     26    'class-redshape-easylabels-settings.php',
     27);
     28$redshape_easylabels_missing_files = array();
     29foreach ( $redshape_easylabels_required_files as $redshape_easylabels_file ) {
     30    if ( ! file_exists( plugin_dir_path( __FILE__ ) . $redshape_easylabels_file ) ) {
     31        $redshape_easylabels_missing_files[] = $redshape_easylabels_file;
     32    }
     33}
     34if ( ! empty( $redshape_easylabels_missing_files ) ) {
     35    add_action( 'admin_notices', function() use ( $redshape_easylabels_missing_files ) {
     36        $redshape_easylabels_safe_list = implode( ', ', array_map( 'esc_html', $redshape_easylabels_missing_files ) );
     37        echo '<div class="notice notice-error"><p><strong>REDSHAPE Easy Labels</strong>: ' .
     38            esc_html__( 'The plugin could not be loaded because the following files are missing. Please re-upload the complete plugin package.', 'redshape-easy-labels' ) .
     39            ' <code>' . $redshape_easylabels_safe_list . '</code></p></div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     40    } );
     41    return;
     42}
     43unset( $redshape_easylabels_required_files, $redshape_easylabels_missing_files, $redshape_easylabels_file );
    1344
    1445// Core dependencies
  • redshape-easy-labels/trunk/readme.txt

    r3468610 r3468614  
    55Tested up to: 6.9
    66Requires PHP: 7.0
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9393
    9494== Changelog ==
     95
     96= 1.4.2 =
     97* Fix: Fatal error on activation when any core class file is missing from a partial deploy (`class-redshape-easylabels-helpers.php`, etc.) — `class-redshape-easylabels.php` now checks all 10 required files with `file_exists()` before loading them; if any are missing a clear admin notice lists them and the plugin exits cleanly instead of crashing WordPress
     98* Fix: PHPCS `NonPrefixedVariableFound` warning — removed global variable `$_redshape_easylabels_lang_gen` in `redshape-easy-labels.php`, replaced with an inline `file_exists()` call
     99* Fix: Hidden `.DS_Store` files removed from plugin package
     100* Version bump: 1.4.1 → 1.4.2
    95101
    96102= 1.4.1 =
     
    230236== Upgrade Notice ==
    231237
     238= 1.4.2 =
     239Bugfix release. Fixes fatal errors on activation when plugin files are missing from a partial deploy — WordPress now shows a clear admin notice listing the missing files instead of crashing. Recommended update for all users.
     240
    232241= 1.4.1 =
    233242Bugfix release. Fixes a fatal error on activation after partial deploys, a data-loss bug when saving settings, and the post type selector showing only post+page for new labels. Adds "Check for updates" link in the plugin row. Recommended update for all 1.4.0 users.
  • redshape-easy-labels/trunk/redshape-easy-labels.php

    r3468610 r3468614  
    33 * Plugin Name: REDSHAPE Easy Labels
    44 * Description: Colored labels and internal notes system for posts and pages, visible only in backend for content organization. Supports 10 languages (IT, EN, FR, DE, ES, RU, ZH, JA, KO, HI).
    5  * Version: 1.4.1
     5 * Version: 1.4.2
    66 * Author: REDSHAPE
    77 * Author URI: https://redshape.it
     
    1818
    1919// Define plugin constants
    20 define('REDSHAPE_EASYLABELS_VERSION', '1.4.1');
     20define('REDSHAPE_EASYLABELS_VERSION', '1.4.2');
    2121define('REDSHAPE_EASYLABELS_PLUGIN_URL', plugin_dir_url(__FILE__));
    2222define('REDSHAPE_EASYLABELS_PLUGIN_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.