[wp-trac] [WordPress Trac] #21098: Out of memory errors in XML-RPC

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 1 18:04:51 UTC 2012


#21098: Out of memory errors in XML-RPC
---------------------------------+------------------------------
 Reporter:  koke                 |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Awaiting Review
Component:  XML-RPC              |     Version:  3.4
 Severity:  major                |  Resolution:
 Keywords:  mobile dev-feedback  |
---------------------------------+------------------------------

Comment (by maxcutler):

 Replying to [comment:14 markoheijnen]:
 > I'm curious to see what you want to stripe out since the functionality
 still needs to be there except functionality for viewing things.

 To remove `wp-admin/includes/post`:

 * `has_meta` moved to `wp-includes/meta.php`. Would prefer to just use
 `get_post_custom`/`get_metadata` instead, but they don't return the ID.
 * `get_default_post_to_edit` moved elsewhere.

 `wp-admin/includes/{image,taxonomy}.php` can stay. They're both pretty
 small and the code non-trivial to replace. Including just these two files
 instead of `wp-admin/includes/admin.php` would save several MB of memory.

 Note: I've only verified this using the unit-test suite. Since some legacy
 methods still don't have test coverage, there may be methods that they use
 that I'm not catching. All the more reason to write at least basic tests
 for every method.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21098#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list