Andrew Nacin
f3b332e9bb
Use meta caps edit_post, read_post, and delete_post directly, rather than consulting the post type object. map_meta_cap() handles that for us. props markjaquith, kovshenin. fixes #23226 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24593 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-08 20:05:42 +00:00
Sergey Biryukov
7cf933b2c9
* Pass ellipsis as a parameter to wp_html_excerpt() instead of appending it manually.
...
* Consolidate the logic to avoid appending ellipsis if the entire string is shown.
* Show ellipsis after truncated filenames and post titles.
props solarissmoke, bpetty, SergeyBiryukov. fixes #11446 .
git-svn-id: https://develop.svn.wordpress.org/trunk@24214 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-09 00:22:02 +00:00
Andrew Nacin
69f1ab8b9c
Verify attachment parent during upload.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22915 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:39:34 +00:00
Ryan Boren
bb1760e226
Route uploads through async-upload.php instead of admin-ajax.php.
...
Props nacin, koopersmith
fixes #22622
git-svn-id: https://develop.svn.wordpress.org/trunk@22902 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 20:17:57 +00:00
Andrew Nacin
9d2cc09ce1
Have media-new.php return simple rows of basic attachment data, with an 'Edit' link next to each taking them to post.php (in a new window). Not ideal, but this is largely a fallback screen at this point.
...
This is bolted on to existing code, the vast majority of which is destined to be ripped out in 3.6 once things settle.
see #22083 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22755 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:05:44 +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
ff40552e4b
Use text/html to appease IE < 9. Props azaozz. fixes #19494
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19586 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-11 00:03:24 +00:00
Ryan Boren
e83b5ac2ea
Add cap and type checks to media item fetch. For trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17390 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-05 18:22:53 +00:00
Dion Hulse
bc726afc10
Better display handling of error messages during swfupload uploading. Fixes #12225
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14816 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 10:59:52 +00:00
Andrew Nacin
ec4f5b83bf
Use relative paths when including files, avoiding include_path. fixes #12594 , props sorich87.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14139 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 06:14:45 +00:00
Ryan Boren
eac87a3f7d
Pass logged_in cookie to async-upload. Props nbachiyski. fixes #10739
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11904 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-08 15:22:42 +00:00
Andrew Ozz
02930f69d6
Show "Delete" in Media -> Add New, props mgriepentrog, fixes #7879
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11421 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-21 01:42:40 +00:00
Mark Jaquith
f0336cfa7d
deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11380 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:11:07 +00:00
Ryan Boren
12c7093645
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Andrew Ozz
5b46fbafd5
Define WP_ADMIN in flash uploader, props hailin, fixes #9368
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10827 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-20 01:07:35 +00:00
Andrew Ozz
37664340f5
Show file url after upload form media library, props yoavf, fixes #9267
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10696 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 08:22:25 +00:00
Ryan Boren
2dc15c5a81
Notice fixes from DD32. see #7509
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9699 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-14 23:01:16 +00:00
Andrew Ozz
d8c2d1347a
Upload media from the Media Library page.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8998 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-27 08:17:55 +00:00
Ryan Boren
a70e1a34e5
WP-Admin File Level Inline Documentation from santosj. see #7496
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8618 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-11 20:26:31 +00:00
Ryan Boren
2272a1a950
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8600 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-09 05:36:14 +00:00
Ryan Boren
3f0d3c8055
SSL fixes. see #7001
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8190 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-24 22:19:27 +00:00
Ryan Boren
74226b61d4
Add some noncing. Props andy.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8023 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-30 20:43:36 +00:00
Ryan Boren
dd60c22172
Add charset to async-upload content-type header. Props duncanmc. fixes #6873 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@8021 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-30 20:42:28 +00:00
Ryan Boren
e911cca913
Allow wp-config.php to exist one level up from WordPress root directory. Props sambauers. fixes #6933
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7971 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-21 05:59:27 +00:00
Ryan Boren
a58816e2ab
Workaround response truncation by reducing size of response after uploading with flash uploader. Props tellyworth. fixes #6713
...
git-svn-id: https://develop.svn.wordpress.org/trunk@7682 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 23:09:14 +00:00
Ryan Boren
27f47369b3
Add capability check to async-upload. Props xknown. fixes #5848
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6830 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-13 23:16:11 +00:00
Matt Mullenweg
dd37de2de7
First pass at async upload, multi-upload, and gallery feature. Modified names from patch. Hat tip: tellyworth, skeltoac.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@6659 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-25 19:21:11 +00:00