Skip to content

Commit 2adbb8b

Browse files
Merge pull request #24 from MachoThemes/master
v1.2.3
2 parents 074afbc + 2a19106 commit 2adbb8b

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

inc/shapely-widgets.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ function shapely_companion_widgets_init() {
4242
register_widget( 'Shapely_Page_Title' );
4343
register_widget( 'Shapely_Page_Content' );
4444

45-
if ( defined( 'JETPACK__VERSION' ) ) {
46-
47-
if ( post_type_exists( 'jetpack-portfolio' ) ) {
45+
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'custom-content-types' ) ) {
46+
if ( get_option( 'jetpack_portfolio' ) ) {
4847
register_widget( 'Shapely_Home_Portfolio' );
4948
}
50-
51-
if ( post_type_exists( 'jetpack-testimonial' ) ) {
49+
if ( get_option( 'jetpack_testimonial' ) ) {
5250
register_widget( 'Shapely_Home_Testimonials' );
5351
}
5452
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "shapely-companion",
33
"main": "Gruntfile.js",
4-
"version": "1.2.2",
4+
"version": "1.2.3",
55
"homepage": "https://www.colorlib.com",
66
"author": "Colorlib",
77
"license": "GPL v3",

shapely-companion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Shapely Companion
44
* Plugin URI: https://colorlib.com/wp/themes/shapely/
55
* Description: Shapely Companion is a companion plugin for Shapely theme.
6-
* Version: 1.2.2
6+
* Version: 1.2.3
77
* Author: Colorlib
88
* Author URI: https://colorlib.com
99
* License: GPL-2.0+
@@ -16,7 +16,7 @@
1616
die;
1717
}
1818

19-
define( 'SHAPELY_COMPANION', '1.2.1' );
19+
define( 'SHAPELY_COMPANION', '1.2.3' );
2020

2121
/**
2222
* Load the Dashboard Widget

0 commit comments

Comments
 (0)