Skip to content

Commit

Permalink
Failed merge of 3.12.0, missed placement of product.js enqueue on sin…
Browse files Browse the repository at this point in the history
…gle controller.
  • Loading branch information
JustinSainton committed Feb 19, 2017
1 parent 5e2c062 commit 4ea716c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions wpsc-components/theme-engine-v2/mvc/controllers/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function __construct() {
public function index() {
$this->title = get_queried_object()->post_title;
$this->view = 'single';

_wpsc_enqueue_product_scripts();
$this->load_lightbox();
}

Expand All @@ -27,7 +27,6 @@ public function _fluidbox_styles() {
public function _fluidbox_scripts() {
wp_enqueue_script( 'wpsc-fluidbox' );
wp_localize_script( 'wpsc-fluidbox', 'WPSC_Fluid_Box_Options', apply_filters( 'wpsc_fluidbox_options', array() ) );
_wpsc_enqueue_product_scripts();
}

public function get_native_template() {
Expand Down
1 change: 0 additions & 1 deletion wpsc-includes/purchase-log.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,6 @@ public function save_meta() {
wpsc_add_purchase_meta( $this->get( 'id' ), $key, $val );
}
}

} else {
wpsc_update_purchase_meta( $this->get( 'id' ), $key, $value );
}
Expand Down
1 change: 1 addition & 0 deletions wpsc-includes/wpsc-theme-engine-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ function _wpsc_maybe_activate_theme_engine_v2() {
update_option( 'wpsc_get_active_theme_engine', $new_theme_engine );

$location = isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : home_url();

// Redirect ensures that both templates will not be loaded, fixing fatal errors, etc.
wp_safe_redirect( esc_url_raw( $location ) );
exit;
Expand Down

0 comments on commit 4ea716c

Please sign in to comment.