Plugin Directory

Changeset 3391136


Ignore:
Timestamp:
11/06/2025 01:00:41 PM (5 weeks ago)
Author:
jetmonsters
Message:

Version: 1.1.5

Location:
mphb-styles/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mphb-styles/trunk/includes/template-editor/includes/templates.php

    r3354030 r3391136  
    9191        // get chosen Template for Acc. Type
    9292        $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 );
    9395        $hasTemplate = isset($this->customTemplates[$templateID]);
    9496
     
    186188    }
    187189
     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    }
    188201}
    189202
  • mphb-styles/trunk/mphb-styles.php

    r3354030 r3391136  
    55 * Plugin URI: https://motopress.com/
    66 * 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.4
     7 * Version: 1.1.5
    88 * Author: MotoPress
    99 * Author URI: https://motopress.com/
     
    1919
    2020if (!defined('MPHB\Styles\VERSION')) {
    21     define('MPHB\Styles\VERSION', '1.1.4');
     21    define('MPHB\Styles\VERSION', '1.1.5');
    2222    define('MPHB\Styles\PLUGIN_URL', plugin_dir_url(__FILE__)); // With trailing slash
    2323
  • mphb-styles/trunk/readme.txt

    r3354030 r3391136  
    66Tested up to: 6.8
    77Requires PHP: 5.6
    8 Stable tag: 1.1.4
     8Stable tag: 1.1.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 1.1.5, Nov 6 2025 =
     75* Improved compatibility with WPML.
     76
    7477= 1.1.4, Aug 22 2025 =
    7578* Improved compatibility with WordPress 6.8, addressing the _load_textdomain_just_in_time notice.
Note: See TracChangeset for help on using the changeset viewer.