mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-16 09:14:35 +00:00
eadc17c4f9e059fd5a838f2567009e5d25f52edc
wp_insert_term(), when no slug is provided, check for an existing term by name. If it exists, use that slug instead of calling sanitize_title( $name ).
Prevents creating an endless number of terms like `A+` or `$$$$` in any given taxonomy. Props wonderboymusic, SergeyBiryukov, aaroncampbell. Fixes #17689. git-svn-id: https://develop.svn.wordpress.org/trunk@28733 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%