Cherry Services List - Version 1.4.6

Version Description

Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Services List
Version 1.4.6
Comparing to
See all releases

Code changes from version 1.4.5.2 to 1.4.6

cherry-services-list.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Services List
4
  * Plugin URI:
5
  * Description: Cherry Services is a flexible WordPress plugin that lets you display your company’s services in a variety of ways.
6
- * Version: 1.4.5.2
7
  * Author: Zemez
8
  * Author URI: https://zemez.io/wordpress/
9
  * Text Domain: cherry-services
@@ -92,7 +92,7 @@ if ( ! class_exists( 'Cherry_Services_List' ) ) {
92
  * @access private
93
  * @var string
94
  */
95
- private $version = '1.4.5.2';
96
 
97
  /**
98
  * Plugin CPT name
3
  * Plugin Name: Cherry Services List
4
  * Plugin URI:
5
  * Description: Cherry Services is a flexible WordPress plugin that lets you display your company’s services in a variety of ways.
6
+ * Version: 1.4.6
7
  * Author: Zemez
8
  * Author URI: https://zemez.io/wordpress/
9
  * Text Domain: cherry-services
92
  * @access private
93
  * @var string
94
  */
95
+ private $version = '1.4.6';
96
 
97
  /**
98
  * Plugin CPT name
public/includes/class-cherry-services-list-init.php CHANGED
@@ -159,6 +159,14 @@ class Cherry_Services_List_Init extends Cherry_Services_List {
159
  return $default;
160
  }
161
 
 
 
 
 
 
 
 
 
162
  if ( isset( $page->post_title ) ) {
163
  return $page->post_title;
164
  }
159
  return $default;
160
  }
161
 
162
+ // WPML compatibility
163
+ if ( function_exists( 'icl_object_id' ) && defined( 'ICL_LANGUAGE_CODE' ) ) {
164
+ $translated_id = icl_object_id( $page->ID, 'page', false, ICL_LANGUAGE_CODE );
165
+ if ( $translated_id ) {
166
+ return get_the_title( $translated_id );
167
+ }
168
+ }
169
+
170
  if ( isset( $page->post_title ) ) {
171
  return $page->post_title;
172
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, services, service, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.7
6
- Tested up to: 4.8.3
7
- Stable tag: 1.4.5.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, services, service, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.7
6
+ Tested up to: 4.9.1
7
+ Stable tag: 1.4.6
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10