Changeset 3451399
- Timestamp:
- 02/01/2026 02:09:05 PM (2 months ago)
- Location:
- r2k-terms-copier
- Files:
-
- 3 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/r2k-terms-copier.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/r2k-terms-copier.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
r2k-terms-copier/trunk/r2k-terms-copier.php
r3431967 r3451399 4 4 * Plugin URI: https://wordpress.org/plugins/r2k-terms-copier/ 5 5 * Description: Duplicate taxonomy terms including all meta data without relationships. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: R2K TEAM 8 8 * Author URI: https://www.r2k.co.il/ … … 102 102 // Duplicate the term 103 103 $new_term_id = $this->duplicate_term( $term_id, $taxonomy ); 104 105 106 // if polylang is active, set the language as same as the original term 107 if(function_exists('pll_set_term_language')){ 108 pll_set_term_language($new_term_id, pll_get_term_language($term_id)); 109 } 104 110 105 111 if ( is_wp_error( $new_term_id ) ) { … … 109 115 110 116 // Redirect back to taxonomy list with success message 111 wp_safe_redirect( add_query_arg( 'duplicated', '1', admin_url( ' edit-tags.php?taxonomy=' . $taxonomy) ) );117 wp_safe_redirect( add_query_arg( 'duplicated', '1', admin_url( 'term.php?taxonomy=' . $taxonomy.'&tag_ID='.$new_term_id ) ) ); 112 118 exit; 113 119 } -
r2k-terms-copier/trunk/readme.txt
r3431967 r3451399 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 98 98 * Admin notices for user feedback 99 99 100 = 1.0.1 = 101 * Support Polylang 102 * Redirect to edit term screen after copy 103 104 100 105 == Upgrade Notice == 101 106
Note: See TracChangeset
for help on using the changeset viewer.