Plugin Directory

Changeset 3436480


Ignore:
Timestamp:
01/10/2026 09:21:53 AM (8 weeks ago)
Author:
mpol
Message:

Tested up to: 6.9

Location:
custom-taxonomy-order-ne
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • custom-taxonomy-order-ne/tags/4.0.2/readme.txt

    r3299236 r3436480  
    33Tags: term order, category order, taxonomy order, order
    44Requires at least: 4.1
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Stable tag: 4.0.2
    77License: GPLv2 or later
  • custom-taxonomy-order-ne/trunk/customtaxorder.php

    r3299236 r3436480  
    22/*
    33Plugin Name: Custom Taxonomy Order
    4 Plugin URI: https://wordpress.org/plugins/custom-taxonomy-order-ne/
     4Plugin URI: https://timelord.nl
    55Description: Allows for the ordering of categories and custom taxonomy terms through a simple drag-and-drop interface.
    66Version: 4.0.2
  • custom-taxonomy-order-ne/trunk/page-customtaxorder.php

    r3198374 r3436480  
    256256    $verified = false;
    257257    if ( isset($_POST['custom-taxonomy-order-ne-nonce']) ) {
    258         $verified = wp_verify_nonce( $_POST['custom-taxonomy-order-ne-nonce'], 'custom-taxonomy-order-ne-nonce' );
     258        $verified = wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['custom-taxonomy-order-ne-nonce'] ) ), 'custom-taxonomy-order-ne-nonce' );
    259259    }
    260260    if ( $verified == false ) {
     
    329329    $verified = false;
    330330    if ( isset($_POST['custom-taxonomy-order-ne-nonce']) ) {
    331         $verified = wp_verify_nonce( $_POST['custom-taxonomy-order-ne-nonce'], 'custom-taxonomy-order-ne-nonce' );
     331        $verified = wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['custom-taxonomy-order-ne-nonce'] ) ), 'custom-taxonomy-order-ne-nonce' );
    332332    }
    333333    if ( $verified == false ) {
     
    375375
    376376                    $options[$taxonomy->name] = $tax_setting;
    377                     $customtaxorder_settings = update_option( 'customtaxorder_settings', $options );
     377                    $customtaxorder_settings = update_option( 'customtaxorder_settings', $options, true );
    378378                    delete_transient( 'customtaxorder_get_settings' );
    379379                    echo '<div class="updated fade notice is-dismissible" id="message"><p>' . esc_html__('Settings have been saved', 'custom-taxonomy-order-ne') . '</p></div>';
  • custom-taxonomy-order-ne/trunk/readme.txt

    r3299236 r3436480  
    33Tags: term order, category order, taxonomy order, order
    44Requires at least: 4.1
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Stable tag: 4.0.2
    77License: GPLv2 or later
     
    7373    'orderby' => 'term_order'.
    7474
     75= I have a  lot of terms, should I use this plugin? =
     76
     77If you have more than 10,000 terms and want them all sorted, it can be CPU intensive.
     78You want to test how much of an impact you see and decide if you really need this plugin.
     79
    7580= I use get_term_children but the terms do not get sorted =
    7681
    77 This function only fetches the ID's of the terms, so it is impossible to sort them by term_order. If you do need the sort_order, use a function like get_terms with the 'child_of' parameter. That will fetch an array of WP_Term objects that can be sorted.
     82This function only fetches the ID's of the terms, so it is impossible to sort them by term_order.
     83If you do need the sort_order, use a function like get_terms with the 'child_of' parameter.
     84That will fetch an array of WP_Term objects that can be sorted.
    7885
    7986= I have a custom taxonomy that uses the Tag Cloud functionality, but it doesn't sort like it should. =
     
    218225== Changelog ==
    219226
     227= 4.0.3 =
     228* 2025-
     229* Verify Nonces correctly.
     230* Add uninstall.php for cleanup after uninstall.
     231* Set autoload explicitly for options.
     232
    220233= 4.0.2 =
    221234* 2024-11-27
  • custom-taxonomy-order-ne/trunk/taxonomies.php

    r3161369 r3436480  
    8787    $verified = false;
    8888    if ( isset($_POST['custom-taxonomy-order-ne-nonce']) ) {
    89         $verified = wp_verify_nonce( $_POST['custom-taxonomy-order-ne-nonce'], 'custom-taxonomy-order-ne-nonce' );
     89        $verified = wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['custom-taxonomy-order-ne-nonce'] ) ), 'custom-taxonomy-order-ne-nonce' );
    9090    }
    9191    if ( $verified == false ) {
     
    105105
    106106        $new_order = sanitize_text_field( $_POST['hidden-taxonomy-order'] );
    107         update_option('customtaxorder_taxonomies', $new_order);
     107        update_option( 'customtaxorder_taxonomies', $new_order, true );
    108108
    109109        echo '<div id="message" class="updated fade notice is-dismissible"><p>' . esc_html__('Order updated successfully.', 'custom-taxonomy-order-ne') . '</p></div>';
Note: See TracChangeset for help on using the changeset viewer.