Skip to content

Commit

Permalink
quickfix error with Divi builder & undefined get_current_screen() fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
TeoAlex committed Jul 30, 2024
1 parent df8b647 commit 392e61f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
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.8.18
* Version: 2.8.19
* 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.8.18' );
define( 'MODULA_LITE_VERSION', '2.8.19' );
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
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
= 2.8.19 - 30.07.2024 =
Fixed: Error with Divi builder.

= 2.8.18 - 30.07.2024 =
Fixed: Images inserted from the WordPress Media Library were not scaling correctly in the custom grid-type gallery.

Expand Down
5 changes: 5 additions & 0 deletions includes/class-modula.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ public function admin_scripts( $hook ) {
}

public function modula_enqueue_media(){

if( ! is_admin() ){
return;
}

// Get the current screen object.
$screen = get_current_screen();

Expand Down
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.8.18",
"version": "2.8.19",
"description": "Modula Image Gallery build tools",
"author": "WPChill",
"license": "GPL-2.0-or-later",
Expand Down
5 changes: 4 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.6
Requires PHP: 5.6
Stable tag: 2.8.18
Stable tag: 2.8.19

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 @@ -154,6 +154,9 @@ Free support is included only with a PRO license: [Buy Modula PRO](https://wp-mo
4. Responsive galleries created with Modula

== Changelog ==
= 2.8.19 - 30.07.2024 =
Fixed: Error with Divi builder.

= 2.8.18 - 30.07.2024 =
Fixed: Images inserted from the WordPress Media Library were not scaling correctly in the custom grid-type gallery.

Expand Down

0 comments on commit 392e61f

Please sign in to comment.