Plugin Directory

Changeset 497370


Ignore:
Timestamp:
01/30/2012 03:09:22 PM (14 years ago)
Author:
SpeakFeel
Message:

added post as default to types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • joemobi/trunk/singletons/api.php

    r497368 r497370  
    9494 
    9595  function admin_menu() {
    96     //add_options_page('JoeMobi Admin', 'JoeMobi', 'manage_options', 'joemobi-api', array(&$this, 'admin_options'));
     96    add_options_page('JoeMobi Admin', 'JoeMobi', 'manage_options', 'joemobi-api', array(&$this, 'admin_options'));
    9797  }
    9898 
     
    250250  function get_post_types() {
    251251    $list = explode(',',get_option('joemobi_api_post_types', 'post'));
    252     if (count($list) == 0) {
     252    if (count($list) == 0 || (count($list) == 1 && !$list[0]) ) {
    253253        $list = array(
    254254            'post'
    255255        );
     256   
    256257    }
    257258    return $list;
Note: See TracChangeset for help on using the changeset viewer.