Plugin Directory

Changeset 497368


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

fixed default post type for settings.

File:
1 edited

Legend:

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

    r490701 r497368  
    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 
     
    249249 
    250250  function get_post_types() {
    251     return explode(',',get_option('joemobi_api_post_types', 'posts'));
     251    $list = explode(',',get_option('joemobi_api_post_types', 'post'));
     252    if (count($list) == 0) {
     253        $list = array(
     254            'post'
     255        );
     256    }
     257    return $list;
    252258  }
    253259 
Note: See TracChangeset for help on using the changeset viewer.