Commit Graph

395 Commits

Author SHA1 Message Date
azaozz 6499a905a3 Image captions: revert label change back to "Caption", fixes #18311
git-svn-id: http://core.svn.wordpress.org/trunk@20826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-18 02:50:05 +00:00
ryan fa13d2cf18 Update upload-html-bypass string to reflect that the uploader is no longer new. Props Ipstenu. fixes #20627
git-svn-id: http://core.svn.wordpress.org/trunk@20735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-07 16:48:35 +00:00
azaozz e8beafd57b Change the image caption shortcode format to [caption ...]<a><img /></a> caption text + html[/caption]. That way HTML tags in captions are better supported and the shortcode wouldn't break when using the wrong quotes. Props sushkov, nacin, fixes #18311
git-svn-id: http://core.svn.wordpress.org/trunk@20679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-02 01:14:52 +00:00
azaozz f58a801e62 Fix typo in the error message shown when a device doesn't support uploading, props SergeyBiryukov, fixes #20410
git-svn-id: http://svn.automattic.com/wordpress/trunk@20544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-20 01:10:39 +00:00
azaozz 817b932ed1 Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410
git-svn-id: http://svn.automattic.com/wordpress/trunk@20449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-12 00:16:37 +00:00
azaozz 1d12cd07b0 Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014
git-svn-id: http://svn.automattic.com/wordpress/trunk@20417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-10 01:19:30 +00:00
nacin d5cc12048e Use _callback, rather than an unhelpful 2, for a preg_replace callback function name. Add proper phpdoc. see #20369.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-06 20:05:31 +00:00
duck_ 1480a33d25 Simplify caption cleanup callbacks; if the function was called we know that the 0 index is set. See #20369.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-06 19:52:34 +00:00
azaozz f06fb15878 Pluck a tab (whitespace), props SergeyBiryukov, see #20369
git-svn-id: http://svn.automattic.com/wordpress/trunk@20377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-06 18:26:14 +00:00
azaozz 2441cb0cae Fix second callback when filtering caption text for shortcode, props SergeyBiryukov, fixes #20369
git-svn-id: http://svn.automattic.com/wordpress/trunk@20376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-06 17:38:49 +00:00
ryan d3134e2688 Allow selecting custom header and background images from the media library. Props aaroncampbell, sabreuse, greuben. fixes #19840
git-svn-id: http://svn.automattic.com/wordpress/trunk@20358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-05 00:20:28 +00:00
nacin a95f3d243a Revert label change in [20282]. see #18311.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 20:32:29 +00:00
markjaquith dc82254e2f Wrap attachment delete link in <p> for semantics and alignment. props aaroncampbell, lancewillett. fixes #19785
git-svn-id: http://svn.automattic.com/wordpress/trunk@20309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-28 20:28:34 +00:00
nacin 9cca792f6c Revert UI for caption fields to pre-[19982], keeping textarea for the caption field. No monospaced font, revert label. see #18311.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-24 13:37:42 +00:00
azaozz 3015057d58 Don't use class="code" for the captions textareas as it resets RTL, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@20247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-21 22:48:36 +00:00
azaozz ca3ab6c5c2 Add support for line breaks to the caption textareas, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@20174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-14 21:53:11 +00:00
azaozz f3b63e4537 Set proper HTML5 input types in the admin, props georgestephanis, fixes #17863
git-svn-id: http://svn.automattic.com/wordpress/trunk@20168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-10 01:23:48 +00:00
azaozz 9f4408c741 Based on the current UX feedback, remove the "Insert Link" UI from under the caption fields, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@20114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-05 07:31:31 +00:00
ryan e4ce1046b0 Pass post id to get_upload_iframe_src() instead of relying on a global. Props tott. fixes #20003
git-svn-id: http://svn.automattic.com/wordpress/trunk@19999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-27 19:23:03 +00:00
azaozz 73c87020c7 HTML in image captions, first run, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@19982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 01:58:18 +00:00
nacin bfeb575df9 Use relative paths for admin-ajax.php to avoid cross-domain issues with IDN domains in IE and Opera. props SergeyBiryukov, fixes #18952.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-08 16:12:11 +00:00
ryan c924060858 Remove extraneuos newlines
git-svn-id: http://svn.automattic.com/wordpress/trunk@19623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-21 18:42:11 +00:00
ryan 6bba5a265b Pinking shears
git-svn-id: http://svn.automattic.com/wordpress/trunk@19528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 04:51:35 +00:00
azaozz 5ec6bd4833 Sanitize options for resizing in the uploader, props mhauan, nacin, fixes #19399
git-svn-id: http://svn.automattic.com/wordpress/trunk@19494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-30 21:05:22 +00:00
azaozz 3fcae6d702 Output the "After a file has been uploaded..." message by using the post-upload-ui action, fixes #18764
git-svn-id: http://svn.automattic.com/wordpress/trunk@19384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-21 20:46:15 +00:00
azaozz 6c38abc51d Show Insert into post button in the media library when the current post supports editor (not the attachment parent), props SergeyBiryukov, fixes #18912
git-svn-id: http://svn.automattic.com/wordpress/trunk@19350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-19 04:28:39 +00:00
azaozz 7f9b0fcc1e Don't show the uploader on iPads (it's pointless), fixes #19004
git-svn-id: http://svn.automattic.com/wordpress/trunk@19335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-18 08:43:16 +00:00
azaozz af14c4fdb0 Change text prompt in HTML uploader, props jane, fixes #19276
git-svn-id: http://svn.automattic.com/wordpress/trunk@19330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-18 01:25:27 +00:00
nacin f0eebf3376 Remove extra space. props danielbachhuber.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-17 04:41:51 +00:00
azaozz 8f4fd39550 Add big-file-upload-warning for IE and Opera, left-align the percentage in the progress bar, see #19228
git-svn-id: http://svn.automattic.com/wordpress/trunk@19286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-14 23:21:16 +00:00
azaozz e09e8f465c Filter the link href when inserting external image in the editor, props DrewAPicture, fixes #18445
git-svn-id: http://svn.automattic.com/wordpress/trunk@19275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-14 19:35:32 +00:00
azaozz a491abfbb2 Media Lib: fix displaying file headers in IE7, delegate the Show/Hide JS, prevent displaying upload error for the same file twice, see #19228
git-svn-id: http://svn.automattic.com/wordpress/trunk@19268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-13 18:37:30 +00:00
azaozz 7123026a3b Add error message when a big file fails to upload, expose the XHR request in plipload and abort() it, see #19228
git-svn-id: http://svn.automattic.com/wordpress/trunk@19266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-13 02:01:13 +00:00
azaozz 9961962861 Uploader: fix file-size-exceeded error handling, see #18206
git-svn-id: http://svn.automattic.com/wordpress/trunk@19262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-12 00:52:26 +00:00
nacin 64ab05ab09 Normal sentence case. see #19228.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-11 20:32:20 +00:00
azaozz a37b440bac Bring back the multi-file/html uploader switching, see #19228
git-svn-id: http://svn.automattic.com/wordpress/trunk@19257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-11 19:40:23 +00:00
ryan 61fca35691 Don't show 'Use as featured image' in the image insert dialog if the post type does not support thumbnails. Props SergeyBiryukov. fixes #18669
git-svn-id: http://svn.automattic.com/wordpress/trunk@19256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-11 19:38:34 +00:00
azaozz 6074eda69d Uploader: fix progress bar JS and update the style (light blue bars), see #18206
git-svn-id: http://svn.automattic.com/wordpress/trunk@19247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-10 20:33:26 +00:00
nacin 087eb4e30a Rename attachment link button from 'Post URL' to 'Attachment Post URL.' props jeremyclarke, fixes #13544.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-09 19:23:31 +00:00
azaozz eca4184725 Revert media.php too, see #19174
git-svn-id: http://svn.automattic.com/wordpress/trunk@19226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-08 22:42:20 +00:00
azaozz 623220187a Remove the Resize files checkbox for now (revisit in 3.4), fixes #19174
git-svn-id: http://svn.automattic.com/wordpress/trunk@19223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-08 22:23:40 +00:00
nacin 534578f339 Space out two strings. props ocean90, fixes #19167.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-05 20:21:12 +00:00
azaozz f7fa2684e8 Uploader: split "Drop files here -or-..." on two lines, see #18206
git-svn-id: http://svn.automattic.com/wordpress/trunk@19177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-05 18:09:38 +00:00
azaozz 84a23bfd81 Remove the Cancel Upload button, fixes #19050
git-svn-id: http://svn.automattic.com/wordpress/trunk@19127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-03 01:47:12 +00:00
azaozz b63ffa3f38 Disable the Cancel Upload button after the upload has finished or if it was interrupted, fixes #19050
git-svn-id: http://svn.automattic.com/wordpress/trunk@19099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-31 21:38:28 +00:00
ryan 62afab8db3 Pinking shears
git-svn-id: http://svn.automattic.com/wordpress/trunk@19054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-24 19:13:23 +00:00
nacin 7ed04cc2f3 Deprecate media_upload_(image|audio|video|file)(), type_url_form_(image|audio|video|file)(). These now wrap wp_media_upload_handler() and wp_media_insert_url_form(). see #17578.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-23 17:58:06 +00:00
nacin 1387dfd1f2 Fix media/audio/file URL insertion. Strip slashes off title text. Leave red X to images only. fixes #14996. fixes #17578.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-18 19:32:40 +00:00
azaozz e849d3b270 Use IE conditionals when adding the ie8 class, introduce _wp_admin_html_begin(), props scribu, fixes #18966
git-svn-id: http://svn.automattic.com/wordpress/trunk@18982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-17 20:57:32 +00:00
duck_ 6926503ebf Fix notices in wp_iframe() and iframe_header() by referencing $wp_htmltag_class as a global. See r18975 and #18314.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-15 10:43:55 +00:00