Commit Graph

345 Commits

Author SHA1 Message Date
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
Andrew Ozz c244f12c8e Change comment Reply to Approve and Reply and auto-approve the comment if it is in moderation, props DH-Shredder, fixes #15898
git-svn-id: https://develop.svn.wordpress.org/trunk@17832 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-07 04:56:00 +00:00
Mark Jaquith 72608a1197 A few "login" used as a verb fixes. props xibe. fixes #17335
git-svn-id: https://develop.svn.wordpress.org/trunk@17831 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-07 03:26:23 +00:00
Andrew Ozz 07a62334de Distraction Free Writing mode, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17695 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-25 01:01:34 +00:00
Andrew Ozz 6d0f618fd9 Fix two rare regressions: alert when the login has expires and when post is edited by another user, fixes #16928
git-svn-id: https://develop.svn.wordpress.org/trunk@17640 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-16 02:37:44 +00:00
Ryan Boren bdd25aad05 Update counts and pagination when trashing and moderating comments. Props garyc40, koopersmith, mdawaffe, nacin. fixes #15530
git-svn-id: https://develop.svn.wordpress.org/trunk@17354 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-22 18:47:42 +00:00
Andrew Nacin 7c379501ac s/get_list_table/_get_list_table/ in admin-ajax. see #16262.
git-svn-id: https://develop.svn.wordpress.org/trunk@17325 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-18 11:06:22 +00:00
Ryan Boren 545cc85918 Strip and prepare ajax tag search string. Avoids applying slashes toward the character count. Props brianlayman. see #13580
git-svn-id: https://develop.svn.wordpress.org/trunk@17256 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-11 20:15:25 +00:00
Andrew Nacin 4c869552ff Nonce checks for internal linking and list table ajax. fixes #16188.
git-svn-id: https://develop.svn.wordpress.org/trunk@17255 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-11 20:03:50 +00:00
Ryan Boren eba71eb7c0 Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-06 04:11:14 +00:00
Ryan Boren 9f9f401c42 Fix comment manipulation on edit post screen. Props garyc40. fixes #15876
git-svn-id: https://develop.svn.wordpress.org/trunk@17113 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-22 19:03:43 +00:00
Ryan Boren 3df8f3d4a5 Define net and user admin constants for fetch-list case. Props scribu. fixes #15903
git-svn-id: https://develop.svn.wordpress.org/trunk@17080 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-20 13:30:39 +00:00
Ryan Boren c1e26ef82c Add like_escape() to some queries. fixes #15764
git-svn-id: https://develop.svn.wordpress.org/trunk@16999 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 14:22:41 +00:00
Andrew Nacin 266cd3f5df Replace check_permissions() with ajax_user_can(). New method returns true/false to current_user_can(), which we then handle in admin ajax. see #15326.
git-svn-id: https://develop.svn.wordpress.org/trunk@16992 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 09:18:28 +00:00
Andrew Nacin 8661cbc56e Move check_permissions() out of ajax_response(). see #15326.
git-svn-id: https://develop.svn.wordpress.org/trunk@16991 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 08:48:16 +00:00
Ryan Boren 1da4d8e087 Fix notice in ajax response. Props garyc40. fixes #15810
git-svn-id: https://develop.svn.wordpress.org/trunk@16914 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-14 15:07:43 +00:00
scribu 1f570675c1 Fix Parent dropdown after creating a category. Props Utkarsh, garyc40. Fixes #15194
git-svn-id: https://develop.svn.wordpress.org/trunk@16884 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-12 10:29:19 +00:00
Andrew Nacin ee30b441ff Use assign_terms cap for tag search and tag cloud in admin ajax. fixes #15437.
git-svn-id: https://develop.svn.wordpress.org/trunk@16771 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-07 18:59:25 +00:00
Andrew Nacin 872372d68c s/occured/occurred/. props aldenta, fixes #15653.
git-svn-id: https://develop.svn.wordpress.org/trunk@16699 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 23:30:21 +00:00
scribu 907353550e Get rid of in favor of . Fixes #15607. See #15580
git-svn-id: https://develop.svn.wordpress.org/trunk@16617 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-29 20:15:04 +00:00
scribu e6e9ea6c26 Set current screen for comment quick-edit. Props batmoo. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16483 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 09:34:21 +00:00
Andrew Nacin f86af64e5f Internal linking cleanups. Fix combination of pagination and searching. Add a margin of error (ha, get it?) to triggering the river. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16479 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-19 05:31:07 +00:00
Andrew Nacin 7cccd5715f Third pass on internal linking preloading. Or, what I left out of the second pass commit. see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16459 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 07:59:05 +00:00
Andrew Nacin 655df3af90 Ludicrous speed for internal linking. First pass. props koopersmith, see #11420.
git-svn-id: https://develop.svn.wordpress.org/trunk@16457 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 06:22:13 +00:00
Ryan Boren 4b33a0e9c4 Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@16438 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:47:34 +00:00