Commit Graph

394 Commits

Author SHA1 Message Date
scribu 0e7fb842ec Make media_handle_sideload() return attachment id instead of URL. Props joostdevalk. Fixes #15432
git-svn-id: https://develop.svn.wordpress.org/trunk@16383 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 12:53:11 +00:00
Andrew Nacin 200eefec46 Use square brackets instead of braces for string access. props hakre, fixes #13900.
git-svn-id: https://develop.svn.wordpress.org/trunk@16340 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 09:53:55 +00:00
Andrew Nacin 50dc640746 Use spaces for alignment. see #15343 [16236]
git-svn-id: https://develop.svn.wordpress.org/trunk@16245 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 00:42:35 +00:00
Peter Westwood 73c3aa15f5 Encode quotes and chevrons in the HTML editor version of the generated captions too. Fixes #15343.
git-svn-id: https://develop.svn.wordpress.org/trunk@16236 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-08 17:15:14 +00:00
Nikolay Bachiyski 1937c1221d Introduce and use translate_nooped_plural(). Fixes #13996
* _n_noop() and _nx_noop() now return associative arrays for greater clarity
 * translate_nooped_plural() takes one such associative array and translates it
 * it works on both the result from _n_noop() and from _nx_noop()
 * this breaks backwards compatibility, but I doubt any plugin uses it (I will do a global grep to confirm)
 * translate_nooped_plural() is applied where applicable


