Changeset 1102147
- Timestamp:
- 02/28/2015 10:58:51 PM (11 years ago)
- Location:
- wp-on-routes/trunk
- Files:
-
- 3 edited
-
README.md (modified) (3 diffs)
-
lib/path.php (modified) (1 diff)
-
wp-on-routes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-on-routes/trunk/README.md
r906878 r1102147 76 76 ``` 77 77 78 In example above, if you target `/foo/a/b/c/bar/test`, browser will answer with HTTP status 200, with following code, with header and footer included: 79 80 ``` 81 array (size=2) 82 'p1' => string 'test' (length=4) 83 'splats' => 84 array (size=1) 85 0 => string 'a/b/c' (length=5) 86 ``` 87 88 89 90 91 Details 92 === 93 78 94 At this point there are several capabilities: 79 95 … … 88 104 9. Include header and footer 89 105 106 90 107 Options you can set: 108 91 109 1. `path` (string) 92 110 2. `body` OR `action` (string) … … 94 112 4. `include_template` (boolean; default: false) 95 113 5. `headers` (array) 96 5.1 `exclude` (array) 114 + `exclude` (array) 115 116 117 118 Tests 119 === 120 121 Reference to tests/instructions.txt to read how to test output of your WordPress website. -
wp-on-routes/trunk/lib/path.php
r906878 r1102147 118 118 119 119 public function get_dir() { 120 return $this->dirs[$this->dir_index]; 120 if (isset($this->dirs[$this->dir_index])) { 121 return $this->dirs[$this->dir_index]; 122 } 121 123 } 122 124 -
wp-on-routes/trunk/wp-on-routes.php
r914514 r1102147 3 3 Plugin Name: WordPress on Routes 4 4 Description: Add API-like functionality to your WordPress instance. 5 Version: 0. 1.05 Version: 0.2.0 6 6 Plugin URI: https://github.com/markzero/wp-on-routes 7 7 Author: Marko Jakic … … 35 35 36 36 37 define('WOR_VERSION', '0. 1.0');37 define('WOR_VERSION', '0.2.0'); 38 38 define('WOR_PATH', dirname(__FILE__)); 39 39
Note: See TracChangeset
for help on using the changeset viewer.