Daryl Koopersmith
d27568e703
Caption editing in the media modal library.
...
* Adds a `describe` option to the workflow controller to support inline caption editing.
* For images, descriptions are mapped to the `caption` attribute.
* For other media items, descriptions are mapped to the `title` attribute.
* Descriptions are saved when the textarea's `change` event fires (i.e. when the textarea is blurred).
fixes #21807 , see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22173 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-10 23:32:48 +00:00
Ryan Boren
6e4505e857
Call send_origin_headers() from admin-ajax.php. Props nacin. fixes #21024
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22001 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 15:55:32 +00:00
Andrew Nacin
215be466c3
Add get-attachment and query-attachments Ajax handlers. props koopersmith. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21681 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 02:58:51 +00:00
Ryan Boren
b84f6e908c
Customize: If the preview is not logged in but the admin is, perform a front page request to setup any mapped domain cookies and then retry loading the preview.
...
Props nacin, koopersmith
fixes #20926
git-svn-id: https://develop.svn.wordpress.org/trunk@21071 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 22:51:55 +00:00
Andrew Nacin
245b0655d2
Remove user/site suggestions (autocompletion) from search inputs, as the UX isn't proper.
...
* Removes all instances of site-search, so away it goes. Sidesteps a number of bugs with site-search.
* Renames user-search to user-suggest, which means it better describes the current behavior (autocompletion) while allowing for future behavior (instant search).
* Ties user suggestions to a single .wp-suggest-user class.
with help from markjaquith, helenyhou, wonderboymusic.
fixes #20835 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21003 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 18:51:33 +00:00
Ryan Boren
18c7acb94b
Don't pass action ID to the ajax actions to avoid possible back compat problems. Props sivel. fixes #20699
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20857 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-23 20:46:38 +00:00
Andrew Nacin
99a61c7590
Send X-Robots-Tag: noindex in admin-ajax. props ryan, joostdevalk. fixes #18465 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20288 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 12:53:17 +00:00
Mark Jaquith
461e24643c
Autocomplete site names in Network Admin. More user completion areas. props Japh, DrewAPicture. see #19810 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20279 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 04:54:58 +00:00
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
Jon Cave
5055a133d5
s/oembed_cache/oembed-cache/ in admin AJAX $core_actions_*. Props jeremyfelt. Fixes #20038 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19917 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-14 10:01:00 +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
0b04f6afc5
Tabs, not spaces. Props PeteMall.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19874 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 17:05:40 +00:00
Andrew Ozz
ff9916420e
Fix typo in $core_actions_get in admin-ajax.php, see #15327
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19831 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-06 17:56:55 +00:00
Andrew Nacin
e1b6e3f002
Make 0 the default status for admin-ajax.php. props TobiasBg. fixes #15327 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19762 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-26 21:21:30 +00:00
Andrew Nacin
85a0652a83
Strip down admin-ajax.php to be a bare ajax handler. Move core ajax handlers to admin/includes/ajax-actions.php. props kurtpayne, ryan. see #15327 . see [19738] for initial commit.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19739 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 19:31:15 +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
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
Jon Cave
61c6ba8b70
s/add_user()/edit_user()/, see r19686 and #18749 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19689 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 21:02:42 +00:00
Ryan Boren
5e76729992
One newline is enough.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Ryan Boren
676ba7043e
Use one space, not two, after trailing punctuation. fixes #19537
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Andrew Nacin
fc9bd67e14
Move WP_Editor to a _WP_Editors encapsulation.
...
* WP_Editor will return in 3.4 as a one true API for editor instances. Stick to wp_editor() for now.
* TinyMCE can now be forced on with tinymce = true. It defaults to the value for user_can_richedit().
* Restores wp_default_editor(), wp_link_query(), wp_link_dialog(), wp_fullscreen_html().
fixes #19320 .
git-svn-id: https://develop.svn.wordpress.org/trunk@19420 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 19:06:52 +00:00
Andrew Nacin
4d89846637
Change show/hide storage mechanism for show_welcome_panel. 0 = hide, 1 = show, 2 = show if the multisite owner. Make welcome panel dismissable without JS (openable too via the URL). fixes #19338 , fixes #19127 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19418 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 18:30:45 +00:00
Andrew Nacin
2929a7ee9a
Remove old dismissed pointers as the IDs have changed. Switch to underscores that way we don't need to translate them for method names. Avoid an empty pointer in the array. see #18693 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19389 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-21 23:04:35 +00:00
Andrew Nacin
14c3606e1f
Allow is_network and is_user to work for all screen instances. see #18785 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19132 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-03 23:00:46 +00:00
Andrew Nacin
27cd634a96
Simplify logic in wp-fullscreen-save-post. Most of this came from post.php but that's been cut down as well. see #18785 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19107 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-01 21:23:05 +00:00
Ryan Boren
1ec2c3c3e9
No need to setup current screen in wp-fullscreen-save-post handler. see #18785
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19106 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-01 21:15:18 +00:00
Ryan Boren
3ca9c1df61
Use key(). Props scribu. fixes #18975
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19095 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-31 19:46:10 +00:00
Ryan Boren
722c6d7003
Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19074 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-28 15:48:44 +00:00
Daryl Koopersmith
c1945d5c69
Welcome panel contents and functionality. see #11651 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19007 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 16:41:26 +00:00
Ryan Boren
789dab3f20
Avoid 'Only variables should be passed by reference' warnings. Reverts [18110]. see #18975
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18998 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 20:44:39 +00:00
Andrew Nacin
1db90d21e0
Use AJAX request and usermeta rather than user settings for dismissing admin bar pointers. see #18693 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18937 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-10 23:31:36 +00:00
Andrew Ozz
1aad45debc
Fix unfiltered_html_comment nonce, props nacin, fixes #18319
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18852 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-01 00:19:07 +00:00
Mark Jaquith
a3bdf19206
Be more consistent with ERROR: messages. fixes #15887
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18841 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-30 17:18:35 +00:00
Andrew Nacin
0cd9b83b64
Cache internal linking nonce jQuery object. props mitchoyoshitaka. Update this nonce through autosave. fixes #18403 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18820 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:39:55 +00:00
Andrew Nacin
35edc4264d
Release a user's post lock when the user leaves a post. see #18515 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18796 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-27 20:52:07 +00:00
Andrew Nacin
0f4a1e5e3c
delete_post_thumbnail(). props CoenJacobs, duck_. fixes #17895 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18767 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-24 19:31:38 +00:00
Andrew Nacin
e984d8503b
Fix issue where post locks were not updating on autosaves. props benbalter, fixes #18642 . see #18515 for more on locking. broken in [12991], see #11889 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18709 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-18 23:23:39 +00:00
Andrew Nacin
226635ed73
Loosen validation regex to use sanitize_key() in a few AJAX locations for things like pages, orders, columns. Change return value to 0 for failure, as -1 is reserved for authentication/intention. props ocean90, azaozz, fixes #18637 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18663 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-12 21:48:44 +00:00
Andrew Ozz
77892dfba6
Improve auto column switching for post.php, see #18198
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18607 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 22:55:39 +00:00
Ryan Boren
53122aafe5
Use *_metadata_by_mid() API when updating post meta in admin ajax. Fix slashing. see #18195
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18502 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-03 19:14:06 +00:00
Andrew Ozz
461ceba60d
Editor API enhancement, first run (still needs some work), see #17144
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18498 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-03 10:19:00 +00:00
Ryan Boren
b4b82c9725
Check caps for both old and new meta keys when changing the key for a mid. Properly handle slashes when checking meta caps. Props xknown. see #17850
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18449 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-21 19:32:12 +00:00
Ryan Boren
6b5d8397b0
Introduce register_meta(), get_metadata_by_mid(), and *_post_meta capabilities. fixes #17850
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18445 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-20 22:04:35 +00:00
Andrew Nacin
ffd9f52cb5
Use edit_comment rather than edit_post in admin-ajax. props ejdanderson, see #17909 . for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18435 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-11 21:48:43 +00:00
Andrew Nacin
36f1805ec4
Take that, PHP 5.0.5. Good riddens. see #14160 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18110 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-01 22:03:36 +00:00
Ryan Boren
cf59265def
Decrement pending count after Approve and Reply. Props DH-Shredder. fixes #17380
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18100 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-01 19:23:19 +00:00
Ryan Boren
ccba8dfbf3
Validation fixes. Props ocean90, peaceablewhale. see #17364
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18010 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-23 23:33:30 +00:00
Ryan Boren
57b6c9aeda
Sanitize guid on save and display. Sanitize mime type on save. Don't allow changing mime type via edit form handlers. Protect hidden meta.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17994 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 23:19:42 +00:00
Andrew Nacin
4122ba6f25
Move output buffering out of a loop, collapsing it into one buffer. props mitchoyoshitaka, fixes #17352 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17897 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-12 05:50:53 +00:00