git-svn-id: https://develop.svn.wordpress.org/trunk@16073 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 13:12:14 +00:00
Mark Jaquith d65cdf4ba8 Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: https://develop.svn.wordpress.org/trunk@16061 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 21:56:43 +00:00
Ryan Boren 4ae97bd34f Don't show private attachment taxonomies in the uploader. see #14746
git-svn-id: https://develop.svn.wordpress.org/trunk@16057 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 18:53:09 +00:00
Peter Westwood 3365e10951 Add a filter to the mime type list displayed in the iframe media uploader when viewing the media library. Fixes #6348 props wojtek.szkutnik
git-svn-id: https://develop.svn.wordpress.org/trunk@16047 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 12:41:37 +00:00
Ryan Boren 6f62e4f13c Default send to editor to true if the post parent is empty. Props blepoxp. fixes #14133
git-svn-id: https://develop.svn.wordpress.org/trunk@15920 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-22 20:17:17 +00:00
Andrew Nacin 0aba879b95 Remove Lucida Grande from the sans serif font stack. fixes #8352, props iammattthomas.
git-svn-id: https://develop.svn.wordpress.org/trunk@15858 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 10:30:28 +00:00
Andrew Nacin ea2f90c70e Move some post and taxonomy functions from admin/includes to wp-includes in preparation for QuickPress template tag. Moves get_tags_to_edit, get_terms_to_edit, get_default_post_to_edit, media_buttons, _media_button, get_upload_iframe_src. Also introduce get_media_buttons as a wrapper for media_buttons. props jorbin, see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15688 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 02:58:59 +00:00
Andrew Nacin 9494e4ce7e Phpdoc argument/@param cleanups. props duck_, see #14783.
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
Dion Hulse 9c7369cca9 Fix typo in type_url_form_video() help text. Props mako09. Fixes #14003 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15292 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-20 04:13:57 +00:00
Mark Jaquith 29a6333a1f Add ?ver=DATE query strings to all images that changed since 2.9, to expire browser cache. Bump versions on all CSS/JS files modified in that process. fixes #13562.
git-svn-id: https://develop.svn.wordpress.org/trunk@15072 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 06:33:46 +00:00
Nikolay Bachiyski de9e77a9c6 Prevent a notice if $_REQUEST['post_id'] is missing. Just use 0 in this case, which will be the same as using intval on an undefined value.
git-svn-id: https://develop.svn.wordpress.org/trunk@14987 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 11:42:46 +00:00
Andrew Nacin 8fc8e37158 Hide Flash uploader and theme/plugin editor documentation feature, if no JS. Also some validation fixes in the theme editor. props ocean90. see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14930 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 03:57:55 +00:00
Mark Jaquith bf69494f84 Update upload quota filled message to mention the limit and not suggest file deletion. fixes #13479
git-svn-id: https://develop.svn.wordpress.org/trunk@14897 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 17:53:31 +00:00
Andrew Nacin 0ed95acd34 s/onclick/onClick/. props Gazzer from wp-testers.
git-svn-id: https://develop.svn.wordpress.org/trunk@14827 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 05:15:55 +00:00
Dion Hulse 997c0f8087 We're not as bold as some people make us out to be. Move the maximum upload size from a Heading to a paragraph text. Fix screen formatting on Multisite when over quota. see #12853
git-svn-id: https://develop.svn.wordpress.org/trunk@14776 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 12:57:49 +00:00
Mark Jaquith dafdd33220 Add nonce protection for setting/removing featured post image. fixes #13438
git-svn-id: https://develop.svn.wordpress.org/trunk@14730 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 22:08:49 +00:00
Ron Rennick 07bca9ef99 boldly go where no man has gone before, see #12853
git-svn-id: https://develop.svn.wordpress.org/trunk@14693 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 18:44:51 +00:00
Ron Rennick 95694cb813 show upload limit in media upload UI, see #12853
git-svn-id: https://develop.svn.wordpress.org/trunk@14682 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 23:57:32 +00:00
Andrew Nacin 8816885c79 Escape slash in inline JS for SWFUploader. props zeo, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14656 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 06:14:06 +00:00
Andrew Nacin 47136b319f Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.
git-svn-id: https://develop.svn.wordpress.org/trunk@14647 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 21:46:25 +00:00
Andrew Nacin d999daff98 esc_url the URL from get_upload_iframe_src. props jshreve, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14633 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 15:03:59 +00:00
Andrew Nacin 21db580d98 Append closing td/tr to output instead of directly echoing it. props jshreve, see #13383.
git-svn-id: https://develop.svn.wordpress.org/trunk@14618 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 01:54:21 +00:00
Ryan Boren d783952469 Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Ryan Boren 57a5a11660 Revert [14347] and [14372]. It broke more than we expected. Try again in 3.1. see #13051
git-svn-id: https://develop.svn.wordpress.org/trunk@14374 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 18:16:22 +00:00
Ryan Boren 7fcda10d46 Escape links by default. Props alexkingorg. see #13051
git-svn-id: https://develop.svn.wordpress.org/trunk@14347 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-02 22:53:59 +00:00
Dion Hulse f72a1d860a Use the correct field when determining if the parent can support the Post Editor. See #12792
git-svn-id: https://develop.svn.wordpress.org/trunk@14146 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 09:09:45 +00:00
Andrew Nacin 56c7b309e6 More tweaks for thumbnail support when no editor support for custom post types. see #12792, props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14118 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 21:45:16 +00:00
Andrew Nacin 240551a9fa Fix notice in get_media_items().
git-svn-id: https://develop.svn.wordpress.org/trunk@14059 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 12:49:58 +00:00
Mark Jaquith 7c6b7b0a91 Make thumbnail work for custom post types even if the editor is not being displayed. props scribu. fixes #12792
git-svn-id: https://develop.svn.wordpress.org/trunk@14015 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 11:20:47 +00:00
Dion Hulse 842e844bc5 Change UI labels from "Post Thumbnails" to "Featured Image". See #12554
git-svn-id: https://develop.svn.wordpress.org/trunk@13940 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 06:12:49 +00:00
Dion Hulse 6740a74398 Do not add rel="attachment" for direct(File URL, not Post URL) links to non-media files in "Insert into Post". Fixes #7040
git-svn-id: https://develop.svn.wordpress.org/trunk@13875 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 09:57:34 +00:00
Andrew Nacin ddc506f01c Remove unnecessary ternary operators such as (expr) ? true : false.
git-svn-id: https://develop.svn.wordpress.org/trunk@13769 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:15:00 +00:00
Andrew Nacin 8d0a3589c9 Use disabled() form helper. fixes #12581
git-svn-id: https://develop.svn.wordpress.org/trunk@13661 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 17:12:23 +00:00
Andrew Nacin 8b6b16cb2a s/onClick/onclick/. props TobiasBg, see #12429
git-svn-id: https://develop.svn.wordpress.org/trunk@13612 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-06 20:06:32 +00:00
Dion Hulse 0da34463e7 Display an Attachment Icon if an Attachment thumbnail is not available. Fixes display of Upload edit fields. Fixes #12328
git-svn-id: https://develop.svn.wordpress.org/trunk@13600 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-06 08:00:42 +00:00
Dion Hulse 38817d572b A Better Flash upload button, Adds a Hover and Active styling, Adds a distinctive border to the button. Props ocean90. Fixes #12420
git-svn-id: https://develop.svn.wordpress.org/trunk@13528 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-01 11:57:03 +00:00
Andrew Nacin 1cc5b31283 s/onClick/onclick/. props TobiasBg fixes #12429
git-svn-id: https://develop.svn.wordpress.org/trunk@13510 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 19:39:06 +00:00
Ryan Boren 9e5b6d1f34 Pass overrides. Allow ref array calling. Props tychay. fixes #12278
git-svn-id: https://develop.svn.wordpress.org/trunk@13290 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-22 16:54:51 +00:00
Dion Hulse 4df0240736 Allow Deletion of Media Alt text. Props reaperhulk. Fixes #11805
git-svn-id: https://develop.svn.wordpress.org/trunk@13283 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 11:21:32 +00:00
Andrew Nacin 5d808fce86 Use admin_url() for images in wp-admin, to allow for filtering. Props mdawaffe, see #12300
git-svn-id: https://develop.svn.wordpress.org/trunk@13256 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 21:09:49 +00:00
Andrew Nacin d824d6bbd4 Improved IPTC and EXIF handling. Drag a wider net and also try to avoid numeric attachment slugs where possible. Props miqrogroove. See #11417
git-svn-id: https://develop.svn.wordpress.org/trunk@13244 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 09:17:34 +00:00
Andrew Nacin 6f1bfe6f0e Allow class/method array pair in wp_iframe() when checking callback name in determining whether to include media stylessheet. Props technosailor, fixes #11976
git-svn-id: https://develop.svn.wordpress.org/trunk@13243 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 08:19:44 +00:00
Dion Hulse 468d0d7cff Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 02:01:46 +00:00
Andrew Nacin 0fc1312800 Use stripos() instead of strpos() with strtolower(). For PHP < 5 we have stripos() in compat.php. Fixes #11176
git-svn-id: https://develop.svn.wordpress.org/trunk@13132 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 02:27:19 +00:00
Andrew Nacin d43ba9114b Don't use deprecated functions. see #11388
git-svn-id: https://develop.svn.wordpress.org/trunk@13106 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 10:35:10 +00:00
Mark Jaquith 4c3fbea45a Revert quote swap from [12955]. Fixes media upload links.
git-svn-id: https://develop.svn.wordpress.org/trunk@12986 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 07:31:38 +00:00
Ryan Boren 107f08638f Fix delete media nonces. Props nacin. fixes #12085
git-svn-id: https://develop.svn.wordpress.org/trunk@12972 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-05 17:59:18 +00:00
Ryan Boren ef25305270 Merge mu_media_buttons() into media_buttons(). see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12955 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 20:28:52 +00:00
Ryan Boren e0254c7917 Add wp-admin/includes/ms-deprecated.php. Deprecate wpmu_checkAvailableSpace. Introduce is_upload_space_available(). see #11762
git-svn-id: https://develop.svn.wordpress.org/trunk@12824 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-25 19:46:24 +00:00
Ryan Boren 2e46e81309 i18n fixes. Props nbachiyski. fixes #11954
git-svn-id: https://develop.svn.wordpress.org/trunk@12789 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 21:37:43 +00:00
Ryan Boren 8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Andrew Ozz 276e9c3b09 Remove unneeded empty span and add form closing tag in media.php, props Simek and hakre, fixes #11569
git-svn-id: https://develop.svn.wordpress.org/trunk@12582 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 08:19:34 +00:00
Matt Mullenweg d94f8b9331 More cleanup of the edit media screen:
* Simplified table to not need rowspan, and other markup where possible.
* Put more elements in a paragraph tag for better spacing.
* Brought edit image buton under the image.
* Everything is now in line with WordPress Coding Standards, particularly with regards to spacing and attribute quotes.
* Minor styling for better alignment.

