Changeset 5098
- Timestamp:
- 03/25/2007 03:53:33 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r5089 r5098 262 262 263 263 // Lookup info on pages. 264 $pages = array();265 264 $pages = get_pages(); 266 265 $num_pages = count($pages); … … 281 280 // If no pages were found return an error. 282 281 else { 283 return( new IXR_Error(404, "Sorry, no pages were found."));282 return(array()); 284 283 } 285 284 } … … 1091 1090 1092 1091 $postdata = wp_get_single_post($post_ID, ARRAY_A); 1092 1093 // If there is no post data for the give post id, stop 1094 // now and return an error. Other wise a new post will be 1095 // created (which was the old behavior). 1096 if(empty($postdata["ID"])) { 1097 return(new IXR_Error(404, "Invalid post id.")); 1098 } 1099 1093 1100 extract($postdata); 1094 1101 $this->escape($postdata);
Note: See TracChangeset
for help on using the changeset viewer.