Changeset 634745
- Timestamp:
- 12/06/2012 08:25:21 AM (13 years ago)
- File:
-
- 1 edited
-
tinywebdb-api/trunk/tinywebdb-api.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tinywebdb-api/trunk/tinywebdb-api.php
r629956 r634745 9 9 Author: Hong Chen 10 10 Author URI: http://digilib.net/ 11 Version: 0.2. 011 Version: 0.2.1 12 12 */ 13 13 14 14 15 15 define("TINYWEBDB", "tools.php?page=tinywebdb-api/tinywebdb-api.php"); 16 define("TINYWEBDB_VER", "0.2. 0");16 define("TINYWEBDB_VER", "0.2.1"); 17 17 18 18 … … 83 83 $public_query_vars[] = 'tag'; 84 84 $public_query_vars[] = 'value'; 85 $public_query_vars[] = 'apikey'; 85 86 return $public_query_vars; 86 87 } … … 88 89 function wp_tinywebdb_api_query() { 89 90 global $wpdb, $table_prefix; 91 $bedtag = array("id" => "0", "post_author" => "0", "post_content" => "ERROR BAD tag SUPPLIED"); 90 92 91 93 $request = $_SERVER['REQUEST_URI']; … … 123 125 $postid = wp_tinywebdb_api_get_postid($tagName); 124 126 $tagValue = get_post($postid); 127 if (is_null($tagValue)) $tagValue = $bedtag; //reports a get_post failure 125 128 // $tagName = wp_tinywebdb_api_get_tagName($postid); 126 129
Note: See TracChangeset
for help on using the changeset viewer.