Plugin Directory

Changeset 2493619


Ignore:
Timestamp:
03/11/2021 08:53:06 PM (5 years ago)
Author:
mottodesignstudio
Message:

Preparing for 0.1.5 release

Location:
sidebar-menu-items/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sidebar-menu-items/trunk/README.txt

    r2483868 r2493619  
    55Requires at least: 3.0.1
    66Tested up to: 5.6.2
    7 Stable tag: 0.1.4
     7Stable tag: 0.1.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
     37= 0.1.5 =
     38Fixed bug with LoadHTML dom parsing
     39
    3740= 0.1.4 =
    3841Fixed bug for mb strings and charset
  • sidebar-menu-items/trunk/public/class-sidebar-menu-items-public.php

    r2483868 r2493619  
    55 *
    66 * @link       http://example.com
    7  * @since      0.1.4
     7 * @since      0.1.5
    88 *
    99 * @package    sidebar_menu_items
     
    5858     * a new HTML container.
    5959     *
    60      * @since    0.1.4
     60     * @since    0.1.5
    6161     * @param      string    $item_output   Menu item HTML
    6262     * @param      string    $item          Menu item object
     
    7070            $charset = defined(DB_CHARSET) ? DB_CHARSET : 'utf-8';
    7171            $item_output = mb_convert_encoding($item_output, 'HTML-ENTITIES', $charset);
    72             // Suppress errors since we're loading a partial Doc.
    73             $doc = @DOMDocument::loadHTML($item_output);
     72            $doc = new DOMDocument;
     73            $doc->loadHTML("<html><body>$item_output</body>");
    7474            $sidebar = $doc->createElement('div');
    7575            $sidebar->setAttribute('class', $class);
     
    8787            ob_start();
    8888            dynamic_sidebar($this->get_sidebar_id($item));
    89             $sidebar = ob_get_contents();
    90             ob_end_clean();
    91             $title = $sidebar;
     89            $title = ob_get_clean();
    9290        }
    93        
     91
    9492        return $title;
    9593    }
  • sidebar-menu-items/trunk/sidebar-menu-items.php

    r2483868 r2493619  
    99 *
    1010 * @link              https://motto.ca
    11  * @since             0.1.4
     11 * @since             0.1.5
    1212 * @package           sidebar_menu_items
    1313 *
     
    1616 * Plugin URI:        http://github.com/mottodesignstudio/wp-sidebar-menu-items
    1717 * Description:       Use sidebar areas within your menus.
    18  * Version:           0.1.4
     18 * Version:           0.1.5
    1919 * Author:            Motto
    2020 * Author URI:        https://motto.ca
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'SIDEBAR_MENU_ITEMS_VERSION', '0.1.4' );
     37define( 'SIDEBAR_MENU_ITEMS_VERSION', '0.1.5' );
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.