Plugin Directory

Changeset 3479547


Ignore:
Timestamp:
03/10/2026 09:04:50 PM (3 weeks ago)
Author:
PerS
Message:

Update to version 1.9.0 from GitHub

Location:
virtual-media-folders
Files:
16 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • virtual-media-folders/tags/1.9.0/readme.txt

    r3477453 r3479547  
    44Requires at least: 6.8
    55Tested up to: 7.0
    6 Stable tag: 1.8.3
     6Stable tag: 1.9.0
    77Requires PHP: 8.3
    88License: GPLv2 or later
     
    130130
    131131== Changelog ==
     132
     133= 1.9.0 =
     134* Added: WordPress 7.0+ UI compatibility layer (`vmfo_is_wp7()` helper function)
     135* Added: Conditional WP 7+ style overrides for admin sidebar and editor modal
    132136
    133137= 1.8.3 =
  • virtual-media-folders/tags/1.9.0/src/Admin.php

    r3468920 r3479547  
    128128                return $classes . ' vmf-folder-view-server';
    129129            } );
     130        }
     131
     132        // On WP 7.0+, override the sidebar background to match the new gray scale.
     133        if ( vmfo_is_wp7() ) {
     134            $critical_css .= '
     135                .vmf-folder-tree-sidebar {
     136                    background: #f0f0f0;
     137                    border-right-color: #ddd;
     138                }
     139            ';
    130140        }
    131141
     
    469479            $asset[ 'version' ] ?? VMFO_VERSION
    470480        );
     481
     482        // Enqueue WP 7.0+ compatibility overrides.
     483        if ( vmfo_is_wp7() ) {
     484            $wp7_asset_file = VMFO_PATH . 'build/admin-wp7.asset.php';
     485            $wp7_version    = file_exists( $wp7_asset_file )
     486                ? ( include $wp7_asset_file )['version'] ?? VMFO_VERSION
     487                : VMFO_VERSION;
     488
     489            wp_enqueue_style(
     490                'vmfo-admin-wp7',
     491                VMFO_URL . 'build/admin-wp7.css',
     492                [ 'vmfo-admin', 'wp-base-styles' ],
     493                $wp7_version
     494            );
     495        }
    471496
    472497        // Determine the folder view URL based on showAllMedia setting.
  • virtual-media-folders/tags/1.9.0/src/Editor.php

    r3457072 r3479547  
    7575        );
    7676
     77        // Enqueue WP 7.0+ compatibility overrides.
     78        if ( vmfo_is_wp7() ) {
     79            $wp7_asset_file = VMFO_PATH . 'build/editor-wp7.asset.php';
     80            $wp7_version    = file_exists( $wp7_asset_file )
     81                ? ( include $wp7_asset_file )['version'] ?? VMFO_VERSION
     82                : VMFO_VERSION;
     83
     84            wp_enqueue_style(
     85                'vmfo-editor-wp7',
     86                VMFO_URL . 'build/editor-wp7.css',
     87                [ self::SCRIPT_HANDLE, 'wp-base-styles' ],
     88                $wp7_version
     89            );
     90        }
     91
    7792        // Pass folder data to JavaScript.
    7893        wp_add_inline_script(
  • virtual-media-folders/tags/1.9.0/vendor/composer/installed.php

    r3477453 r3479547  
    22    'root' => array(
    33        'name' => 'soderlind/virtual-media-folders',
    4         'pretty_version' => '1.8.3',
    5         'version' => '1.8.3.0',
    6         'reference' => '6a250a672ece5b0dbb2075e77388b0dbd58585af',
     4        'pretty_version' => '1.9.0',
     5        'version' => '1.9.0.0',
     6        'reference' => 'b5ec7847aec4639da93c5c3f5c3e941d93b7eb08',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'soderlind/virtual-media-folders' => array(
    14             'pretty_version' => '1.8.3',
    15             'version' => '1.8.3.0',
    16             'reference' => '6a250a672ece5b0dbb2075e77388b0dbd58585af',
     14            'pretty_version' => '1.9.0',
     15            'version' => '1.9.0.0',
     16            'reference' => 'b5ec7847aec4639da93c5c3f5c3e941d93b7eb08',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • virtual-media-folders/tags/1.9.0/virtual-media-folders.php

    r3477453 r3479547  
    1515 * Plugin Name: Virtual Media Folders
    1616 * Description: Virtual folder organization and smart management for the WordPress Media Library.
    17  * Version: 1.8.3
     17 * Version: 1.9.0
    1818 * Requires at least: 6.8
    1919 * Requires PHP: 8.3
     
    5656 * Define plugin constants.
    5757 */
    58 define( 'VMFO_VERSION', '1.8.3' );
     58define( 'VMFO_VERSION', '1.9.0' );
    5959define( 'VMFO_FILE', __FILE__ );
    6060define( 'VMFO_PATH', __DIR__ . '/' );
     
    108108
    109109    return $value === '1';
     110}
     111
     112/**
     113 * Check if the current WordPress version is 7.0 or later.
     114 *
     115 * Used to conditionally load WP 7-specific style overrides that align
     116 * with the new "Modern" admin color scheme and design tokens.
     117 *
     118 * @since 1.9.0
     119 *
     120 * @return bool True when running on WordPress 7.0+.
     121 */
     122function vmfo_is_wp7(): bool {
     123    return version_compare( get_bloginfo( 'version' ), '7.0', '>=' );
    110124}
    111125
  • virtual-media-folders/trunk/readme.txt

    r3477453 r3479547  
    44Requires at least: 6.8
    55Tested up to: 7.0
    6 Stable tag: 1.8.3
     6Stable tag: 1.9.0
    77Requires PHP: 8.3
    88License: GPLv2 or later
     
    130130
    131131== Changelog ==
     132
     133= 1.9.0 =
     134* Added: WordPress 7.0+ UI compatibility layer (`vmfo_is_wp7()` helper function)
     135* Added: Conditional WP 7+ style overrides for admin sidebar and editor modal
    132136
    133137= 1.8.3 =
  • virtual-media-folders/trunk/src/Admin.php

    r3468920 r3479547  
    128128                return $classes . ' vmf-folder-view-server';
    129129            } );
     130        }
     131
     132        // On WP 7.0+, override the sidebar background to match the new gray scale.
     133        if ( vmfo_is_wp7() ) {
     134            $critical_css .= '
     135                .vmf-folder-tree-sidebar {
     136                    background: #f0f0f0;
     137                    border-right-color: #ddd;
     138                }
     139            ';
    130140        }
    131141
     
    469479            $asset[ 'version' ] ?? VMFO_VERSION
    470480        );
     481
     482        // Enqueue WP 7.0+ compatibility overrides.
     483        if ( vmfo_is_wp7() ) {
     484            $wp7_asset_file = VMFO_PATH . 'build/admin-wp7.asset.php';
     485            $wp7_version    = file_exists( $wp7_asset_file )
     486                ? ( include $wp7_asset_file )['version'] ?? VMFO_VERSION
     487                : VMFO_VERSION;
     488
     489            wp_enqueue_style(
     490                'vmfo-admin-wp7',
     491                VMFO_URL . 'build/admin-wp7.css',
     492                [ 'vmfo-admin', 'wp-base-styles' ],
     493                $wp7_version
     494            );
     495        }
    471496
    472497        // Determine the folder view URL based on showAllMedia setting.
  • virtual-media-folders/trunk/src/Editor.php

    r3457072 r3479547  
    7575        );
    7676
     77        // Enqueue WP 7.0+ compatibility overrides.
     78        if ( vmfo_is_wp7() ) {
     79            $wp7_asset_file = VMFO_PATH . 'build/editor-wp7.asset.php';
     80            $wp7_version    = file_exists( $wp7_asset_file )
     81                ? ( include $wp7_asset_file )['version'] ?? VMFO_VERSION
     82                : VMFO_VERSION;
     83
     84            wp_enqueue_style(
     85                'vmfo-editor-wp7',
     86                VMFO_URL . 'build/editor-wp7.css',
     87                [ self::SCRIPT_HANDLE, 'wp-base-styles' ],
     88                $wp7_version
     89            );
     90        }
     91
    7792        // Pass folder data to JavaScript.
    7893        wp_add_inline_script(
  • virtual-media-folders/trunk/vendor/composer/installed.php

    r3477453 r3479547  
    22    'root' => array(
    33        'name' => 'soderlind/virtual-media-folders',
    4         'pretty_version' => '1.8.3',
    5         'version' => '1.8.3.0',
    6         'reference' => '6a250a672ece5b0dbb2075e77388b0dbd58585af',
     4        'pretty_version' => '1.9.0',
     5        'version' => '1.9.0.0',
     6        'reference' => 'b5ec7847aec4639da93c5c3f5c3e941d93b7eb08',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'soderlind/virtual-media-folders' => array(
    14             'pretty_version' => '1.8.3',
    15             'version' => '1.8.3.0',
    16             'reference' => '6a250a672ece5b0dbb2075e77388b0dbd58585af',
     14            'pretty_version' => '1.9.0',
     15            'version' => '1.9.0.0',
     16            'reference' => 'b5ec7847aec4639da93c5c3f5c3e941d93b7eb08',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • virtual-media-folders/trunk/virtual-media-folders.php

    r3477453 r3479547  
    1515 * Plugin Name: Virtual Media Folders
    1616 * Description: Virtual folder organization and smart management for the WordPress Media Library.
    17  * Version: 1.8.3
     17 * Version: 1.9.0
    1818 * Requires at least: 6.8
    1919 * Requires PHP: 8.3
     
    5656 * Define plugin constants.
    5757 */
    58 define( 'VMFO_VERSION', '1.8.3' );
     58define( 'VMFO_VERSION', '1.9.0' );
    5959define( 'VMFO_FILE', __FILE__ );
    6060define( 'VMFO_PATH', __DIR__ . '/' );
     
    108108
    109109    return $value === '1';
     110}
     111
     112/**
     113 * Check if the current WordPress version is 7.0 or later.
     114 *
     115 * Used to conditionally load WP 7-specific style overrides that align
     116 * with the new "Modern" admin color scheme and design tokens.
     117 *
     118 * @since 1.9.0
     119 *
     120 * @return bool True when running on WordPress 7.0+.
     121 */
     122function vmfo_is_wp7(): bool {
     123    return version_compare( get_bloginfo( 'version' ), '7.0', '>=' );
    110124}
    111125
Note: See TracChangeset for help on using the changeset viewer.