Changeset 10545
- Timestamp:
- 12/23/2020 04:56:49 PM (4 years ago)
- Location:
- sites/trunk/api.wordpress.org/public_html/patterns/1.0
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/patterns/1.0/index.php
r10459 r10545 6 6 * This is cached by nginx, so we don't have to worry about the performance costs of loading WP, and don't need to 7 7 * do any any object caching. 8 * 9 * todo 10 * publish caching sysreq once query args settled, etc -- https://make.wordpress.org/systems/wp-admin/post.php?post=1788&action=edit 8 11 * 9 12 */ … … 33 36 switch ( $query_args['action'] ) { 34 37 // List all patterns, or all with in category. 35 // To restrict to a category, the client needs to provide ` category={id}` param.38 // To restrict to a category, the client needs to provide `pattern-categories={id}` param. 36 39 default: 37 40 case 'get_patterns': … … 65 68 } 66 69 70 // Load WordPress to process the request and output the response. 67 71 require_once dirname( dirname( __DIR__ ) ) . '/wp-init.php'; 68 72 }
Note: See TracChangeset
for help on using the changeset viewer.