Plugin Directory

Changeset 2833198


Ignore:
Timestamp:
12/13/2022 06:28:46 PM (3 years ago)
Author:
iamfriendly
Message:

Update to version 0.1.4 from GitHub

Location:
content-visibility-user-role
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • content-visibility-user-role/tags/0.1.4/content-visibility-user-role.php

    r2568522 r2833198  
    1212 * Plugin URI:  https://richardtape.com/content-visibility/
    1313 * Description: [Content Visibility Add-On] Determine which user role(s) can see the content blocks of your choosing.
    14  * Version:     0.1.3
     14 * Version:     0.1.4
    1515 * Author:      Richard Tape
    1616 * Author URI:  https://richardtape.com
  • content-visibility-user-role/tags/0.1.4/includes/block-visibility-user-role.php

    r2482514 r2833198  
    2424function enqueue_editor_assets() { // phpcs:ignore
    2525
     26    $prereqs = array(
     27        'wp-blocks',
     28        'wp-i18n',
     29        'wp-element',
     30        'wp-plugins',
     31        'wp-dom-ready',
     32    );
     33
     34    // The 5.8 widgets screen requires a special editor?! Feelsbadman.
     35    $CVEditor = new \RichardTape\ContentVisibility\Editor();
     36    if ( $CVEditor->on_widgets_screen() ) {
     37        $prereqs[] = 'wp-edit-widgets';
     38    } else {
     39        $prereqs[] = 'wp-editor';
     40    }
     41
    2642    wp_register_script(
    2743        'content-visibility-user-role',
    2844        plugins_url( '/build/index.js', dirname( __FILE__ ) ),
    29         array(
    30             'wp-blocks',
    31             'wp-i18n',
    32             'wp-element',
    33             'wp-editor',
    34             'wp-plugins',
    35             'wp-edit-post',
    36         ),
     45        $prereqs,
    3746        filemtime( plugin_dir_path( __DIR__ ) . 'build/index.js' ),
    3847        true
  • content-visibility-user-role/tags/0.1.4/readme.txt

    r2568522 r2833198  
    55Requires at least: 5.0
    66Tested up to: 5.8.0
    7 Stable tag: 0.1.3
     7Stable tag: 0.1.4
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 0.1.4 =
     43* WP 6.1.1 compatibility.
     44* Fixed warning in widgets screen which said we were using the incorrect editor.
     45
    4246= 0.1.3 =
    4347* Added the icon to show when a rule is selected for a block to make it easier to see which rules are active for a block.
  • content-visibility-user-role/trunk/content-visibility-user-role.php

    r2568522 r2833198  
    1212 * Plugin URI:  https://richardtape.com/content-visibility/
    1313 * Description: [Content Visibility Add-On] Determine which user role(s) can see the content blocks of your choosing.
    14  * Version:     0.1.3
     14 * Version:     0.1.4
    1515 * Author:      Richard Tape
    1616 * Author URI:  https://richardtape.com
  • content-visibility-user-role/trunk/includes/block-visibility-user-role.php

    r2482514 r2833198  
    2424function enqueue_editor_assets() { // phpcs:ignore
    2525
     26    $prereqs = array(
     27        'wp-blocks',
     28        'wp-i18n',
     29        'wp-element',
     30        'wp-plugins',
     31        'wp-dom-ready',
     32    );
     33
     34    // The 5.8 widgets screen requires a special editor?! Feelsbadman.
     35    $CVEditor = new \RichardTape\ContentVisibility\Editor();
     36    if ( $CVEditor->on_widgets_screen() ) {
     37        $prereqs[] = 'wp-edit-widgets';
     38    } else {
     39        $prereqs[] = 'wp-editor';
     40    }
     41
    2642    wp_register_script(
    2743        'content-visibility-user-role',
    2844        plugins_url( '/build/index.js', dirname( __FILE__ ) ),
    29         array(
    30             'wp-blocks',
    31             'wp-i18n',
    32             'wp-element',
    33             'wp-editor',
    34             'wp-plugins',
    35             'wp-edit-post',
    36         ),
     45        $prereqs,
    3746        filemtime( plugin_dir_path( __DIR__ ) . 'build/index.js' ),
    3847        true
  • content-visibility-user-role/trunk/readme.txt

    r2568522 r2833198  
    55Requires at least: 5.0
    66Tested up to: 5.8.0
    7 Stable tag: 0.1.3
     7Stable tag: 0.1.4
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 0.1.4 =
     43* WP 6.1.1 compatibility.
     44* Fixed warning in widgets screen which said we were using the incorrect editor.
     45
    4246= 0.1.3 =
    4347* Added the icon to show when a rule is selected for a block to make it easier to see which rules are active for a block.
Note: See TracChangeset for help on using the changeset viewer.