Changeset 3391136
- Timestamp:
- 11/06/2025 01:00:41 PM (5 weeks ago)
- Location:
- mphb-styles/trunk
- Files:
-
- 3 edited
-
includes/template-editor/includes/templates.php (modified) (2 diffs)
-
mphb-styles.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mphb-styles/trunk/includes/template-editor/includes/templates.php
r3354030 r3391136 91 91 // get chosen Template for Acc. Type 92 92 $templateID = get_post_meta($post->ID, '_wp_page_template', true); 93 // maybe get the WPML-translated template ID for the active language if available. 94 $templateID = $this->maybeGetTranslatedTemplateId( $templateID ); 93 95 $hasTemplate = isset($this->customTemplates[$templateID]); 94 96 … … 186 188 } 187 189 190 /** 191 * Retrieves the WPML-translated template ID for the active language if available. 192 * 193 * @param int $templateID Template post ID. 194 * @return int Translated template ID or original ID if not translated. 195 * @see \MPHB\Translation::translateId() For filter details. 196 * @since 1.1.5 197 */ 198 private function maybeGetTranslatedTemplateId( $templateID ) { 199 return MPHB()->translation()->translateId( $templateID, 'mphb_template' ); 200 } 188 201 } 189 202 -
mphb-styles/trunk/mphb-styles.php
r3354030 r3391136 5 5 * Plugin URI: https://motopress.com/ 6 6 * Description: A set of tools to easily customize and style the booking forms, widgets, and accommodation type pages for the MotoPress Hotel Booking plugin. 7 * Version: 1.1. 47 * Version: 1.1.5 8 8 * Author: MotoPress 9 9 * Author URI: https://motopress.com/ … … 19 19 20 20 if (!defined('MPHB\Styles\VERSION')) { 21 define('MPHB\Styles\VERSION', '1.1. 4');21 define('MPHB\Styles\VERSION', '1.1.5'); 22 22 define('MPHB\Styles\PLUGIN_URL', plugin_dir_url(__FILE__)); // With trailing slash 23 23 -
mphb-styles/trunk/readme.txt
r3354030 r3391136 6 6 Tested up to: 6.8 7 7 Requires PHP: 5.6 8 Stable tag: 1.1. 48 Stable tag: 1.1.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 1.1.5, Nov 6 2025 = 75 * Improved compatibility with WPML. 76 74 77 = 1.1.4, Aug 22 2025 = 75 78 * Improved compatibility with WordPress 6.8, addressing the _load_textdomain_just_in_time notice.
Note: See TracChangeset
for help on using the changeset viewer.