Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.11.5 #1153

Merged
merged 2 commits into from
Dec 5, 2024
Merged

2.11.5 #1153

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Modula.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://wp-modula.com/
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
* Author: WPChill
* Version: 2.11.4
* Version: 2.11.5
* Author URI: https://www.wpchill.com/
* License: GPLv3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -47,7 +47,7 @@
* @since 2.0.2
*/

define( 'MODULA_LITE_VERSION', '2.11.4' );
define( 'MODULA_LITE_VERSION', '2.11.5' );
define( 'MODULA_PATH', plugin_dir_path( __FILE__ ) );
define( 'MODULA_URL', plugin_dir_url( __FILE__ ) );
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL', 'https://wp-modula.com' );
Expand Down
8 changes: 7 additions & 1 deletion apps/notification-system/query/client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { QueryClient } from '@tanstack/react-query';

export const queryClient = new QueryClient();
export const queryClient = new QueryClient( {
defaultOptions: {
queries: {
retry: ( failureCount ) => failureCount < 5,
},
},
} );
2 changes: 1 addition & 1 deletion apps/notification-system/query/useNotificationQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export const useNotificationQuery = () => {
});
return data;
},
refetchInterval: 5000,
refetchInterval: ( query ) => query?.state?.fetchFailureCount < 5 ? 5000 : false,
});
};
13 changes: 9 additions & 4 deletions assets/js/admin/modula-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,16 @@
}
});

const sideSortables = document.getElementById('side-sortables');
const submitDiv = document.getElementById('submitdiv');
const offsetTop = submitDiv.offsetTop + 100;
const stickyClass = 'is-sticky';
const checkSticky = () => {
const sideSortables = document.getElementById('side-sortables');
const submitDiv = document.getElementById('submitdiv');

if ( ! submitDiv || ! sideSortables ) {
return;
}

const offsetTop = submitDiv.offsetTop + 100;
const stickyClass = 'is-sticky';
if (window.scrollY >= offsetTop) {
sideSortables.classList.add(stickyClass);
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '5bdd671c336974c091d6');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'c106a42061a7c2230c5c');
2 changes: 1 addition & 1 deletion assets/js/admin/notification-system/notification-system.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
== Changelog ==
= 2.11.5 - 05.12.2024 =
Fixed: Resolved infinite REST notification retries when the user lacks the manage_options capability.
Fixed: Addressed an undefined JavaScript error that occurred outside the Modula edit screen.

= 2.11.4 - 04.12.2024 =
Fixed: Search for galleries with numeric title. ( [#1135]( https://github.com/WPChill/modula-lite/issues/1135) )
Fixed: Incompatibility with "Multisite Shared Media Library" plugin ( [#1143]( https://github.com/WPChill/modula-lite/issues/1143) )
Expand Down
2 changes: 1 addition & 1 deletion includes/class-modula.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ public function after_modula_update() {
*/
public function notification_system_scripts( ) {

if ( ! $this->is_modula_admin_page() ) {
if ( ! $this->is_modula_admin_page() || ! current_user_can( 'manage_options' ) ) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modula-best-grid-gallery",
"version": "2.11.4",
"version": "2.11.5",
"description": "Modula Image Gallery build tools",
"author": "WPChill",
"license": "GPL-2.0-or-later",
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: best gallery plugin, image gallery, video gallery, free gallery, wordpress
Requires at least: 5.3
Tested up to: 6.7
Requires PHP: 5.6
Stable tag: 2.11.4
Stable tag: 2.11.5

License: GNU General Public License v3.0 or later
The WordPress gallery plugin that's highly customizable & you can use to impress your clients. Create beautiful image galleries in minutes.
Expand Down Expand Up @@ -158,6 +158,11 @@ Free support is included only with a PRO license: [Buy Modula PRO](https://wp-mo
4. Responsive galleries created with Modula

== Changelog ==

= 2.11.5 - 05.12.2024 =
Fixed: Resolved infinite REST notification retries when the user lacks the manage_options capability.
Fixed: Addressed an undefined JavaScript error that occurred outside the Modula edit screen.

= 2.11.4 - 04.12.2024 =
Fixed: Search for galleries with numeric title. ( [#1135]( https://github.com/WPChill/modula-lite/issues/1135) )
Fixed: Incompatibility with "Multisite Shared Media Library" plugin ( [#1143]( https://github.com/WPChill/modula-lite/issues/1143) )
Expand Down
Loading