Commit Graph

111 Commits

Author SHA1 Message Date
Andrew Nacin 681c6ea428 Remove index-extra.php. Move dashboard widget XHR callbacks to ajax-actions.php. fixes #20242.
git-svn-id: https://develop.svn.wordpress.org/trunk@20190 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 13:20:00 +00:00
Daryl Koopersmith d254551dd7 Theme Customizer: First pass for upload controls, using background image as an example. Add a wrapper for Plupload that allows for custom upload UIs. see #19910.
wp.Uploader is a wrapper that provides a simple way to upload an attachment (using the wp_ajax_upload_attachment handler). It is intentionally decoupled from the UI. When an upload succeeds, it will receive the attachment information (id, url, meta, etc) as a JSON response. If the upload fails, the wrapper handles both WordPress and plupload errors through a single handler.

As todos, we should add drag classes for the uploader dropzone and account for the rough 100mb filesize limit in most browsers. The UI for the customizer upload controls could be improved as well.

git-svn-id: https://develop.svn.wordpress.org/trunk@20179 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 04:14:05 +00:00
Andrew Nacin f4d36e96a5 Add the wp_edit_nav_menu_walker filter to the ajax request. props wonderslug, ocean90. fixes #14527.
git-svn-id: https://develop.svn.wordpress.org/trunk@20072 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 17:50:01 +00:00
Jon Cave abfcb78ce7 Correct faulty logic when dealing with autocomplete_users_for_site_admins, and break logic into multiple lines. See #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@19934 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-16 17:12:10 +00:00
Ryan Boren 99c65753a4 Add post ID argument to _wp_post_thumbnail_html() rather than relying on a global. Post the ID from wp_ajax_set_post_thumbnail(). Props batmoo. fixes #20003
git-svn-id: https://develop.svn.wordpress.org/trunk@19902 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 17:41:37 +00:00
Mark Jaquith 54ab38d9ed Autocomplete for add-user screens in multisite. props boonebgorges, Japh, DrewAPicture, PeteMall, nacin, koopersmith, markjaquith. see #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@19897 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 08:45:17 +00:00
Andrew Nacin 092808ead8 Allow localized commas to be used as tag separators. see #7897.
git-svn-id: https://develop.svn.wordpress.org/trunk@19853 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 18:06:12 +00:00
Ryan Boren 3a1d1b098b Setup now that global is not used. see #15327
git-svn-id: https://develop.svn.wordpress.org/trunk@19822 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-03 20:13:22 +00:00
Andrew Nacin 146886cd72 Use wp_die() in ajax-actions. props kurtpayne. see [19801], fixes #15327.
git-svn-id: https://develop.svn.wordpress.org/trunk@19802 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 22:14:39 +00:00
Ryan Boren 9e6fbb0061 Check the return of wp_insert_term() for WP_Error or array. Prevents fatal erros and failure to add categories when adding terms via ajax. Props mdawaffe. fixes #17938 #17939
git-svn-id: https://develop.svn.wordpress.org/trunk@19792 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-30 18:19:27 +00:00
Andrew Nacin 8900888567 Add 'ep_mask' as an argument to the 'rewrite' array for register_post_type() and register_taxonomy(). Keeps 'permalink_epmask' compatible as an argument for post type registrations. Fixes endpoints for category and tag pages. fixes #19275.
git-svn-id: https://develop.svn.wordpress.org/trunk@19738 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 19:12:04 +00:00