Version Description
- Even more security updates! Security for the win!
Download this release
Release Info
Developer | DavidWells |
Plugin | WordPress Landing Pages |
Version | 1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.7.8 to 1.7.9
classes/class.branching.php
CHANGED
@@ -31,8 +31,7 @@ if ( !class_exists('Landing_Pages_Branching') ) {
|
|
31 |
public static function add_branches( $branches ) {
|
32 |
$branches['landing-pages'] = array(
|
33 |
'git' => 'https://codeload.github.com/inboundnow/landing-pages/zip/master',
|
34 |
-
'svn' => 'https://
|
35 |
-
//'svn' => 'https://downloads.wordpress.org/plugin/landing-pages.'.LANDINGPAGES_CURRENT_VERSION.'.zip'
|
36 |
);
|
37 |
|
38 |
return $branches;
|
31 |
public static function add_branches( $branches ) {
|
32 |
$branches['landing-pages'] = array(
|
33 |
'git' => 'https://codeload.github.com/inboundnow/landing-pages/zip/master',
|
34 |
+
'svn' => 'https://downloads.wordpress.org/plugin/landing-pages.'.LANDINGPAGES_CURRENT_VERSION.'.zip'
|
|
|
35 |
);
|
36 |
|
37 |
return $branches;
|
landing-pages.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Landing Pages
|
4 |
Plugin URI: http://www.inboundnow.com/landing-pages/
|
5 |
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
|
6 |
-
Version: 1.7.
|
7 |
Author: Inbound Now
|
8 |
Author URI: http://www.inboundnow.com/
|
9 |
Text Domain: landing-pages
|
@@ -102,7 +102,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
|
|
102 |
*/
|
103 |
private static function load_constants() {
|
104 |
|
105 |
-
define('LANDINGPAGES_CURRENT_VERSION', '1.7.
|
106 |
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
|
107 |
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
108 |
define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
|
@@ -152,7 +152,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
|
|
152 |
include_once('modules/module.templates.php');
|
153 |
include_once('modules/module.store.php');
|
154 |
include_once('modules/module.customizer.php');
|
155 |
-
|
156 |
|
157 |
BREAK;
|
158 |
|
3 |
Plugin Name: Landing Pages
|
4 |
Plugin URI: http://www.inboundnow.com/landing-pages/
|
5 |
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
|
6 |
+
Version: 1.7.9
|
7 |
Author: Inbound Now
|
8 |
Author URI: http://www.inboundnow.com/
|
9 |
Text Domain: landing-pages
|
102 |
*/
|
103 |
private static function load_constants() {
|
104 |
|
105 |
+
define('LANDINGPAGES_CURRENT_VERSION', '1.7.9' );
|
106 |
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
|
107 |
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
108 |
define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
|
152 |
include_once('modules/module.templates.php');
|
153 |
include_once('modules/module.store.php');
|
154 |
include_once('modules/module.customizer.php');
|
155 |
+
include_once('classes/class.branching.php');
|
156 |
|
157 |
BREAK;
|
158 |
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
7 |
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
|
8 |
Requires at least: 3.8
|
9 |
Tested up to: 4.1
|
10 |
-
Stable Tag: 1.7.
|
11 |
|
12 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
13 |
|
@@ -72,6 +72,9 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
|
|
72 |
4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
|
73 |
|
74 |
== Changelog ==
|
|
|
|
|
|
|
75 |
= 1.7.8 =
|
76 |
* Security Patch
|
77 |
|
7 |
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
|
8 |
Requires at least: 3.8
|
9 |
Tested up to: 4.1
|
10 |
+
Stable Tag: 1.7.9
|
11 |
|
12 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
13 |
|
72 |
4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
|
73 |
|
74 |
== Changelog ==
|
75 |
+
= 1.7.9 =
|
76 |
+
* Even more security updates! Security for the win!
|
77 |
+
|
78 |
= 1.7.8 =
|
79 |
* Security Patch
|
80 |
|
shared/assets/admin/css/global-inbound-admin.css
CHANGED
@@ -12,6 +12,12 @@
|
|
12 |
#inboundnow-media-button {
|
13 |
padding-left: 5px;
|
14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
#wp-admin-bar-ddw-edd-languages-de > .ab-item:before,
|
16 |
#wp-admin-bar-ddw-edd-translations-forum > .ab-item:before {
|
17 |
color: #ff9900;
|
12 |
#inboundnow-media-button {
|
13 |
padding-left: 5px;
|
14 |
}
|
15 |
+
body #calls-to-action .toggle .switch-versions, body #landing-pages .toggle .switch-versions, body #leads .toggle .switch-versions {
|
16 |
+
display: none;
|
17 |
+
}
|
18 |
+
.switch-versions, .switch-versions {
|
19 |
+
|
20 |
+
}
|
21 |
#wp-admin-bar-ddw-edd-languages-de > .ab-item:before,
|
22 |
#wp-admin-bar-ddw-edd-translations-forum > .ab-item:before {
|
23 |
color: #ff9900;
|
shared/classes/class.branching.php
CHANGED
@@ -89,17 +89,17 @@ if ( !class_exists('Inbound_Branching') ) {
|
|
89 |
*/
|
90 |
public static function generate_version_toggle() {
|
91 |
if ( self::$branch == 'svn' ) {
|
92 |
-
$class = "switch-versions
|
93 |
$switch_to = "git";
|
94 |
-
$title = __( 'Switch to
|
95 |
-
$button_text = __( '
|
96 |
} else {
|
97 |
-
$class = "switch-versions
|
98 |
$switch_to = "svn";
|
99 |
$title = __( 'Switch to latest stable release.' , 'inbound-pro' );
|
100 |
-
$button_text = __( '
|
101 |
}
|
102 |
-
return '<
|
103 |
}
|
104 |
|
105 |
/**
|
@@ -134,16 +134,18 @@ if ( !class_exists('Inbound_Branching') ) {
|
|
134 |
|
135 |
jQuery( '.switch-versions' ).on( 'click' , function() {
|
136 |
|
137 |
-
var result = confirm("<?php _e('Are you sure you want toggle beta mode on/off.' , 'inbound-pro' ); ?>");
|
138 |
-
|
139 |
-
if (!result) {
|
140 |
-
return;
|
141 |
-
}
|
142 |
|
143 |
/* get download url */
|
144 |
var branch = jQuery( '#' + this.id ).data( 'branch' );
|
145 |
var plugin = jQuery( '#' + this.id ).data( 'plugin' );
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
/* toggle spinner */
|
148 |
jQuery('#spinner-'+this.id).show();
|
149 |
|
@@ -191,10 +193,7 @@ if ( !class_exists('Inbound_Branching') ) {
|
|
191 |
}
|
192 |
|
193 |
body .toggle .switch-versions {
|
194 |
-
|
195 |
-
font-size:10px;
|
196 |
-
height:23px;
|
197 |
-
line-height:21px;
|
198 |
}
|
199 |
</style>
|
200 |
<?php
|
89 |
*/
|
90 |
public static function generate_version_toggle() {
|
91 |
if ( self::$branch == 'svn' ) {
|
92 |
+
$class = "switch-versions";
|
93 |
$switch_to = "git";
|
94 |
+
$title = __( 'Switch to lastest development release. Warning this should not be performed on a live site.' , 'inbound-pro' );
|
95 |
+
$button_text = __( 'Switch to latest git' , 'inbound-pro' );
|
96 |
} else {
|
97 |
+
$class = "switch-versions";
|
98 |
$switch_to = "svn";
|
99 |
$title = __( 'Switch to latest stable release.' , 'inbound-pro' );
|
100 |
+
$button_text = __( 'Switch to latest svn' , 'inbound-pro' );
|
101 |
}
|
102 |
+
return '<a href="#" class="'.$class.'" id="'.self::$plugin.'-toggle" data-branch="'.$switch_to.'" data-plugin="'.self::$plugin.'" title="'.$title.'">'. $button_text .'</a> <div class="spinner" id="spinner-'.self::$plugin.'-toggle"></span></div>';
|
103 |
}
|
104 |
|
105 |
/**
|
134 |
|
135 |
jQuery( '.switch-versions' ).on( 'click' , function() {
|
136 |
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
/* get download url */
|
139 |
var branch = jQuery( '#' + this.id ).data( 'branch' );
|
140 |
var plugin = jQuery( '#' + this.id ).data( 'plugin' );
|
141 |
|
142 |
+
var result = confirm("<?php _e('Switching branches on a live site should be avoided. Are you sure you would like to switch filesets?' , 'inbound-pro' ); ?>");
|
143 |
+
|
144 |
+
if (!result) {
|
145 |
+
return;
|
146 |
+
}
|
147 |
+
|
148 |
+
|
149 |
/* toggle spinner */
|
150 |
jQuery('#spinner-'+this.id).show();
|
151 |
|
193 |
}
|
194 |
|
195 |
body .toggle .switch-versions {
|
196 |
+
|
|
|
|
|
|
|
197 |
}
|
198 |
</style>
|
199 |
<?php
|
shared/shortcodes/js/shortcodes.js
CHANGED
@@ -355,7 +355,8 @@
|
|
355 |
context: this,
|
356 |
data: {
|
357 |
action: 'inbound_form_get_data',
|
358 |
-
form_id: form_id
|
|
|
359 |
},
|
360 |
|
361 |
success: function (data) {
|
355 |
context: this,
|
356 |
data: {
|
357 |
action: 'inbound_form_get_data',
|
358 |
+
form_id: form_id,
|
359 |
+
nonce: inbound_shortcodes.inbound_shortcode_nonce
|
360 |
},
|
361 |
|
362 |
success: function (data) {
|
shared/shortcodes/shortcodes/forms.php
CHANGED
@@ -536,11 +536,16 @@ if (!function_exists('inbound_form_delete_transient')) {
|
|
536 |
if (!function_exists('inbound_form_save')) {
|
537 |
/* Shortcode moved to shared form class */
|
538 |
add_action('wp_ajax_inbound_form_save', 'inbound_form_save');
|
539 |
-
add_action('wp_ajax_nopriv_inbound_form_save', 'inbound_form_save');
|
|
|
|
|
540 |
|
541 |
-
function inbound_form_save()
|
542 |
-
{
|
543 |
global $user_ID, $wpdb;
|
|
|
|
|
|
|
|
|
|
|
544 |
// Post Values
|
545 |
$form_name = (isset( $_POST['name'] )) ? $_POST['name'] : "";
|
546 |
$shortcode = (isset( $_POST['shortcode'] )) ? $_POST['shortcode'] : "";
|
@@ -677,7 +682,7 @@ if (!function_exists('inbound_forms_default_content')) {
|
|
677 |
/* Shortcode moved to shared form class */
|
678 |
if (!function_exists('inbound_form_get_data')) {
|
679 |
add_action('wp_ajax_inbound_form_get_data', 'inbound_form_get_data');
|
680 |
-
add_action('wp_ajax_nopriv_inbound_form_get_data', 'inbound_form_get_data');
|
681 |
|
682 |
function inbound_form_get_data()
|
683 |
{
|
@@ -686,6 +691,11 @@ if (!function_exists('inbound_form_get_data')) {
|
|
686 |
|
687 |
if (isset( $_POST['form_id'])&&!empty( $_POST['form_id']))
|
688 |
{
|
|
|
|
|
|
|
|
|
|
|
689 |
|
690 |
$form_settings_data = get_post_meta( $post_ID, 'inbound_form_settings', TRUE );
|
691 |
$field_count = get_post_meta( $post_ID, 'inbound_form_field_count', TRUE );
|
@@ -711,7 +721,7 @@ if (!function_exists('inbound_form_get_data')) {
|
|
711 |
if (!function_exists('inbound_form_auto_publish')) {
|
712 |
/* Shortcode moved to shared form class */
|
713 |
add_action('wp_ajax_inbound_form_auto_publish', 'inbound_form_auto_publish');
|
714 |
-
add_action('wp_ajax_nopriv_inbound_form_auto_publish', 'inbound_form_auto_publish');
|
715 |
|
716 |
function inbound_form_auto_publish()
|
717 |
{
|
536 |
if (!function_exists('inbound_form_save')) {
|
537 |
/* Shortcode moved to shared form class */
|
538 |
add_action('wp_ajax_inbound_form_save', 'inbound_form_save');
|
539 |
+
//add_action('wp_ajax_nopriv_inbound_form_save', 'inbound_form_save');
|
540 |
+
|
541 |
+
function inbound_form_save() {
|
542 |
|
|
|
|
|
543 |
global $user_ID, $wpdb;
|
544 |
+
$check_nonce = wp_verify_nonce( $_POST['nonce'], 'inbound-shortcode-nonce' );
|
545 |
+
if( !$check_nonce ) {
|
546 |
+
//echo json_encode("Found");
|
547 |
+
exit;
|
548 |
+
}
|
549 |
// Post Values
|
550 |
$form_name = (isset( $_POST['name'] )) ? $_POST['name'] : "";
|
551 |
$shortcode = (isset( $_POST['shortcode'] )) ? $_POST['shortcode'] : "";
|
682 |
/* Shortcode moved to shared form class */
|
683 |
if (!function_exists('inbound_form_get_data')) {
|
684 |
add_action('wp_ajax_inbound_form_get_data', 'inbound_form_get_data');
|
685 |
+
//add_action('wp_ajax_nopriv_inbound_form_get_data', 'inbound_form_get_data');
|
686 |
|
687 |
function inbound_form_get_data()
|
688 |
{
|
691 |
|
692 |
if (isset( $_POST['form_id'])&&!empty( $_POST['form_id']))
|
693 |
{
|
694 |
+
$check_nonce = wp_verify_nonce( $_POST['nonce'], 'inbound-shortcode-nonce' );
|
695 |
+
if( !$check_nonce ) {
|
696 |
+
//echo json_encode("Found");
|
697 |
+
exit;
|
698 |
+
}
|
699 |
|
700 |
$form_settings_data = get_post_meta( $post_ID, 'inbound_form_settings', TRUE );
|
701 |
$field_count = get_post_meta( $post_ID, 'inbound_form_field_count', TRUE );
|
721 |
if (!function_exists('inbound_form_auto_publish')) {
|
722 |
/* Shortcode moved to shared form class */
|
723 |
add_action('wp_ajax_inbound_form_auto_publish', 'inbound_form_auto_publish');
|
724 |
+
//add_action('wp_ajax_nopriv_inbound_form_auto_publish', 'inbound_form_auto_publish');
|
725 |
|
726 |
function inbound_form_auto_publish()
|
727 |
{
|