Version Description
- 13.06.2019 =
- Fixed: WordPress default login url slug when using 404 - Using template_include for custom 404 template.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 1.6.8 |
Comparing to | |
See all releases |
Code changes from version 1.6.7 to 1.6.8
includes/SupremeModulesForDivi.php
CHANGED
@@ -27,7 +27,7 @@ class DSM_SupremeModulesForDivi extends DiviExtension {
|
|
27 |
*
|
28 |
* @var string
|
29 |
*/
|
30 |
-
public $version = '1.6.
|
31 |
|
32 |
/**
|
33 |
* DSM_SupremeModulesForDivi constructor.
|
27 |
*
|
28 |
* @var string
|
29 |
*/
|
30 |
+
public $version = '1.6.8';
|
31 |
|
32 |
/**
|
33 |
* DSM_SupremeModulesForDivi constructor.
|
includes/class-dsm-supreme-modules-for-divi.php
CHANGED
@@ -197,7 +197,7 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
197 |
add_action( 'add_meta_boxes', array( $this, 'dsm_add_header_footer_meta_box' ), 11 );
|
198 |
add_action( 'save_post', array( $this, 'dsm_save_header_footer_meta_box' ), 10, 3 );
|
199 |
add_action( 'et_after_main_content', array( $this, 'dsm_custom_footer' ) );
|
200 |
-
|
201 |
add_action( 'wp_print_scripts', array( $this, 'dsm_custom_footer_settings' ), 30 );
|
202 |
add_action( 'admin_notices', array( $this, 'dsm_header_footer_admin_notice' ) );
|
203 |
}
|
@@ -614,7 +614,7 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
614 |
}
|
615 |
}
|
616 |
}
|
617 |
-
public function dsm_redirect_404() {
|
618 |
$dsm_four_zero_four_args = array(
|
619 |
'post_type' => 'dsm_header_footer',
|
620 |
'meta_key' => 'dsm-header-footer-meta-box-options',
|
@@ -635,10 +635,11 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
635 |
);
|
636 |
|
637 |
if ( $dsm_four_zero_four_template->have_posts() ) {
|
638 |
-
if ( is_404() )
|
639 |
-
|
640 |
-
|
641 |
-
|
|
|
642 |
}
|
643 |
}
|
644 |
public function dsm_custom_footer_settings() {
|
197 |
add_action( 'add_meta_boxes', array( $this, 'dsm_add_header_footer_meta_box' ), 11 );
|
198 |
add_action( 'save_post', array( $this, 'dsm_save_header_footer_meta_box' ), 10, 3 );
|
199 |
add_action( 'et_after_main_content', array( $this, 'dsm_custom_footer' ) );
|
200 |
+
add_filter( 'template_include', array( $this, 'dsm_redirect_404' ) );
|
201 |
add_action( 'wp_print_scripts', array( $this, 'dsm_custom_footer_settings' ), 30 );
|
202 |
add_action( 'admin_notices', array( $this, 'dsm_header_footer_admin_notice' ) );
|
203 |
}
|
614 |
}
|
615 |
}
|
616 |
}
|
617 |
+
public function dsm_redirect_404($template) {
|
618 |
$dsm_four_zero_four_args = array(
|
619 |
'post_type' => 'dsm_header_footer',
|
620 |
'meta_key' => 'dsm-header-footer-meta-box-options',
|
635 |
);
|
636 |
|
637 |
if ( $dsm_four_zero_four_template->have_posts() ) {
|
638 |
+
if ( is_404() ) {
|
639 |
+
return plugin_dir_path( __FILE__ ) . 'templates/page-template-404.php';
|
640 |
+
} else {
|
641 |
+
return $template;
|
642 |
+
}
|
643 |
}
|
644 |
}
|
645 |
public function dsm_custom_footer_settings() {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.2
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.6.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -99,6 +99,9 @@ Your existing modules/content will work with pro version. So you won't lose any
|
|
99 |
|
100 |
|
101 |
== Changelog ==
|
|
|
|
|
|
|
102 |
= 1.6.7 - 13.08.2019 =
|
103 |
* Fixed: Divi footer template for 404 page.
|
104 |
* Enhanced: 404 redirect template.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.6.8
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
99 |
|
100 |
|
101 |
== Changelog ==
|
102 |
+
= 1.6.8 - 13.06.2019 =
|
103 |
+
* Fixed: WordPress default login url slug when using 404 - Using template_include for custom 404 template.
|
104 |
+
|
105 |
= 1.6.7 - 13.08.2019 =
|
106 |
* Fixed: Divi footer template for 404 page.
|
107 |
* Enhanced: 404 redirect template.
|
supreme-modules-for-divi.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Divi Supreme Modules
|
4 |
Plugin URI: https://suprememodules.com
|
5 |
Description: Supreme Modules enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
|
6 |
-
Version: 1.6.
|
7 |
Author: Supreme Modules
|
8 |
Author URI: https://suprememodules.com/about-us/
|
9 |
License: GPL2
|
@@ -27,7 +27,7 @@ along with Supreme Modules. If not, see https://www.gnu.org/licenses/gpl-2.0.htm
|
|
27 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
28 |
|
29 |
if ( ! defined('DSM_VERSION') ) {
|
30 |
-
define( 'DSM_VERSION', '1.6.
|
31 |
}
|
32 |
if ( ! defined('DSM_SHORTCODE') ) {
|
33 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|
3 |
Plugin Name: Divi Supreme Modules
|
4 |
Plugin URI: https://suprememodules.com
|
5 |
Description: Supreme Modules enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
|
6 |
+
Version: 1.6.8
|
7 |
Author: Supreme Modules
|
8 |
Author URI: https://suprememodules.com/about-us/
|
9 |
License: GPL2
|
27 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
28 |
|
29 |
if ( ! defined('DSM_VERSION') ) {
|
30 |
+
define( 'DSM_VERSION', '1.6.8' );
|
31 |
}
|
32 |
if ( ! defined('DSM_SHORTCODE') ) {
|
33 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|