[wp-trac] [WordPress Trac] #33982: WP REST API Stage One: Infrastructure

WordPress Trac noreply at wordpress.org
Thu Oct 1 03:41:35 UTC 2015


#33982: WP REST API Stage One: Infrastructure
----------------------------+--------------------------
 Reporter:  rachelbaker     |       Owner:  rachelbaker
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+--------------------------

Comment (by rachelbaker):

 Replying to [comment:5 wonderboymusic]:
 > Awesome. Few notes:
 >
 > * We no longer mix function definitions and top-level code.
 `add_filter|action()` calls should go in `wp-includes/default-filters.php`
 or in `rest-api/filters.php` or something
 Shucks! Forgot about that.  Will fix.
 > * `src/wp-includes/rest-api.php` should load files only
 Will fix.
 > * `extras.php` can be called `functions.php` or `rest-functions.php` and
 contain the function defs from `rest-api.php` and `extras.php`
 Will fix.
 > * Is it necessary to have the `infrastructure` folder - for vanity and
 semantics' sake, can those files just all live in `rest-api`? or if in a
 folder, can we call it `lib`?
 I think the idea is to have the `infrastructure` directory and eventually
 an `endpoints` directory.  But I will name the directory `microsoft` if it
 that is your desire.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33982#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list