Skip to content

Commit

Permalink
Merge pull request #1145 from WPChill/2.11.3
Browse files Browse the repository at this point in the history
2.11.3
  • Loading branch information
razvanaldea89 authored Nov 27, 2024
2 parents abd5cd8 + 60304db commit bddef2c
Show file tree
Hide file tree
Showing 25 changed files with 1,769 additions and 171 deletions.
27 changes: 0 additions & 27 deletions .wordpress-org/icon.svg

This file was deleted.

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.2
* Version: 2.11.3
* 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.2' );
define( 'MODULA_LITE_VERSION', '2.11.3' );
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Button } from '@wordpress/components';
import he from 'he';

export function NotificationActions( { actions, id, onDismiss } ) {

const handleClick = (action, id) => {
if (action.callback && typeof window[action.callback] === 'function') {
window[action.callback](action, id);
Expand All @@ -20,7 +19,7 @@ export function NotificationActions( { actions, id, onDismiss } ) {
<Button
key={index}
className={action.class || 'notification-action'}
{...(action.url ? { href: action.url } : {})}
{...(action.url ? { href: he.decode(action.url) } : {})}
{...(action.id ? { id: action.id } : {})}
target={action.target || ''}
text={he.decode(action.label || __('Action', 'modula-best-grid-gallery'))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export function NotificationsList() {
};

useEffect(() => {

visibleNotifications.forEach( (notification) => {
if (notification.timed && openPanels.includes( notification.id ) ) {
setTimeout(() => {
Expand Down
7 changes: 3 additions & 4 deletions apps/notification-system/query/useNotificationDismiss.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { useMutation } from '@tanstack/react-query';
import apiFetch from '@wordpress/api-fetch';

const dismissNotice = async ( data ) => {
console.error(data);
const dismissNotice = async ( {id, permanent} ) => {
const response = await apiFetch( {
path: '/modula-api/v1/notifications/',
path: `/modula/v1/notifications/${id || ''}`,
method: 'DELETE',
data: data,
data: { permanent },
} );
return response;
};
Expand Down
2 changes: 1 addition & 1 deletion apps/notification-system/query/useNotificationQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const useNotificationQuery = () => {
queryKey: ['notifications'],
queryFn: async () => {
const data = await apiFetch({
path: `/modula-api/v1/notifications`,
path: `/modula/v1/notifications`,
method: 'GET',
});
return data;
Expand Down
2 changes: 1 addition & 1 deletion apps/notification-system/query/useNotificationsDismiss.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import apiFetch from '@wordpress/api-fetch';

const dismissNotices = () => {
const response = apiFetch( {
path: '/modula-api/v1/notifications',
path: '/modula/v1/notifications',
method: 'DELETE',
} );
return response;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/admin/modula-gallery-upload.min.js

Large diffs are not rendered by default.

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' => '1497c3d7b5e7f9e39328');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'e9b0768b4f909a8b9e65');
2 changes: 1 addition & 1 deletion assets/js/admin/notification-system/notification-system.js

Large diffs are not rendered by default.

Loading

0 comments on commit bddef2c

Please sign in to comment.