Skip to content

Commit 1a67ab1

Browse files
authored
Merge pull request #58 from dcooney/feature/settings-role
Feature/settings role
2 parents cf26240 + b3105d8 commit 1a67ab1

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

README.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: <https://connekthq.com/donate/>
44
Tags: Unsplash, Openverse, Pixabay, Pexels, Stock Photos, media library, prototyping, photos, stock photo, image upload, upload, free photos
55
Requires at least: 4.0
66
Tested up to: 6.2
7-
Stable tag: 5.3.0
7+
Stable tag: 5.3.1
88
License: GPLv2 or later
99
License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
1010

@@ -145,11 +145,16 @@ How to install Instant Images.
145145

146146
== Changelog ==
147147

148+
= 5.3.1 - May 12, 2023 =
149+
* UPDATE: Updated default user role to manage_options on the Instant Images settings page.
150+
* NEW: Added new instant_images_settings_user_role hook to adjust the user role for the Instant Images settings page.
151+
* FIX: Adding fix for error on Site Editor screen when using a FSE theme.
152+
148153
= 5.3.0 - May 8, 2023 =
149-
* NEW - Added new standalone Instant Images settings page and added new settings fields.
150-
* NEW - Added initial support for upcoming Instant Images Pro plugin.
151-
* FIX - Fixed issue with missing `createRoot` function in WP < 6.2 that would cause Instant Images to fail to load.
152-
* UPDATE - General styling and UI updates throughout app.
154+
* NEW: Added new standalone Instant Images settings page and added new settings fields.
155+
* NEW: Added initial support for upcoming Instant Images Pro plugin.
156+
* FIX: Fixed issue with missing `createRoot` function in WP < 6.2 that would cause Instant Images to fail to load.
157+
* UPDATE: General styling and UI updates throughout app.
153158

154159
= 5.2.1 - April 20, 2023 =
155160
* UPDATE: Adds sessionStorage for storing API results in browser session to reduce proxy usage and API requests. Session data is stored for 1 hour.

admin/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function instant_images_create_page() {
3232
'options-general.php',
3333
INSTANT_IMAGES_TITLE,
3434
INSTANT_IMAGES_TITLE,
35-
apply_filters( 'instant_images_user_role', 'upload_files' ),
35+
apply_filters( 'instant_images_settings_user_role', 'manage_options' ),
3636
INSTANT_IMAGES_NAME . '-settings',
3737
'instant_images_settings_page'
3838
);

instant-images.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Twitter: @connekthq
88
* Author URI: https://connekthq.com
99
* Text Domain: instant-images
10-
* Version: 5.3.0
10+
* Version: 5.3.1
1111
* License: GPL
1212
* Copyright: Darren Cooney & Connekt Media
1313
*
@@ -18,8 +18,8 @@
1818
exit;
1919
}
2020

21-
define( 'INSTANT_IMAGES_VERSION', '5.3.0' );
22-
define( 'INSTANT_IMAGES_RELEASE', 'May 8, 2023' );
21+
define( 'INSTANT_IMAGES_VERSION', '5.3.1' );
22+
define( 'INSTANT_IMAGES_RELEASE', 'May 12, 2023' );
2323

2424
/**
2525
* InstantImages class
@@ -146,7 +146,7 @@ public static function instant_img_get_settings() {
146146
* @since 3.0
147147
*/
148148
public function enqueue_block_editor() {
149-
if ( $this::instant_img_has_access() && $this::instant_img_not_current_screen( [ 'widgets' ] ) ) {
149+
if ( $this::instant_img_has_access() && $this::instant_img_not_current_screen( [ 'widgets', 'site-editor' ] ) ) {
150150
wp_enqueue_script(
151151
'instant-images-plugin-sidebar',
152152
INSTANT_IMAGES_URL . 'build/plugin-sidebar/index.js',

0 commit comments

Comments
 (0)