Skip to content

Commit

Permalink
Merge branch 'release/1.4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
atwellpub committed Mar 17, 2016
2 parents 9c845e5 + ffd24bc commit fbe012a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions core/landing-pages/classes/class.post-type.landing-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,15 @@ public static function show_aggregated_stats($type_of_stat) {
* Adds rewrite rules
*/
public static function add_rewrite_rules() {
$this_path = LANDINGPAGES_PATH;
$this_path = explode('wp-content', $this_path);
$this_path = "wp-content" . $this_path[1];
if ( !class_exists('Inbound_Pro_Plugin')){
$this_path = LANDINGPAGES_PATH;
$this_path = explode('wp-content', $this_path);
$this_path = "wp-content" . $this_path[1];
} else {
$this_path = INBOUND_PRO_PATH;
$this_path = explode('wp-content', $this_path);
$this_path = "wp-content" . $this_path[1] . "core/landing-pages/";
}

$slug = get_option('lp-main-landing-page-permalink-prefix', 'go');
/*echo $slug;exit; */
Expand Down Expand Up @@ -358,9 +364,7 @@ public static function filter_rewrite_rules( $rules ) {

/* print_r($rules_array);exit; */

$this_path = LANDINGPAGES_PATH;
$this_path = explode('wp-content', $this_path);
$this_path = "wp-content" . $this_path[1];

$slug = get_option('lp-main-landing-page-permalink-prefix', 'go');

$i = 0;
Expand Down
4 changes: 2 additions & 2 deletions inbound-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Inbound Marketing Suite for WordPress
Author: Inbound Now
Author: Inbound Now
Version: 1.4.2
Version: 1.4.3
Author URI: http://www.inboundnow.com/
Text Domain: inbound-pro
Domain Path: /lang/
Expand Down Expand Up @@ -96,7 +96,7 @@ public function __construct() {
*/
private static function define_constants() {

define('INBOUND_PRO_CURRENT_VERSION', '1.4.2' );
define('INBOUND_PRO_CURRENT_VERSION', '1.4.3' );
define('INBOUND_PRO_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
define('INBOUND_PRO_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
define('INBOUND_PRO_SLUG', plugin_basename( dirname(__FILE__) ) );
Expand Down

0 comments on commit fbe012a

Please sign in to comment.