Commit Graph

15 Commits

Author SHA1 Message Date
Sergey Biryukov 0df3ab62a7 Fix E_STRICT notice in wp_get_popular_importers(). see #24356.
git-svn-id: https://develop.svn.wordpress.org/trunk@24378 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-28 03:53:59 +00:00
Andrew Nacin 2b88e9eb56 Pull the list of popular importers from WordPress.org.
These are the importers we suggest on import.php, prompting the user to
install the relevant plugin for the import they want to go through.

If the API is inaccessible, it falls back to a hard-coded list that should
be kept sync'd with the API with each major version of WordPress. This API
enables us to add new importers between releases, as they are completed or
if services gain quick adoption. As a last resort, we can also temporarily
disable importers that are broken (due to API changes, for example).

The importer currently returns English strings (which are then run through
translate() for existing strings), but the locale is passed to the API,
allowing us to ship translated strings if we wish to be adventurous.

props dllh for the assist.
fixes #18977.



git-svn-id: https://develop.svn.wordpress.org/trunk@22632 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 07:20:04 +00:00
Andrew Nacin 774a12be83 Introduce constants to allow for easier expression of time periods in seconds. Adds MINUTE_IN_SECONDS, HOUR_IN_SECONDS, DAY_IN_SECONDS, WEEK_IN_SECONDS, YEAR_IN_SECONDS. props nbachiyski, SergeyBiryukov. fixes #20987.
git-svn-id: https://develop.svn.wordpress.org/trunk@21996 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 05:26:19 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Ryan Boren da02537bb0 Mark import attachments as private. Schedule job to delete old import attachments. Introduce attachment context.
git-svn-id: https://develop.svn.wordpress.org/trunk@17999 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 23:25:28 +00:00
Ryan Boren b15476c5fd Remove unnecessary addslashes. Props duck_. fixes #15325
git-svn-id: https://develop.svn.wordpress.org/trunk@16608 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-29 14:40:43 +00:00
Ryan Boren bb43e36418 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11971 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 17:19:13 +00:00
Peter Westwood 2fac03c837 Handle the file upload case on import when post_max_size is smaller than upload_max_filesize and no POST data arrives at all. Fixes #10830.
git-svn-id: https://develop.svn.wordpress.org/trunk@11963 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-23 07:06:58 +00:00
Ryan Boren 4fca589936 Append .txt to import files rather than .import. Props donncha
git-svn-id: https://develop.svn.wordpress.org/trunk@10611 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-20 21:39:20 +00:00
Ryan Boren 6d727a9c2b phpdoc for wp-admin. Props jacobsantos. see #7527
git-svn-id: https://develop.svn.wordpress.org/trunk@9119 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-10 18:21:16 +00:00
Ryan Boren f885a9f93a phpdoc for wp-admin/includes from jacobsantos. see #7527
git-svn-id: https://develop.svn.wordpress.org/trunk@9053 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-02 01:03:26 +00:00
Ryan Boren 49883447a3 Importer refactoring from tellyworth. fixes #5522
git-svn-id: https://develop.svn.wordpress.org/trunk@6477 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-24 06:20:34 +00:00
Ryan Boren 96ee1a9982 Avoid warning when import dir is empty. Props Viper007Bond. fixes #5395
git-svn-id: https://develop.svn.wordpress.org/trunk@6411 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:48:51 +00:00
Ryan Boren 5917c5458c Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: https://develop.svn.wordpress.org/trunk@6125 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 16:32:22 +00:00
Ryan Boren 09f70467e0 Admin includes reorg. see #4334
git-svn-id: https://develop.svn.wordpress.org/trunk@5542 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-25 07:16:21 +00:00