Plugin Directory

Changeset 3269063


Ignore:
Timestamp:
04/08/2025 04:32:20 PM (12 months ago)
Author:
atakanau
Message:

Version 2.0.9

Location:
automatically-hierarchic-categories-in-menu
Files:
14 added
5 edited

Legend:

Unmodified
Added
Removed
  • automatically-hierarchic-categories-in-menu/trunk/admin/class-auto-hierarchic-category-menu-admin.php

    r3010874 r3269063  
    137137        public function description_hack() {
    138138            // Verify the nonce.
    139             $nonce = filter_input( INPUT_POST, 'description-nonce', FILTER_SANITIZE_STRING );
     139            $nonce = filter_input( INPUT_POST, 'description-nonce', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
    140140            if ( ! wp_verify_nonce( $nonce, 'aau-ahcm-description-nonce' ) ) {
    141141                wp_die();
  • automatically-hierarchic-categories-in-menu/trunk/admin/js/auto-hierarchic-category-menu.js

    r3229318 r3269063  
    1 /*! Automatically Hierarchic Categories in Menu v2.0.8 | (c) Atakan Au */
     1/*! Automatically Hierarchic Categories in Menu v2.0.9 | (c) Atakan Au */
    22jQuery(document).ready(function($){
    33    $( '#submit-aau-ahcm' ).on( 'click', function ( e ) {
  • automatically-hierarchic-categories-in-menu/trunk/admin/js/auto-hierarchic-category-menu.min.js

    r3229318 r3269063  
    1 /*! Automatically Hierarchic Categories in Menu v2.0.8 | (c) Atakan Au */
     1/*! Automatically Hierarchic Categories in Menu v2.0.9 | (c) Atakan Au */
    22jQuery(document).ready((function(e){e("#submit-aau-ahcm").on("click",(function(t){wpNavMenu.registerChange(),function(){description=e("#aau-ahcm-shortcode").val(),menuItems={},processMethod=wpNavMenu.addMenuItemToBottom;var t=e(".aau-ahcm-div");t.find(".spinner").show(),re=/menu-item\[([^\]]*)/,m=t.find(".menu-item-db-id"),listItemDBIDMatch=re.exec(m.attr("name")),listItemDBID=void 0===listItemDBIDMatch[1]?0:parseInt(listItemDBIDMatch[1],10),menuItems[listItemDBID]=t.getItemData("add-menu-item",listItemDBID),menuItems[listItemDBID]["menu-item-description"]=description,""===menuItems[listItemDBID]["menu-item-title"]&&(menuItems[listItemDBID]["menu-item-title"]="(Untitled)");nonce=e("#aau-ahcm-description-nonce").val(),params={action:"aau_ahcm_description_hack","description-nonce":nonce,"menu-item":menuItems[listItemDBID]},e.post(ajaxurl,params,(function(m){e("#aau-ahcm-div .menu-item-object-id").val(m),wpNavMenu.addItemToMenu(menuItems,processMethod,(function(){t.find(".spinner").hide(),e("#aau-ahcm-title").val("").blur(),e("#aau-ahcm-shortcode").val("")}))}))}()}))}));
  • automatically-hierarchic-categories-in-menu/trunk/automatically-hierarchic-categories-in-menu.php

    r3229318 r3269063  
    44Description: Allows you to automatically add hierarchic categories in WordPress Navigation Menus
    55Plugin URI: https://atakanau.blogspot.com/2021/01/automatic-category-menu-wp-plugin.html
    6 Version: 2.0.8
     6Version: 2.0.9
    77Author: Atakan Au
    88Author URI: https://atakanau.blogspot.com
     
    5959     * @since 1.0
    6060     */
    61     define( 'AUTO_H_CATEGORY_MENU_RES', "2.0.8" );
     61    define( 'AUTO_H_CATEGORY_MENU_RES', "2.0.9" );
    6262}
    6363if ( ! defined( 'AUTO_H_CATEGORY_MENU_SUPPORT_LINK' ) ) {
  • automatically-hierarchic-categories-in-menu/trunk/readme.txt

    r3269047 r3269063  
    66Requires PHP: 5.6
    77Tested up to: 6.8
    8 Stable tag: 2.0.8
     8Stable tag: 2.0.9
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html
     
    1919HTML and CSS knowledge may be required depending on the theme.
    2020
    21 [Visit my blog for support request and feedback.](https://atakanau.blogspot.com/2021/01/automatic-category-menu-wp-plugin.html?utm_content=textlink&utm_medium=link&utm_source=wporg&utm_campaign=description)
     21[Visit my blog for support request and feedback.](https://atakanau.blogspot.com/2021/01/automatic-category-menu-wp-plugin.html?utm_content=textlink&utm_medium=link&utm_source=wporg&utm_campaign=ahcim-description)
    2222
    2323Please [comment](https://atakanau.blogspot.com/2021/01/automatic-category-menu-wp-plugin.html#comments) 💬, [rate](https://wordpress.org/support/plugin/automatically-hierarchic-categories-in-menu/reviews/?filter=5#new-post) ⭐ and share 👍
     
    6262== Changelog ==
    6363
    64 = Version 2.0.8 =
    65 * Security: XSS JavaScript inject
     64= Version 2.0.9 =
     65* (Minor) Source code upgraded PHP 8.X
    6666* Tested up to:
    67   * `6.7.x`
     67  * `6.8.x`
    6868
    69 For the changelog of earlier versions, please refer to [changelog section on blog](https://atakanau.blogspot.com/2021/01/automatic-category-menu-wp-plugin.html?utm_content=textlink&utm_medium=link&utm_source=wporg&utm_campaign=changelog#toc_ahcim-changelog).
     69For the changelog of earlier versions, please refer to [changelog section on blog](https://atakanau.blogspot.com/2021/01/automatic-category-menu-wp-plugin.html?utm_content=textlink&utm_medium=link&utm_source=wporg&utm_campaign=ahcim-changelog#toc_ahcim-changelog).
    7070
    7171== Upgrade Notice ==
     72
     73= 2.0.9 =
     74* Warning: After updating from pre-2.0.7 to the current version, the plugin cannot reactivate itself. Please reactivate the plugin manually.
     75* Info: If you like the plugin, please make a donation.
    7276
    7377= 2.0.8 =
Note: See TracChangeset for help on using the changeset viewer.