[wp-trac] [WordPress Trac] #20042: Move AtomServer class to class-atomserver.php
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 15 23:28:06 UTC 2012
#20042: Move AtomServer class to class-atomserver.php
-------------------------+------------------
Reporter: ryan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.4
Component: AtomPub | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------
Changes (by kurtpayne):
* cc: kpayne@… (added)
* keywords: => has-patch
Comment:
[[attachment:20042.patch]] does the following:
* separates the atom server into a separate class
* removes the log_api calls per #20051
* updates the query filter per
[https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
dev&day=2012-02-15#m366372 IRC chat with nacin, ryan]
* replaces the `exit` calls with `wp_die` calls for future unit tests
* installs an override handler for `wp_die`
* allows a plugin to replace the atom class with a `wp_atom_server_class`
hook
* whitespace cleanup
It passes the Gorilla test:
{{{
Gorilla is beginning testing on http://127.0.0.1/wordpress-trunk/wp-
app.php...
testServiceDocumentExists with data set #0
------------------------------------------
[info] Service document found
[result] success
testCollectionsExist with data set #0
-------------------------------------
[info] Collections found:
Test Blog Posts accepts application/atom+xml;type=entry
Test Blog Media accepts image/*, audio/*, video/*
[result] success
testHasJPEGCollection with data set #0
--------------------------------------
[info] JPEG collections found:
Test Blog Media
[result] success
Gorilla is beginning testing on http://127.0.0.1/wordpress-trunk/wp-
app.php...
testListPosts
-------------
[info] Post collections found:
Test Blog Posts
[info] Using Test Blog Posts at http://127.0.0.1/wordpress-trunk/wp-
app.php/posts
[info] Checking current
[result] success
testSparsePost
--------------
[info] Testing basics
[info] Posting of new entry reported success, location: http://127.0.0.1
/wordpress-trunk/wp-app.php/post/1848
[result] success
testPostFromTemplate with data set #0
-------------------------------------
[info] Creating from Gorilla/lib/tests/data/posts/example-1.xml
[info] Posting of new entry reported success, location: http://127.0.0.1
/wordpress-trunk/wp-app.php/post/1851
[info] Examining the new entry as returned in the POST response
[info] Slug was used in server-generated URI
[info] Checking at the new location
[result] success
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20042#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list