Changeset 1336685
- Timestamp:
- 01/26/2016 10:31:50 PM (10 years ago)
- Location:
- only-one-category/trunk
- Files:
-
- 2 edited
-
main.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
only-one-category/trunk/main.php
r1141348 r1336685 5 5 Description: Limits a post to a single category by changing the checkboxes into radio buttons. Simple. 6 6 Author: Press Up 7 Version: 1.0. 17 Version: 1.0.2 8 8 Author URI: http://pressupinc.com 9 9 */ … … 22 22 23 23 // for "Most Used" tab 24 foreach (get_all_category_ids() as $i) { 25 $content = str_replace( 'id="in-popular-category-'.$i.'" type="checkbox"', 'id="in-popular-category-'.$i.'" type="radio"', $content ); 24 $categories = get_terms( 'category' ); 25 26 foreach ($categories as $i) { 27 $content = str_replace( 'id="in-popular-category-'.$i->term_id.'" type="checkbox"', 'id="in-popular-category-'.$i->term_id.'" type="radio"', $content ); 26 28 } 27 29 -
only-one-category/trunk/readme.txt
r1141348 r1336685 4 4 Tags: categories, edit, post, admin 5 5 Requires at least: 2.8 6 Tested up to: 4. 1.27 Stable tag: 1.0. 16 Tested up to: 4.4.1 7 Stable tag: 1.0.2 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/MIT … … 44 44 == CHANGELOG == 45 45 46 = 1.0.1 (2016.01.26) = 47 * Removed deprecated use of get_all_category_ids 48 * Bumped tested version number 49 46 50 = 1.0.1 (2015.04.21) = 47 51 * VCS headaches...
Note: See TracChangeset
for help on using the changeset viewer.