Skip to content

Commit

Permalink
Merge pull request #58 from dcooney/feature/settings-role
Browse files Browse the repository at this point in the history
Feature/settings role
  • Loading branch information
dcooney authored May 12, 2023
2 parents cf26240 + b3105d8 commit 1a67ab1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
15 changes: 10 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: <https://connekthq.com/donate/>
Tags: Unsplash, Openverse, Pixabay, Pexels, Stock Photos, media library, prototyping, photos, stock photo, image upload, upload, free photos
Requires at least: 4.0
Tested up to: 6.2
Stable tag: 5.3.0
Stable tag: 5.3.1
License: GPLv2 or later
License URI: <http://www.gnu.org/licenses/gpl-2.0.html>

Expand Down Expand Up @@ -145,11 +145,16 @@ How to install Instant Images.

== Changelog ==

= 5.3.1 - May 12, 2023 =
* UPDATE: Updated default user role to manage_options on the Instant Images settings page.
* NEW: Added new instant_images_settings_user_role hook to adjust the user role for the Instant Images settings page.
* FIX: Adding fix for error on Site Editor screen when using a FSE theme.

= 5.3.0 - May 8, 2023 =
* NEW - Added new standalone Instant Images settings page and added new settings fields.
* NEW - Added initial support for upcoming Instant Images Pro plugin.
* FIX - Fixed issue with missing `createRoot` function in WP < 6.2 that would cause Instant Images to fail to load.
* UPDATE - General styling and UI updates throughout app.
* NEW: Added new standalone Instant Images settings page and added new settings fields.
* NEW: Added initial support for upcoming Instant Images Pro plugin.
* FIX: Fixed issue with missing `createRoot` function in WP < 6.2 that would cause Instant Images to fail to load.
* UPDATE: General styling and UI updates throughout app.

= 5.2.1 - April 20, 2023 =
* UPDATE: Adds sessionStorage for storing API results in browser session to reduce proxy usage and API requests. Session data is stored for 1 hour.
Expand Down
2 changes: 1 addition & 1 deletion admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function instant_images_create_page() {
'options-general.php',
INSTANT_IMAGES_TITLE,
INSTANT_IMAGES_TITLE,
apply_filters( 'instant_images_user_role', 'upload_files' ),
apply_filters( 'instant_images_settings_user_role', 'manage_options' ),
INSTANT_IMAGES_NAME . '-settings',
'instant_images_settings_page'
);
Expand Down
8 changes: 4 additions & 4 deletions instant-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Twitter: @connekthq
* Author URI: https://connekthq.com
* Text Domain: instant-images
* Version: 5.3.0
* Version: 5.3.1
* License: GPL
* Copyright: Darren Cooney & Connekt Media
*
Expand All @@ -18,8 +18,8 @@
exit;
}

define( 'INSTANT_IMAGES_VERSION', '5.3.0' );
define( 'INSTANT_IMAGES_RELEASE', 'May 8, 2023' );
define( 'INSTANT_IMAGES_VERSION', '5.3.1' );
define( 'INSTANT_IMAGES_RELEASE', 'May 12, 2023' );

/**
* InstantImages class
Expand Down Expand Up @@ -146,7 +146,7 @@ public static function instant_img_get_settings() {
* @since 3.0
*/
public function enqueue_block_editor() {
if ( $this::instant_img_has_access() && $this::instant_img_not_current_screen( [ 'widgets' ] ) ) {
if ( $this::instant_img_has_access() && $this::instant_img_not_current_screen( [ 'widgets', 'site-editor' ] ) ) {
wp_enqueue_script(
'instant-images-plugin-sidebar',
INSTANT_IMAGES_URL . 'build/plugin-sidebar/index.js',
Expand Down

0 comments on commit 1a67ab1

Please sign in to comment.