File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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+
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
You can’t perform that action at this time.
0 commit comments