Changeset 3495148
- Timestamp:
- 03/31/2026 05:40:54 AM (22 hours ago)
- Location:
- pageapp
- Files:
-
- 18 added
- 3 edited
-
tags/1.5.4 (added)
-
tags/1.5.4/css (added)
-
tags/1.5.4/css/admin.css (added)
-
tags/1.5.4/images (added)
-
tags/1.5.4/images/pageapp20.png (added)
-
tags/1.5.4/inc (added)
-
tags/1.5.4/inc/cachelib.php (added)
-
tags/1.5.4/inc/httplib.php (added)
-
tags/1.5.4/inc/jsonlib.php (added)
-
tags/1.5.4/inc/pluginlib.php (added)
-
tags/1.5.4/inc/restlib.php (added)
-
tags/1.5.4/inc/settingslib.php (added)
-
tags/1.5.4/inc/utilslib.php (added)
-
tags/1.5.4/js (added)
-
tags/1.5.4/js/admin.js (added)
-
tags/1.5.4/pageapp-json.php (added)
-
tags/1.5.4/pageapp.php (added)
-
tags/1.5.4/readme.txt (added)
-
trunk/inc/restlib.php (modified) (6 diffs)
-
trunk/pageapp.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pageapp/trunk/inc/restlib.php
r3482874 r3495148 2 2 /* 3 3 * File: restlib.php 4 * Date: 202 503154 * Date: 20260331 5 5 * Author: James D. Low 6 6 * URL: http://jameslow.com … … 15 15 public $is_wordpress = false; 16 16 public $cookie = false; 17 public $debug = false; 17 18 18 19 /* Constructor */ 19 function __construct($apikeys = null, $cache = 60, $prefix = null, $route = 'wordpress', $cookie = false ) {20 function __construct($apikeys = null, $cache = 60, $prefix = null, $route = 'wordpress', $cookie = false, $debug = false) { 20 21 $this->apikeys = $apikeys ? (is_array($apikeys) ? $apikeys : array($apikeys)) : array(); 21 22 $this->cache = $cache !== null ? $cache : $this->cache; … … 23 24 $this->route = $route !== null ? $route : $this->route; 24 25 $this->cookie = $cookie; 26 $this->debug = $debug; 25 27 $this->add_hooks(); 26 28 } … … 59 61 } 60 62 public function error($e, $code = 1) { 63 $this->debug($e); 61 64 $this->output(array( 62 65 'error' => $e->getMessage(), … … 64 67 'type' => get_class($e) 65 68 )); 69 } 70 public function error_wp($e) { 71 $this->debug($e); 72 return new WP_Error('error', $e->getMessage()); 73 } 74 public function debug($e) { 75 if ($this->debug) { 76 error_log($e->getMessage()); 77 error_log($e->getTraceAsString()); 78 } 66 79 } 67 80 public function header_sent($header) { … … 293 306 $result = $this->method(); 294 307 } catch (Exception $e) { 295 $result = new WP_Error('error', $e->getMessage());308 $result = $this->error_wp($e); 296 309 } catch (TypeError $e) { 297 $result = new WP_Error('error', $e->getMessage());310 $result = $this->error_wp($e); 298 311 } 299 312 $this->active = false; -
pageapp/trunk/pageapp.php
r3482874 r3495148 4 4 Plugin URI: https://wordpress.org/plugins/pageapp/ 5 5 Description: Extensions to Wordpress wp-json for the PageApp API and mobile framework 6 Version: 1.5. 36 Version: 1.5.4 7 7 Author: PageApp 8 8 Author URI: https://www.thirteen.com/ -
pageapp/trunk/readme.txt
r3482874 r3495148 4 4 Requires at least: 4.0 5 5 Tested up to: 6.9 6 Stable tag: 1.5. 36 Stable tag: 1.5.4 7 7 License: MIT 8 8 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=K6VKWB3HZB2T2&item_name=Donation%20to%20jameslow%2ecom¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8 … … 29 29 == Changelog == 30 30 31 = 1.5.4 = 32 * Latest version of restlib library 20260331 33 31 34 = 1.5.3 = 32 * Latest version of restlib library 202 5031535 * Latest version of restlib library 20260315 33 36 34 37 = 1.5.2 = 35 * Latest version of restlib library 202 5030638 * Latest version of restlib library 20260306 36 39 37 40 = 1.5.1 =
Note: See TracChangeset
for help on using the changeset viewer.