Changeset 3436480
- Timestamp:
- 01/10/2026 09:21:53 AM (8 weeks ago)
- Location:
- custom-taxonomy-order-ne
- Files:
-
- 1 added
- 5 edited
-
tags/4.0.2/readme.txt (modified) (1 diff)
-
trunk/customtaxorder.php (modified) (1 diff)
-
trunk/page-customtaxorder.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/taxonomies.php (modified) (2 diffs)
-
trunk/uninstall.php (added)
Legend:
- Unmodified
- Added
- Removed
-
custom-taxonomy-order-ne/tags/4.0.2/readme.txt
r3299236 r3436480 3 3 Tags: term order, category order, taxonomy order, order 4 4 Requires at least: 4.1 5 Tested up to: 6. 85 Tested up to: 6.9 6 6 Stable tag: 4.0.2 7 7 License: GPLv2 or later -
custom-taxonomy-order-ne/trunk/customtaxorder.php
r3299236 r3436480 2 2 /* 3 3 Plugin Name: Custom Taxonomy Order 4 Plugin URI: https:// wordpress.org/plugins/custom-taxonomy-order-ne/4 Plugin URI: https://timelord.nl 5 5 Description: Allows for the ordering of categories and custom taxonomy terms through a simple drag-and-drop interface. 6 6 Version: 4.0.2 -
custom-taxonomy-order-ne/trunk/page-customtaxorder.php
r3198374 r3436480 256 256 $verified = false; 257 257 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' ); 259 259 } 260 260 if ( $verified == false ) { … … 329 329 $verified = false; 330 330 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' ); 332 332 } 333 333 if ( $verified == false ) { … … 375 375 376 376 $options[$taxonomy->name] = $tax_setting; 377 $customtaxorder_settings = update_option( 'customtaxorder_settings', $options );377 $customtaxorder_settings = update_option( 'customtaxorder_settings', $options, true ); 378 378 delete_transient( 'customtaxorder_get_settings' ); 379 379 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 3 3 Tags: term order, category order, taxonomy order, order 4 4 Requires at least: 4.1 5 Tested up to: 6. 85 Tested up to: 6.9 6 6 Stable tag: 4.0.2 7 7 License: GPLv2 or later … … 73 73 'orderby' => 'term_order'. 74 74 75 = I have a lot of terms, should I use this plugin? = 76 77 If you have more than 10,000 terms and want them all sorted, it can be CPU intensive. 78 You want to test how much of an impact you see and decide if you really need this plugin. 79 75 80 = I use get_term_children but the terms do not get sorted = 76 81 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. 82 This function only fetches the ID's of the terms, so it is impossible to sort them by term_order. 83 If you do need the sort_order, use a function like get_terms with the 'child_of' parameter. 84 That will fetch an array of WP_Term objects that can be sorted. 78 85 79 86 = I have a custom taxonomy that uses the Tag Cloud functionality, but it doesn't sort like it should. = … … 218 225 == Changelog == 219 226 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 220 233 = 4.0.2 = 221 234 * 2024-11-27 -
custom-taxonomy-order-ne/trunk/taxonomies.php
r3161369 r3436480 87 87 $verified = false; 88 88 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' ); 90 90 } 91 91 if ( $verified == false ) { … … 105 105 106 106 $new_order = sanitize_text_field( $_POST['hidden-taxonomy-order'] ); 107 update_option( 'customtaxorder_taxonomies', $new_order);107 update_option( 'customtaxorder_taxonomies', $new_order, true ); 108 108 109 109 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.