Plugin Directory

Changeset 3383502


Ignore:
Timestamp:
10/23/2025 02:13:42 PM (5 months ago)
Author:
tharkun69
Message:

1.4.12

  • Fix: Select correct block after save block exception
  • Fix: Fix of load_textdomain error
  • Change from 'plugins_loaded' to 'init' action
  • Tested with WordPress version 6.8.3
Location:
occupancy-plan/trunk
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • occupancy-plan/trunk/admin/class-occupancy-plan-admin.php

    r3291549 r3383502  
    14341434     * 1.4.10 - Changed to session_status check
    14351435     * 1.4.11 - Set of 'read_and_close' to 'true'
     1436     * 1.4.12 - Set of 'read_and_close' to 'true' deleted
    14361437     */
    14371438    public function start_session()
    14381439    {
    1439         if (session_status() == PHP_SESSION_NONE) {
    1440             session_start(['read_and_close' => true ] );
     1440        if (session_status() !== PHP_SESSION_ACTIVE) {
     1441            session_start();
    14411442        }
    14421443    }
     
    14471448     * @since     1.4
    14481449     *
    1449      * 1.4.6 - Fix: Check if PHP session is active 
     1450     * 1.4.6 - Fix: Check if PHP session is active
    14501451     */
    14511452    public function end_session()
  • occupancy-plan/trunk/admin/partials/occupancy-plan-block-exception.php

    r3068435 r3383502  
    1717        wp_die();
    1818    }
     19
     20    // error_log(print_r($_SESSION, true));
    1921
    2022    if (isset($_GET['mode']))
  • occupancy-plan/trunk/admin/partials/occupancy-plan-block.php

    r3291549 r3383502  
    1818        wp_die();
    1919    }
     20
     21    // error_log(print_r($_SESSION, true));
    2022
    2123    if (isset($_GET['mode']))
  • occupancy-plan/trunk/includes/class-occupancy-plan-main.php

    r3068888 r3383502  
    112112     * @since    1.0.0
    113113     * @access   private
     114     *
     115     * 1.4.12 - Change from 'plugins_loaded' to 'init' action
    114116     */
    115117    private function set_locale()
    116118    {
    117         add_action('plugins_loaded', array($this, 'load_plugin_textdomain'));
     119        add_action('init', array($this, 'load_plugin_textdomain'));
    118120    }
    119121
     
    236238    public function run()
    237239    {
    238         $this->set_locale();
    239240        $this->define_admin_hooks();
    240241        $this->define_public_hooks();
    241242        $this->define_dashboard_widget();
     243        $this->set_locale();
    242244    }
    243245
  • occupancy-plan/trunk/occupancy-plan.php

    r3291549 r3383502  
    1616 * Plugin URI:        https://www.software-kunze.de/plugins/occupancy-plan/
    1717 * Description:       Management of Occupancy Plans
    18  * Version:           1.4.11
     18 * Version:           1.4.12
    1919 * Author:            Alexander Kunze Software Consulting
    2020 * Author URI:        https://www.software-kunze.de
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('Occupancy_Plan', '1.4.11');
     38define('Occupancy_Plan', '1.4.12');
    3939
    4040/**
     
    8989 *
    9090 * @since    1.0.0
     91 *
     92 * 1.4.12 - $description deleted
    9193 */
    9294function run_occupancy_plan()
    9395{
    94     $description = __('Management of Occupancy Plans', 'occupancy-plan');
    9596    $plugin = new Occupancy_Plan_Main();
    9697    $plugin->run();
  • occupancy-plan/trunk/public/css/occupancy-plan-print.css

    r2657250 r3383502  
    7373    width: auto;
    7474    /*padding: 0px 0px 0px 0px !important;*/
    75     padding: 5px !important;
     75    padding: 5px 0px !important;
    7676    border: 1px dotted black !important;
    7777}
  • occupancy-plan/trunk/readme.txt

    r3291549 r3383502  
    44Tags: Occupancy Plan, Belegungsplan, Booking, Buchungen, Hallenbelegung, Reservierung
    55Requires at least: 4.9
    6 Tested up to: 6.8.1
    7 Stable tag: 1.4.11
     6Tested up to: 6.8.3
     7Stable tag: 1.4.12
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    5050== Changelog ==
    5151
     52= 1.4.12 =
     53* Fix: Select correct block after save block exception
     54* Fix: Fix of load_textdomain error
     55* Change from 'plugins_loaded' to 'init' action
     56
    5257= 1.4.11 =
    5358* Fix: Save correct interval value form backend booking
Note: See TracChangeset for help on using the changeset viewer.