Skip to content

Commit ff2a6b3

Browse files
author
nikeo
committed
v3.1.3 build v2
1 parent 5a0453e commit ff2a6b3

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

__build__

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 23f5819e99470180f7611f6919780f2b3d189872
1+
Subproject commit b79db6f9bcad10c1702e4229b7d10bf8258efc6d

assets/czr/sek/js/ccat-sek-control.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/sektions/ccat-constants-and-helper-functions.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3989,6 +3989,17 @@ function sek_add_customize_link() {
39893989
if ( is_customize_preview() && $wp_customize->changeset_post_id() && !current_user_can( get_post_type_object( 'customize_changeset' )->cap->edit_post, $wp_customize->changeset_post_id() ) ) {
39903990
return;
39913991
}
3992+
// Previewing a post ?
3993+
// case when previewing a draft post
3994+
if ( array_key_exists( 'preview', $_GET ) && $_GET['preview'] )
3995+
return;
3996+
// case when previewing a future scheduled post
3997+
if ( array_key_exists( 'p', $_GET ) ) {
3998+
$post_id = $_GET['p'];
3999+
$post = get_post( $post_id );
4000+
if ( $post && 'publish' !== $post->post_status && 'private' !== $post->post_status )
4001+
return;
4002+
}
39924003

39934004
$current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
39944005
if ( is_customize_preview() && $wp_customize->changeset_uuid() ) {
@@ -4047,13 +4058,13 @@ function sek_get_customize_url_when_is_admin( $post = null ) {
40474058
// $customize_url = get_permalink( $post->ID );
40484059
// }
40494060
// } else
4050-
40514061
if ( 'edit' == $current_screen->base
40524062
&& ( $post_type_object = get_post_type_object( $current_screen->post_type ) )
40534063
&& ( $post_type_object->public )
40544064
&& ( $post_type_object->show_in_admin_bar )
40554065
&& ( get_post_type_archive_link( $post_type_object->name ) )
4056-
&& !( 'post' === $post_type_object->name && 'posts' === get_option( 'show_on_front' ) ) )
4066+
&& !( 'post' === $post_type_object->name && 'posts' === get_option( 'show_on_front' ) )
4067+
&& ( 'publish' === $post_type_object->post_status && 'private' === $post_type_object->post_status ) )
40574068
{
40584069
$customize_url = get_post_type_archive_link( $current_screen->post_type );
40594070
} elseif ( 'term' == $current_screen->base

nimble-builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Nimble Page Builder
44
* Plugin URI: https://nimblebuilder.com
55
* Description: Simple and smart companion that allows you to insert sections into any existing page, create landing pages or entire websites including header and footer.
6-
* Version: 3.1.2
6+
* Version: 3.1.3
77
* Text Domain: nimble-builder
88
* Author: Press Customizr
99
* Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
@@ -16,7 +16,7 @@
1616
/* ------------------------------------------------------------------------- *
1717
* CONSTANTS
1818
/* ------------------------------------------------------------------------- */
19-
$current_version = "3.1.2";
19+
$current_version = "3.1.3";
2020

2121
if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
2222
if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nimble-builder",
3-
"version": "3.1.2",
3+
"version": "3.1.3",
44
"description": "Simple and smart companion that allows you to insert sections into any existing page, create landing pages or entire websites including header and footer.",
55
"author": "nikeo",
66
"license": "GNU GPL v3.0",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nimble Builder v3.1.2 [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
1+
# Nimble Builder v3.1.3 [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
22
![Nimble Builder](/nimble_banner.png)
33

44
> Simple and smart companion that allows you to insert sections into any existing page, create landing pages or entire websites including header and footer.

0 commit comments

Comments
 (0)