Plugin Directory

Changeset 1336685


Ignore:
Timestamp:
01/26/2016 10:31:50 PM (10 years ago)
Author:
pressupinc
Message:

deploy from git

Location:
only-one-category/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • only-one-category/trunk/main.php

    r1141348 r1336685  
    55Description: Limits a post to a single category by changing the checkboxes into radio buttons. Simple.
    66Author: Press Up
    7 Version: 1.0.1
     7Version: 1.0.2
    88Author URI: http://pressupinc.com
    99*/
     
    2222
    2323    // 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 );
    2628    }
    2729
  • only-one-category/trunk/readme.txt

    r1141348 r1336685  
    44Tags: categories, edit, post, admin
    55Requires at least: 2.8
    6 Tested up to: 4.1.2
    7 Stable tag: 1.0.1
     6Tested up to: 4.4.1
     7Stable tag: 1.0.2
    88License: MIT
    99License URI: http://opensource.org/licenses/MIT
     
    4444== CHANGELOG ==
    4545
     46= 1.0.1 (2016.01.26) =
     47* Removed deprecated use of get_all_category_ids
     48* Bumped tested version number
     49
    4650= 1.0.1 (2015.04.21) =
    4751* VCS headaches...
Note: See TracChangeset for help on using the changeset viewer.