Making WordPress.org

Changeset 10545


Ignore:
Timestamp:
12/23/2020 04:56:49 PM (4 years ago)
Author:
iandunn
Message:

Pattern API: Add initial e2e test.

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  
    66 * This is cached by nginx, so we don't have to worry about the performance costs of loading WP, and don't need to
    77 * 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
    811 *
    912 */
     
    3336    switch ( $query_args['action'] ) {
    3437        // 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.
    3639        default:
    3740        case 'get_patterns':
     
    6568    }
    6669
     70    // Load WordPress to process the request and output the response.
    6771    require_once dirname( dirname( __DIR__ ) ) . '/wp-init.php';
    6872}
Note: See TracChangeset for help on using the changeset viewer.