Changeset 497370
- Timestamp:
- 01/30/2012 03:09:22 PM (14 years ago)
- File:
-
- 1 edited
-
joemobi/trunk/singletons/api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
joemobi/trunk/singletons/api.php
r497368 r497370 94 94 95 95 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')); 97 97 } 98 98 … … 250 250 function get_post_types() { 251 251 $list = explode(',',get_option('joemobi_api_post_types', 'post')); 252 if (count($list) == 0 ) {252 if (count($list) == 0 || (count($list) == 1 && !$list[0]) ) { 253 253 $list = array( 254 254 'post' 255 255 ); 256 256 257 } 257 258 return $list;
Note: See TracChangeset
for help on using the changeset viewer.