diff --git a/CHANGELOG.md b/CHANGELOG.md index 101fcdb3..30b12896 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## Changelog - +* 2.0.10.2 - 2017.03.22: + * Fix: Sanitized product title on product save in Wordpress panel. + * Fix: Post excerpt was saved as product description. + * Fix: Fatal error on Order page when DOMDocument is missing. + * Fix: Discounts not being removed. + * Disabled: Discount Summary report due to serious issue. * 2.0.10.1 - 2017.03.21: * Fix: Fatal error on product save. * 2.0.10 - 2017.03.21: diff --git a/jigoshop.php b/jigoshop.php index 9edc90f9..af8cc479 100755 --- a/jigoshop.php +++ b/jigoshop.php @@ -20,7 +20,7 @@ * Description: Jigoshop, a WordPress eCommerce plugin that works. * Author: Jigoshop * Author URI: http://www.jigoshop.com - * Version: 2.0.10.1 + * Version: 2.0.10.2 * Requires at least: 4.0 * Tested up to: 4.7.3 * Text Domain: jigoshop diff --git a/readme.txt b/readme.txt index 59026232..b35a972c 100755 --- a/readme.txt +++ b/readme.txt @@ -151,6 +151,12 @@ However, if you want priority, dedicated support from Jigoshop staff, we dp offe == Changelog == += 2.0.10.2 - 2017.03.22 = +* Fix: Sanitized product title on product save in Wordpress panel. +* Fix: Post excerpt was saved as product description. +* Fix: Fatal error on Order page when DOMDocument is missing. +* Fix: Discounts not being removed. +* Disabled: Discount Summary report due to serious issue. = 2.0.10.1 - 2017.03.21 = * Fix: Fatal error on product save. = 2.0.10 - 2017.03.21 = diff --git a/src/Jigoshop/Admin/Page/Order.php b/src/Jigoshop/Admin/Page/Order.php index a86c26a4..c5cf7226 100755 --- a/src/Jigoshop/Admin/Page/Order.php +++ b/src/Jigoshop/Admin/Page/Order.php @@ -648,18 +648,8 @@ public function actionsBox() private function renderModifiedPublishBoxContent($post) { - ob_start(); post_submit_meta_box($post); - $html = ob_get_clean(); - $doc = new \DOMDocument(); - $doc->loadHTML($html); - $element = $doc->getElementById('minor-publishing'); - $element->removeChild($doc->getElementById('minor-publishing-actions')); - $doc->getElementById('minor-publishing')->parentNode->removeChild($doc->getElementById('major-publishing-actions')); - $element = $doc->getElementById('misc-publishing-actions'); - $element->removeChild($doc->getElementById('visibility')); - $element->removeChild($element->getElementsByTagName('div')->item(0)); - - echo $doc->saveHTML(); + //TODO: move it to CSS file. + echo ''; } } diff --git a/src/Jigoshop/Admin/Reports/SalesTab.php b/src/Jigoshop/Admin/Reports/SalesTab.php index dfea9891..83fcf952 100755 --- a/src/Jigoshop/Admin/Reports/SalesTab.php +++ b/src/Jigoshop/Admin/Reports/SalesTab.php @@ -5,6 +5,7 @@ use Jigoshop\Admin\Reports; use Jigoshop\Core\Options; use Jigoshop\Helper\Render; +use Jigoshop\Integration; use WPAL\Wordpress; class SalesTab implements TabInterface @@ -25,6 +26,14 @@ public function __construct(Wordpress $wp, Options $options) if (in_array($this->wp->getPageNow(), array('admin.php', 'options.php')) && isset($_GET['page']) && $_GET['page'] == Reports::NAME ) { + add_action( 'admin_notices', function(){ + ?> +