From ef340487c1eda8dd86c9861aab16efd3f76004ac Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Mon, 3 Oct 2016 21:45:06 +0530 Subject: [PATCH] Fix post preview icon issue with extra preview url params --- js/customize-post-section.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/customize-post-section.js b/js/customize-post-section.js index 286b476..f89801c 100644 --- a/js/customize-post-section.js +++ b/js/customize-post-section.js @@ -254,7 +254,10 @@ sectionNavigationButton.on( 'click', function( event ) { event.preventDefault(); - api.previewer.previewUrl( api.Posts.getPreviewUrl( section.params ) ); + api.previewer.previewUrl( api.Posts.getPreviewUrl( { + post_type: section.params.post_type, + post_id: section.params.post_id + } ) ); } ); },