TODO: We show the file URL here, but for images we should show the URL to each size, with its dimensions.



git-svn-id: https://develop.svn.wordpress.org/trunk@12543 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-25 23:04:48 +00:00
Matt Mullenweg 8fa4b51cb6 Media editing: When you have many custom taxonomies this page can get rather long, or just normally, so adding a "save" button to the top as well, for easy access.
There was no place on this page that actually linked to the item being edited, so I hyperinked the thumbnail.


git-svn-id: https://develop.svn.wordpress.org/trunk@12542 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-25 22:22:21 +00:00
Andrew Ozz e54acbc473 Display "Dimensions" only for image attachments, fixes #11403
git-svn-id: https://develop.svn.wordpress.org/trunk@12378 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 07:02:26 +00:00
Andrew Ozz 770fd776d7 Disable trash for attachments for now pending improvements in 3.0, fixes #11149
git-svn-id: https://develop.svn.wordpress.org/trunk@12377 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 06:40:16 +00:00
Mark Jaquith db7d45ebe2 Provide visual feedback for "Use as thumbnail" when clicked immediately after uploading the image. fixes #11140
git-svn-id: https://develop.svn.wordpress.org/trunk@12355 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 08:03:26 +00:00
Mark Jaquith 507cf49e1b Do not show "Use as thumbnail" in standalone media browser, but DO show it when you upload a new image on a post. fixes #11366
git-svn-id: https://develop.svn.wordpress.org/trunk@12352 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 07:04:01 +00:00
Mark Jaquith ab97039f96 Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can create very large thumbnail images if you so choose.
git-svn-id: https://develop.svn.wordpress.org/trunk@12351 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 06:14:36 +00:00
Ryan Boren 3d6a741305 Allow registering post image support per post type. fixes #11364
git-svn-id: https://develop.svn.wordpress.org/trunk@12350 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-09 15:39:20 +00:00
Mark Jaquith ce73d32830 Yet more standardization around Post/Page Image instead of Post/Page Thumbnail
git-svn-id: https://develop.svn.wordpress.org/trunk@12344 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:27:53 +00:00
Mark Jaquith 51e25872a6 Standardize around "post image" instead of "post thumbnail"
git-svn-id: https://develop.svn.wordpress.org/trunk@12339 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 16:34:04 +00:00
Ryan Boren d6003d7fa6 Standardize on 'Undo'. Props caesarsgrunt. fixes #11299
git-svn-id: https://develop.svn.wordpress.org/trunk@12308 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 20:00:33 +00:00
Andrew Ozz a308e5f1da Remove oEmbed references and auto-insert of shortcodes from the UI, fixes #11288
git-svn-id: https://develop.svn.wordpress.org/trunk@12304 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 09:22:48 +00:00
Andrew Ozz a772d3fe2c Hide Cancel link in the browser uploader on Media Library screen.
git-svn-id: https://develop.svn.wordpress.org/trunk@12297 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-30 20:58:12 +00:00
Ryan Boren 68985dce07 escape hrefs. Props Denis-de-Bernardy. fixes #10056
git-svn-id: https://develop.svn.wordpress.org/trunk@12295 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-30 16:55:50 +00:00
Andrew Ozz ed11892e7f Flash through red when sending an item to the trash, flash through green when undoing it, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12289 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-28 02:56:15 +00:00
Andrew Ozz 1d918ec7f7 Fix typo, props nacin, fixes #8557
git-svn-id: https://develop.svn.wordpress.org/trunk@12283 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 08:13:31 +00:00
Ryan Boren 4fd7b2fd8b Fix warnings
git-svn-id: https://develop.svn.wordpress.org/trunk@12246 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 19:46:10 +00:00
Ryan Boren 9c74c25f37 Remove reference to non-existent field. Props scribu. fixes #11098
git-svn-id: https://develop.svn.wordpress.org/trunk@12242 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 15:26:14 +00:00
Andrew Ozz 6f4ae7b89a Submit the "Save all changes" form by pressing Enter, props abackstrom, fixes #8557
git-svn-id: https://develop.svn.wordpress.org/trunk@12240 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 06:07:54 +00:00
Ryan Boren 42a3082c21 Add context to strings. Props nbachiyski. fixes #10738
git-svn-id: https://develop.svn.wordpress.org/trunk@12231 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 22:49:16 +00:00
Andrew Ozz 51f2c4d17d Add labels to image info in the media library, fixes #8886
git-svn-id: https://develop.svn.wordpress.org/trunk@12195 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 00:11:49 +00:00
Andrew Ozz e085e3485e Don't show trashed attachments in gallery tab count, props aldenta, fixes #11147
git-svn-id: https://develop.svn.wordpress.org/trunk@12190 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-16 07:54:02 +00:00
Andrew Ozz 3e1d80eb42 Fix style of text fields in IE6 in the uploader, better regex for Link URL presets buttons
git-svn-id: https://develop.svn.wordpress.org/trunk@12189 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-16 07:16:34 +00:00
Andrew Ozz ac9c33e0e9 Fix improper selection of radio buttons, improve JS for storing image settings, fixes #11021
git-svn-id: https://develop.svn.wordpress.org/trunk@12188 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-16 01:37:30 +00:00
Andrew Ozz 0093a3a989 Remove all instances of "Trash" from the UI when Trash is disabled, replace trash actions with "Delete permanently", props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12162 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-10 10:38:19 +00:00
Andrew Ozz e15e8b710d Don't pre-fill empty image alt when inserting into a post.
git-svn-id: https://develop.svn.wordpress.org/trunk@12161 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-10 00:09:40 +00:00
Ryan Boren 53321a0093 Call get_post_image_id() only if current_theme_supports( 'post-thumbnails' ).
git-svn-id: https://develop.svn.wordpress.org/trunk@12137 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-02 18:00:41 +00:00
Andrew Ozz 54c1db8dd0 Trash undo for the uploader, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@12130 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-30 07:09:55 +00:00
Mark Jaquith a556c8ce89 Consolidate post_mime_type code. props scribu. fixes #10992
git-svn-id: https://develop.svn.wordpress.org/trunk@12110 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-26 17:56:28 +00:00
Andrew Ozz 104abc4a7b When inserting the embed shortcode in TinyMCE replace it with a placeholder image, update the 'wordpress', 'wpeditimage' and 'wpgallery' TinyMCE plugins, fix the audio and video "From URL" tabs in the uploader popup to accept only URLs for embedding, see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12098 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-24 11:43:42 +00:00
Mark Jaquith de9c049065 Save some clicks and optimize for the Upload, Set as thumbnail flow. props scribu. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12081 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-21 07:27:33 +00:00
Andrew Ozz da41fd8836 Merge set-post-thumbnail-handler.js with post.js, move Post Thumbnail meta-box to /includes/meta-boxes.php, see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12060 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-19 20:23:35 +00:00
Mark Jaquith d3f1d779f3 Only show Use for thumbnail link for image attachments. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12059 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-19 16:36:21 +00:00
Andrew Ozz a68beea184 Separate fields for image alt and image caption in the uploader.
git-svn-id: https://develop.svn.wordpress.org/trunk@12055 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-19 05:09:41 +00:00
Andrew Ozz fa3370c044 Properly escape filename when sending to editor, props hakre sivel, fixes #10252
git-svn-id: https://develop.svn.wordpress.org/trunk@12051 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-18 06:14:16 +00:00
Mark Jaquith 0818d29d6e Post thumbnail removal functionality (only allowed for replacement before). props scribu. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12036 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 12:57:16 +00:00
Mark Jaquith a3bf844ed3 Constrain admin thumbnail display to width of meta box while in sidebar. Add filters.
git-svn-id: https://develop.svn.wordpress.org/trunk@12018 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-10 07:41:42 +00:00
Mark Jaquith ab98fc356b First pass on canonical post thumbanils. Admin-side GUI only. Theme functions to follow. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12007 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-07 22:18:09 +00:00
Ryan Boren 3f0243f75e Pass args to mysql2date() in the correct order. Props filosofo, fabifott. fixes #10866
git-svn-id: https://develop.svn.wordpress.org/trunk@11989 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-01 17:50:28 +00:00
Andrew Ozz 5e878a916d Image Editor improvements, see #10528
git-svn-id: https://develop.svn.wordpress.org/trunk@11965 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 01:54:07 +00:00
Ryan Boren 5fa5b6d05b Press This fixes. Props noel. fixes #10784
git-svn-id: https://develop.svn.wordpress.org/trunk@11944 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-17 20:36:59 +00:00
Andrew Ozz 4f22e99cf5 Image editing (first run). Includes code by stephanreiter, see #10528
git-svn-id: https://develop.svn.wordpress.org/trunk@11911 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-10 22:07:33 +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
Peter Westwood 6b5f25507e Always filter the url in the media upload form. Fixes #10707 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@11896 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-01 20:44:17 +00:00
Andrew Ozz 8d2e2d9bc7 Add global JS vars and actions to the media uploader iframe
git-svn-id: https://develop.svn.wordpress.org/trunk@11868 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-24 00:09:39 +00:00
Andrew Ozz 782977afbf "Trash" updates, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11841 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-19 08:35:24 +00:00
Andrew Ozz d9f8c67f2f Trash status updates for posts, pages, comments and attachments, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11749 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-30 13:39:34 +00:00
Peter Westwood 195411b214 Fix typo in type_url_from_video() link text description. Fixes #10071 props Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11704 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-09 21:21:57 +00:00
Ryan Boren ce546f6edd Don't lose upload error messages. Props filosofo. fixes #10238 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11638 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-25 06:09:22 +00:00
Peter Westwood f61cd95c52 Remove the cruft. Fixes #10227 for trunk props sirzooro.
git-svn-id: https://develop.svn.wordpress.org/trunk@11619 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-20 18:50:31 +00:00
Andrew Ozz bc96c76ad6 Fix the flash uploader button font, props demetris, fixes #10113 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11559 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-13 09:37:19 +00:00
Peter Westwood 6e481f5d1e Ensure the errors array is always defined so as to always have something to return
git-svn-id: https://develop.svn.wordpress.org/trunk@11492 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-30 09:55:32 +00:00
Andrew Ozz 08dd0b932e Trim white space
git-svn-id: https://develop.svn.wordpress.org/trunk@11463 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-26 22:42:23 +00:00
Andrew Ozz 2373c1c733 Fix the inserting of caption shortcode when the upload path contains "align"
git-svn-id: https://develop.svn.wordpress.org/trunk@11462 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-26 22:33:02 +00:00
Ryan Boren e12c642c54 Trim tailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Mark Jaquith ba1c3bdd5b Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
git-svn-id: https://develop.svn.wordpress.org/trunk@11383 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 16:00:33 +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
Andrew Ozz 6adf190b8f Update SWFUpload to 2.2.0.1, see #9413
git-svn-id: https://develop.svn.wordpress.org/trunk@11372 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-17 12:29:58 +00:00
Mark Jaquith a2bf4db52b Use a semantic class name for text targeted to screen readers. props filosofo. fixes #9791
git-svn-id: https://develop.svn.wordpress.org/trunk@11312 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 22:40:56 +00:00
Ryan Boren 90ef467838 Revert line that breaks browser uploader
git-svn-id: https://develop.svn.wordpress.org/trunk@11244 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-08 20:45:04 +00:00
Andrew Ozz 76e525c50f Cast to string in array_key_exists() in media.php, props lusuonline, fixes #9749
git-svn-id: https://develop.svn.wordpress.org/trunk@11233 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-07 17:28:51 +00:00
Mark Jaquith c638e8d8de _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Andrew Ozz 8788a2520e Add wpspin_light and wpspin_dark spinners
git-svn-id: https://develop.svn.wordpress.org/trunk@11203 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 18:57:43 +00:00
Ryan Boren 63e38ce6a2 Don't over sanitize uploaded file titles. Props hakre. fixes #9081
git-svn-id: https://develop.svn.wordpress.org/trunk@11198 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 05:57:56 +00:00
Andrew Ozz 3bf18aa189 Banishing ASCII quotes and apostrophes, props demetris, fixes #9655
git-svn-id: https://develop.svn.wordpress.org/trunk@11190 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 04:28:05 +00:00
Ryan Boren 4a047f4240 Use invisible class for hiding labels and legends.
git-svn-id: https://develop.svn.wordpress.org/trunk@11180 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 21:28:58 +00:00
Ryan Boren cfd320446f Attr escaping
git-svn-id: https://develop.svn.wordpress.org/trunk@11173 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-04 17:54:08 +00:00
Ryan Boren 1583662c19 Add labels to text inputs. see #9445
git-svn-id: https://develop.svn.wordpress.org/trunk@11152 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-01 21:52:34 +00:00
Andrew Ozz aac1622495 Add wpspin.gif and replace all spinners
git-svn-id: https://develop.svn.wordpress.org/trunk@11150 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-01 19:43:22 +00:00
Ryan Boren fe7c34b6fd s/attribute_escape/attr/. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11109 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 05:58:45 +00:00
Andrew Ozz 6358bca7d2 Notice fixes, props sivel, see #9393
git-svn-id: https://develop.svn.wordpress.org/trunk@11052 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-22 12:24:45 +00:00
Andrew Ozz ad16220db1 Properly set the default tab in the uploader, props fuggi, fixes #7219
git-svn-id: https://develop.svn.wordpress.org/trunk@11051 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-22 11:10:15 +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 9a62b02dfe CSS cleanup and fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@10943 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-16 04:41:05 +00:00
Andrew Ozz ca129da990 Fix flash upload button, right sidebar on write pages in IE6
git-svn-id: https://develop.svn.wordpress.org/trunk@10865 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-04 10:21:43 +00:00
Andrew Ozz cee4e8641c Make uploader selection "sticky"
git-svn-id: https://develop.svn.wordpress.org/trunk@10844 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-27 08:36:51 +00:00
Andrew Ozz e57d0ac693 Add toggle all button to the Gallery tab in the uploader
git-svn-id: https://develop.svn.wordpress.org/trunk@10837 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-25 17:20:03 +00:00
Ryan Boren 8d00b5d37d Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Andrew Ozz 09961ff3ac Add sort order for the gallery in the uploader
git-svn-id: https://develop.svn.wordpress.org/trunk@10793 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-16 13:05:09 +00:00
Ryan Boren 5d8651d6f3 gettext comments. Props nbachiyski. see #9112
git-svn-id: https://develop.svn.wordpress.org/trunk@10774 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 03:53:39 +00:00
Andrew Ozz 0e4478e6c7 Fix values for gallery sort order
git-svn-id: https://develop.svn.wordpress.org/trunk@10748 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-09 07:02:38 +00:00
Ryan Boren d26e6fa963 Filter text to be sent to editor when used From URL. Props nbachiyski. fixes #6588
git-svn-id: https://develop.svn.wordpress.org/trunk@10710 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 22:54:10 +00:00
Ryan Boren 9cedbb7f24 Add filter on type_form_. Props nbachiyski. fixes #6585
git-svn-id: https://develop.svn.wordpress.org/trunk@10709 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 22:48:02 +00:00
Ryan Boren e6f9b2ae63 Avoid double encoding of attachment descriptions. Props dwc. fixes #9168 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10700 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 19:37:33 +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
Andrew Ozz bf278c36bd Prevent the user from leaving the write/edit page when an upload button is clicked before the page has finished loading
git-svn-id: https://develop.svn.wordpress.org/trunk@10640 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-23 23:28:34 +00:00
Ryan Boren 854a8d6341 Use _n(). Props nbachiyski. fixes #9111
git-svn-id: https://develop.svn.wordpress.org/trunk@10606 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-20 19:35:16 +00:00
Andrew Ozz 0a3b4246b7 When inserting orphaned attachment in a post, set post_parent only for this attachment, see #8721
git-svn-id: https://develop.svn.wordpress.org/trunk@10390 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-21 03:45:57 +00:00
Andrew Ozz 80fb5c79ce Cleanup js files and prepare for concatenating, move most inline js to files
git-svn-id: https://develop.svn.wordpress.org/trunk@10348 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-12 13:43:17 +00:00
Ryan Boren baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Andrew Ozz d651a0c155 Do not show Gallery tab in the uploader if no files have been uploaded.
git-svn-id: https://develop.svn.wordpress.org/trunk@10124 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-08 07:38:05 +00:00
Ryan Boren f21e148b38 gettext image size names
git-svn-id: https://develop.svn.wordpress.org/trunk@10118 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-07 20:35:50 +00:00
Andrew Ozz ca3acca0fb Attach orphan attachments when inserting into a post, fixes #8490
git-svn-id: https://develop.svn.wordpress.org/trunk@10062 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-05 06:21:42 +00:00
Andrew Ozz b29461908c Change the uploader buttons label to Upload/Insert
git-svn-id: https://develop.svn.wordpress.org/trunk@9981 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-30 13:39:21 +00:00