Commit Graph

296 Commits

Author SHA1 Message Date
Ryan Boren
46dd14c4e1 Introduce wp_oembed_remove_provider(). Props r-a-y. fixes #16327
git-svn-id: https://develop.svn.wordpress.org/trunk@21351 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-26 20:18:27 +00:00
Daryl Koopersmith
299642f86b Theme Customizer: Fix scrolling on iOS and Kindle Fire. props azaozz, helenyhou. fixes #20805.
Also fixes uploader UIs on iOS and Kindle Fire by improving wp.Uploader.
Adds mobile viewport specifications.
Moves scrollbar back to fixed positioning.


git-svn-id: https://develop.svn.wordpress.org/trunk@21014 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-06 21:45:17 +00:00
Andrew Nacin
26ff22c7a2 In image_resize(), do not force the destination filename to *.jpg when we are dealing with a *.jpeg.
props SergeyBiryukov.
fixes #16458.



git-svn-id: https://develop.svn.wordpress.org/trunk@20701 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:58:57 +00:00
Andrew Nacin
f2c495e011 Add filter to image_resize_dimensions() so plugins can perform this calculation on their own. props ebababi. fixes #15989.
git-svn-id: https://develop.svn.wordpress.org/trunk@20694 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:15:44 +00:00
Andrew Ozz
95808e088f 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: https://develop.svn.wordpress.org/trunk@20679 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 01:14:52 +00:00
Jon Cave
7a276ec3fb wp_oembed_get() returns false on failure. Props SergeyBiryukov. Fixes #20355.
git-svn-id: https://develop.svn.wordpress.org/trunk@20562 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-22 11:19:56 +00:00
Andrew Nacin
6caf12d0bc Remove enqueue of wp_plupload_default_settings() from admin_enqueue_scripts(). For now, it needs to be enqueued selectively when needed. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20230 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 03:21:07 +00:00
Daryl Koopersmith
7d868db67b Theme Customizer: Bind wp_plupload_default_settings() to the customize_controls_enqueue_scripts hook. Fixes JS errors. see #19910, [20189].
git-svn-id: https://develop.svn.wordpress.org/trunk@20197 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 19:46:15 +00:00
Andrew Nacin
c5ebfc0584 Move wp_plupload_default_settings() to the admin_enqueue_scripts hook to prevent fatal errors when admin_init is run outside of normal admin-header execution, like admin-ajax. see #19910. fixes #20240.
git-svn-id: https://develop.svn.wordpress.org/trunk@20189 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 12:53:39 +00:00
Andrew Nacin
763e26aa32 URL to admin-ajax.php should be relative. see #19910. see #18952.
git-svn-id: https://develop.svn.wordpress.org/trunk@20188 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 12:52:23 +00:00
Andrew Nacin
e8f20b741c Ensure no nonce or multipart_params get passed to the plupload_default_settings filter. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20187 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 12:50:18 +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
Andrew Nacin
0c751dd7a3 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: https://develop.svn.wordpress.org/trunk@19871 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:12:11 +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
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
Ryan Boren
4e081d3171 phpdoc typo and readability fixes. Props SergeyBiryukov. fixes #18560
git-svn-id: https://develop.svn.wordpress.org/trunk@18827 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 22:57:43 +00:00
Jon Cave
82c0f09c09 Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-05 19:08:15 +00:00
Ryan Boren
aee898a1e7 Remove unused global. Props ocean90. fixes #18484
git-svn-id: https://develop.svn.wordpress.org/trunk@18605 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 19:35:22 +00:00
Nikolay Bachiyski
13181c96c8 Explicitly globalize some variables, so that unit tests can run WordPress inside a function. Fixes #17749
git-svn-id: https://develop.svn.wordpress.org/trunk@18532 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-11 04:45:14 +00:00
Andrew Nacin
ca451ee1a9 Remove default-embeds.php. fixes #17112.
git-svn-id: https://develop.svn.wordpress.org/trunk@17751 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 17:03:23 +00:00
Peter Westwood
8f1955ddf5 Introduce WP_MAX_MEMORY_LIMIT constant for the high memory limit we set when image processing and unzipping.
Ensure it is always filterable by plugins as well as configurable in wp-config
Fixes #13847 props hakre


git-svn-id: https://develop.svn.wordpress.org/trunk@17749 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 16:25:36 +00:00
Ryan Boren
e70b2d4412 Remove PHP4 constructor. Props Jayjdk. see #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17631 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-11 18:57:34 +00:00
Andrew Nacin
20b7808094 Document that the size parameter in image_downsize() can also be an array. props scribu, fixes #16263.
git-svn-id: https://develop.svn.wordpress.org/trunk@17542 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-23 18:46:38 +00:00
Andrew Nacin
41d4279b66 use_default_gallery_style boolean filter and new gallery-columns-* class. see #15103.
git-svn-id: https://develop.svn.wordpress.org/trunk@16865 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-10 19:15:37 +00:00
Andrew Nacin
63357b507a wp-caption-text class for the gallery shortcode caption. props chipbennett, fixes #14411.
git-svn-id: https://develop.svn.wordpress.org/trunk@16864 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-10 19:05:50 +00:00
Mark Jaquith
4ff9b0520b Pass post ID to embed_oembed_html filter to avoid global variable incantations. props filosofo. fixes #15491
git-svn-id: https://develop.svn.wordpress.org/trunk@16740 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-06 03:38:27 +00:00
Andrew Nacin
250e2876de Unescape ampersands before making an oEmbed request. props Viper007Bond, fixes #14514, see #11311.
git-svn-id: https://develop.svn.wordpress.org/trunk@16728 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-05 02:23:17 +00:00
Andrew Nacin
e8dd42ce2a Revert [15688], [15689], [15691]. Try again in 3.2. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@16535 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-22 17:17:26 +00:00
scribu
3d1e3fc25f Add colon after Upload/Insert. Fixes #14810
git-svn-id: https://develop.svn.wordpress.org/trunk@16358 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 22:52:51 +00:00
scribu
58aedde597 Introduce wp_basename() and use it for media handling. See #11887
git-svn-id: https://develop.svn.wordpress.org/trunk@16154 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-02 17:19:55 +00:00
Andrew Nacin
8b0d9c5856 More pedantry.
git-svn-id: https://develop.svn.wordpress.org/trunk@15990 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:33:29 +00:00
Andrew Nacin
6fd30d36ea Docs and breathing room for get_media_buttons() and friends. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@15689 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-03 03:08:39 +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
Mark Jaquith
59f6264c64 These are not verbs. http://notaverb.com/badbad_verbs
git-svn-id: https://develop.svn.wordpress.org/trunk@15473 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-27 18:02:45 +00:00
Mark Jaquith
05e2e9b2c4 Initialize instead of using isset(). props nacin. see #13556
git-svn-id: https://develop.svn.wordpress.org/trunk@15003 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 20:41:36 +00:00
Mark Jaquith
3c7a2a3cb8 Tweaks to wp_constrain_dimensions() for better fits and consistency. fixes #13556
git-svn-id: https://develop.svn.wordpress.org/trunk@15002 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 20:37:42 +00:00
Andrew Nacin
ae9acca74d Add some educational tips. Suggest using add_image_size() in the inline docs for image_get_intermediate_size() and wp_get_attachment_image(). props jorbin. see #13556.
git-svn-id: https://develop.svn.wordpress.org/trunk@14981 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 05:03:46 +00:00
Mark Jaquith
b499437681 Use the correct array members of image_resize_dimensions() result when calculating best match for dynamic HTML image resize. fixes #13556
git-svn-id: https://develop.svn.wordpress.org/trunk@14979 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 04:40:14 +00:00
Andrew Nacin
d5e5ccdd72 Introduce is_rtl(). Use it in core. It only becomes defined when locale is loaded, so it's impossible to use it too early. Deprecate the get_bloginfo('text_direction') call. fixes #13206.
git-svn-id: https://develop.svn.wordpress.org/trunk@14360 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 05:49:19 +00:00
Dion Hulse
a897bc0275 Fix invalid paths in requires. See r14139. See #12594
git-svn-id: https://develop.svn.wordpress.org/trunk@14151 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 09:51:19 +00:00
Dion Hulse
044eb3afba Use Alt Text for Image alt caption (Falling back to Caption, and finally title) in wp_get_attachment_image() and subsequently, WordPress Galleries. Props kallewangstedt for initial patch. Fixes #11846
git-svn-id: https://develop.svn.wordpress.org/trunk@14145 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 08:52:18 +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
Andrew Nacin
a45a03c4c3 Consistently return WP_Error on failure in image_resize. props filosofo, fixes #12268
git-svn-id: https://develop.svn.wordpress.org/trunk@14105 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 13:53:22 +00:00
Andrew Nacin
7ad8304223 Register a dummy [media] shortcode for strip_shortcodes et al. props belg4mit, Viper007Bond. fixes #12505
git-svn-id: https://develop.svn.wordpress.org/trunk@14035 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-08 02:16:21 +00:00
Dion Hulse
c552d48674 Fix image_resize() dependencies by moving wp_load_image() from admin includes to wp-includes. Fixes #7279
git-svn-id: https://develop.svn.wordpress.org/trunk@13860 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 03:39:00 +00:00
Dion Hulse
dfee0416ec Check if function exists before using it. imageistruecolor() requires PHP 4.3.2, WordPress requires 4.3.0 at this stage. Fixes #12297
git-svn-id: https://develop.svn.wordpress.org/trunk@13857 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 02:57:09 +00:00
Andrew Nacin
e34ca97ae0 Change @since 3.0 to @since 3.0.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:13:36 +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
c9dfb91763 Spelling and grammar fun. Fixes #11875 props cnorris23
git-svn-id: https://develop.svn.wordpress.org/trunk@13382 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 20:13:23 +00:00
Ryan Boren
66b081abd2 Remove author tags. fixes #12366
git-svn-id: https://develop.svn.wordpress.org/trunk@13377 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 19:07:21 +00:00
Mark Jaquith
af0d39b38b Skip intermediate sizes of a different aspect ratio than the original image when considering which image to use in image_get_intermediate_size(). fixes #12218
git-svn-id: https://develop.svn.wordpress.org/trunk@13145 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 08:21:07 +00:00
Mark Jaquith
daea21aade Revert r13103 and merely restrict \$content_width obeying to is_admin(). fixes #12146
git-svn-id: https://develop.svn.wordpress.org/trunk@13140 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 06:34:47 +00:00
Mark Jaquith
561cca07d5 Do not limit thumbnails by the content_width. props Viper007Bond. fixes #12146
git-svn-id: https://develop.svn.wordpress.org/trunk@13103 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 09:40:04 +00:00
Ryan Boren
9d44dc664c Respect maximum embed height. Props Viper007Bond. fixes #11980
git-svn-id: https://develop.svn.wordpress.org/trunk@12875 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-27 14:38:48 +00:00
Ryan Boren
c01fb90ff1 Deprecate wp_shrink_dimension(), add wp-admin/includes/deprecated.php. Props filosofo. fixes #11967
git-svn-id: https://develop.svn.wordpress.org/trunk@12823 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-25 18:50:01 +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
Peter Westwood
b5a43efa73 Introduce a single function for getting all the intermediate image sizes to be used both when adding attachements and deleting. Fixes #10263 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12659 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:51:12 +00:00
Ryan Boren
7ccd64fbe7 Retunr WP_Error from wp_crop_image() and image_resize(). Props mdwaffe. fixes #9922
git-svn-id: https://develop.svn.wordpress.org/trunk@12524 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 18:39:31 +00:00
Ryan Boren
60bbd214b3 Remove oEmbed discovery option. Add hook so plugins can enable it. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12411 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 21:16:00 +00:00
Andrew Ozz
35ded05d09 Typecast to int the return of image_resize_dimensions(), fixes #7748
git-svn-id: https://develop.svn.wordpress.org/trunk@12381 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-12 08:06:24 +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
Mark Jaquith
54410e03f6 Introducing set_post_image_size(w, h, crop) so themes can register their special size/crop for canonical post images. WP will create this size/crop upon upload, so your canonical post images fit your space exactly!
git-svn-id: https://develop.svn.wordpress.org/trunk@12342 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 21:08:19 +00:00
Peter Westwood
009fe3e343 Make the gallery shortcode float the right way for RTL languages. Fixes #7134 props ikonst.
git-svn-id: https://develop.svn.wordpress.org/trunk@12338 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-08 12:45:32 +00:00
Ryan Boren
5831826b77 Cleanup oembed caching. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12326 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 17:40:36 +00:00
Andrew Ozz
53872d2218 Avoid a rare case of black line in cropped thumbnails, props miqrogroove, fixes #7748
git-svn-id: https://develop.svn.wordpress.org/trunk@12280 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-26 06:58:21 +00:00
Ryan Boren
87a8ae176a Add a bunch of new filters. Use one of them to remove new lines from Scribd embeds. Invalid oEmbed post meta cache without using JS. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12153 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-06 14:22:23 +00:00
Ryan Boren
b552dbdd9b Switch oEmbed option to control discovery. Tweak whitelist and settings page. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12136 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-02 14:41:35 +00:00
Ryan Boren
8c4c0f29fe Allow non-admins to use Vimeo and allow regex in oEmbed URL formats. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12096 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-23 19:33:24 +00:00
Ryan Boren
a4789b3cc1 Associate subdirector of whitespace trims trailing whites with pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@12042 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 20:26:21 +00:00
Mark Jaquith
066c4520df Add wp-post-image CSS class to post images. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12039 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 14:27:04 +00:00
Mark Jaquith
45b4ea5807 Allow theme devs to change attrs (like CSS class) of thumbnail images. props scribu. see #10928
git-svn-id: https://develop.svn.wordpress.org/trunk@12035 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 12:31:48 +00:00
Ryan Boren
05458bb414 Use oEmbed for youtube. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12027 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 22:36:24 +00:00
Ryan Boren
e71f15a979 Embeds. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12023 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 17:04:22 +00:00
Ryan Boren
43c201d458 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +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
Andrew Ozz
30bae2a1a7 Revert rotating images based on EXIF Orientation. Better time for this would be immediately after an image is uploaded, perhaps in media_handle_upload(), see #7042
git-svn-id: https://develop.svn.wordpress.org/trunk@11899 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-04 02:36:34 +00:00
Ryan Boren
f4f70a6479 Prophylactic escapes
git-svn-id: https://develop.svn.wordpress.org/trunk@11838 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-18 16:05:07 +00:00
Andrew Ozz
8c31996e6a Check if EXIF extension is loaded, props dd32, fixes #10613
git-svn-id: https://develop.svn.wordpress.org/trunk@11825 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-16 04:50:10 +00:00
Andrew Ozz
dd4f9603cb Sanitize $include and $exclude in the gallery shortcode
git-svn-id: https://develop.svn.wordpress.org/trunk@11776 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-05 05:56:00 +00:00
Andrew Ozz
6508558092 Add support for 'include' and 'exclude' to [gallery] (include="123,456" would show only these attachments regardless of the parent post, exclude="789,123" would exclude these attachments and show the rest).
git-svn-id: https://develop.svn.wordpress.org/trunk@11771 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-04 07:32:18 +00:00
Andrew Ozz
eb4b483e8b Use exif rotation data when creating sub-sizes of uploaded jpeg images, see #7042
git-svn-id: https://develop.svn.wordpress.org/trunk@11746 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-27 18:32:30 +00:00
Andrew Ozz
b4b59e27e5 Generate same as original color depth thumbnails for PNG images, props madhyde, fixes #9887
git-svn-id: https://develop.svn.wordpress.org/trunk@11737 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-22 03:02:44 +00:00
Ryan Boren
efeffe1d53 Initialize var. Props dd32. fixes #10050
git-svn-id: https://develop.svn.wordpress.org/trunk@11529 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-06 15:02:55 +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
Andrew Ozz
1de8d80346 Support more than one gallery on the same page, props jamescollins, fixes #7678
git-svn-id: https://develop.svn.wordpress.org/trunk@11339 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-15 08:52:04 +00:00
Andrew Ozz
29252dc3d1 Escape the captions in the gallery with wptexturize() instead of wp_specialchars(), props Denis-de-Bernardy, fixes #8763
git-svn-id: https://develop.svn.wordpress.org/trunk@11336 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-14 23:15:28 +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
6ca8e3b935 Escape caption in [gallery] output, props MattyRob, fixes #8763
git-svn-id: https://develop.svn.wordpress.org/trunk@11200 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 07:35:03 +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
0f0186dc3c Add alt text and filter to wp_get_attachment_image(), props Sam_a, fixes #8732
git-svn-id: https://develop.svn.wordpress.org/trunk@10744 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-08 05:42:17 +00:00
Peter Westwood
0560f26f76 Allow a plugin to change the jpeg image quality. Fixes #9245 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@10682 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-02 21:55:40 +00:00
Andrew Ozz
e29eda95c4 Allow shortcodes inside caption boxes, props Viper007Bond, fixes #9022
git-svn-id: https://develop.svn.wordpress.org/trunk@10498 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-04 17:07:26 +00:00
Andrew Ozz
75c6fc4c3a wp_get_attachment_link() variable upgrade, props noel, fixes #9036
git-svn-id: https://develop.svn.wordpress.org/trunk@10495 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-04 15:12:24 +00:00
Ryan Boren
bf2cfefdff Avoid division by zero
git-svn-id: https://develop.svn.wordpress.org/trunk@10227 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-19 07:04:18 +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
bcfde60872 Move Gallery Settings to the Gallery tab in the uploader, split the Upload tab in "From Computer" and "From URL" tabs
git-svn-id: https://develop.svn.wordpress.org/trunk@9894 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-26 02:27:37 +00:00
Andrew Ozz
4fa6ae8fa5 Gallery settings for TinyMCE
git-svn-id: https://develop.svn.wordpress.org/trunk@9847 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-23 06:37:15 +00:00
Ryan Boren
44b2293ae7 Use dir not url. Props DD32. fixes #8207
git-svn-id: https://develop.svn.wordpress.org/trunk@9688 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-14 18:32:10 +00:00
Ryan Boren
c92ac3b6d2 Init var. see #7692
git-svn-id: https://develop.svn.wordpress.org/trunk@9283 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-22 18:45:09 +00:00
Ryan Boren
61068c87d1 Remove unused var. see #7692
git-svn-id: https://develop.svn.wordpress.org/trunk@9282 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-22 18:39:50 +00:00
Ryan Boren
a5f43eaf65 icon_dir_uri filter instead of icon_dir. Props jmini. fixes #7947
git-svn-id: https://develop.svn.wordpress.org/trunk@9280 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-22 17:09:03 +00:00
Ryan Boren
696db5f758 phpdoc for media.php. Props jacobsantos. fixes #7658
git-svn-id: https://develop.svn.wordpress.org/trunk@8925 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-18 06:14:46 +00:00
Ryan Boren
243ce31e7b phpdoc for media.php. Props jacobsantos. see #7658
git-svn-id: https://develop.svn.wordpress.org/trunk@8792 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-01 05:45:41 +00:00
Ryan Boren
da4e0eca48 Separate Large and Full image sizes. Props tellyworth. fixes #7151
git-svn-id: https://develop.svn.wordpress.org/trunk@8612 602fd350-edb4-49c9-b593-d223f7449a82
2008-08-11 03:54:26 +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
Andrew Ozz
491b47b300 Removes the disabling of captions, but leaves couple of hooks so a plugin can do it easily. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8358 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-16 21:36:17 +00:00
Ryan Boren
afd113dcf2 Rename wp_caption shortcode to caption. Allow themes to disable captioning. Use dashes instead of underscores in class names. Props azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8313 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-11 15:59:14 +00:00
Ryan Boren
f0f5316a1d Use dash instead of underscore for CSS names. Props azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8289 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-08 23:37:56 +00:00
Ryan Boren
ecf41b5b88 Make sure attachment meta data is an array. Props nbachiyski. fixes #7252
git-svn-id: https://develop.svn.wordpress.org/trunk@8261 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-06 16:40:15 +00:00
Ryan Boren
cd8d510b27 Fix wp_get_attachment_thumb_url() tumbnail back compat. Props DD32. fixes #7242
git-svn-id: https://develop.svn.wordpress.org/trunk@8257 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-04 16:15:29 +00:00
Ryan Boren
45ac770299 Image captions from azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8239 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-02 18:41:11 +00:00
Ryan Boren
4d7ef70c39 New filter and phpdoc for get_image_tag(). Props jacobsantos. fixes #7065 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8029 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-31 19:12:55 +00:00
Ryan Boren
f213f87d59 First cut and better admin SSL support. see #7001
git-svn-id: https://develop.svn.wordpress.org/trunk@7998 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-27 17:46:01 +00:00
Ryan Boren
468ac2a54e get_posts fixes from DD32 and filosofo. see #6772
git-svn-id: https://develop.svn.wordpress.org/trunk@7892 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-05 15:46:32 +00:00
Ryan Boren
a9086170fb Don't reuse image_send_to_editor filter in get_image_tag(). Props AaronCampbell. fixes #6806 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7838 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 17:58:38 +00:00
Mark Jaquith
24a68a43b4 Revert [7700] from trunk in preparation for a different #6444 solution
git-svn-id: https://develop.svn.wordpress.org/trunk@7814 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-25 00:43:44 +00:00
Ryan Boren
c3502e11bf image_make_intermediate_size filter from tellyworth. fixes #6580 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7703 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 21:59:23 +00:00
Mark Jaquith
d9efa4fa8f Allow shortcodes to run before or after wpautop()/texturize() formatting. Default to before for WP 2.5 compat. Props AaronCampbell
git-svn-id: https://develop.svn.wordpress.org/trunk@7699 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-16 21:07:04 +00:00
Ryan Boren
55a14f52a9 Pass size to image_send_to_editor filter. fies #6691 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7671 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-14 19:47:07 +00:00
Mark Jaquith
ba4dab3cd6 Fix gallery shortcode orderby param for all SQL setups. Sanitize orderby. fixes #6476 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7592 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-03 03:05:49 +00:00
Mark Jaquith
288211a88b Gallery XHTML validation fixes. props shelleyp. fixes #6461 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7575 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-30 16:41:43 +00:00
Ryan Boren
ec33c42302 Taxonomy links and template tags from andy. see #6357
git-svn-id: https://develop.svn.wordpress.org/trunk@7520 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-26 06:37:19 +00:00
Ryan Boren
78c85d5222 Handle more than 3 columns in gallery. Props Dickie. fixes #6382
git-svn-id: https://develop.svn.wordpress.org/trunk@7516 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-26 03:34:55 +00:00
Ryan Boren
cf9618758d Gallery display enhancements from tellyworth. fixes #6368
git-svn-id: https://develop.svn.wordpress.org/trunk@7496 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-24 02:57:19 +00:00
Matt Mullenweg
64760ccecf Helper comment and lowercase filenames before playing around with them, to avoid extension duplication.
git-svn-id: https://develop.svn.wordpress.org/trunk@7478 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-22 19:34:21 +00:00
Matt Mullenweg
22ef105581 Better default quality.
git-svn-id: https://develop.svn.wordpress.org/trunk@7474 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-22 17:14:53 +00:00
Ryan Boren
e2145503bf pretty delete animation, fix squashed icons and use 80x60 thumbs, add rel attrs to attachment links inserted from uploader. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7466 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-21 23:21:27 +00:00
Peter Westwood
0c47f0d9d9 Add a filter to the jpeg_quality to allow for it to be modified. Fixes #6289.
git-svn-id: https://develop.svn.wordpress.org/trunk@7444 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-21 08:31:50 +00:00
Matt Mullenweg
afcbc3d0e6 Simpler gallery markup in feeds. Fixs #6225. Hat tip: andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@7298 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-14 19:23:56 +00:00
Ryan Boren
00c6484a3b Remove intermediate images when deleting an attachment. Props tellyworth. fixes #6142
git-svn-id: https://develop.svn.wordpress.org/trunk@7271 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-12 23:15:31 +00:00
Ryan Boren
32e414dbf4 Image fixes from andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7263 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-12 08:10:00 +00:00
Matt Mullenweg
4888358aad Turn off the fullsize argument, which was accidentally toggled earlier.
git-svn-id: https://develop.svn.wordpress.org/trunk@7233 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-11 07:45:31 +00:00
Matt Mullenweg
17a3b54dc0 Better media attachment template. See #5911. Hat tip: andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@7222 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-11 00:09:14 +00:00
Matt Mullenweg
8d3812d14d More attachment thumbnail fixes, see #5911. Hat tip: andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@7218 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-10 23:04:20 +00:00
Matt Mullenweg
6bb830225d Icon fixes. See #5911; hat tip: andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@7212 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-10 21:31:33 +00:00
Ryan Boren
7d6440bba2 Fix insert, gallery, sizing, type queries, errors, thumbs, type fallback. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7172 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-06 19:48:54 +00:00
Matt Mullenweg
22cdc2b75e Handle GD errors correctly during image resizing. Fixes #6087. Hat tip: tellyworth.
git-svn-id: https://develop.svn.wordpress.org/trunk@7150 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-04 04:23:35 +00:00
Matt Mullenweg
cc3147ab22 New functions for attachment image display, fixes #6086. Hat tip: tellyworth.
git-svn-id: https://develop.svn.wordpress.org/trunk@7149 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-04 04:21:37 +00:00
Ryan Boren
7aa9161dc3 Image sizing fix from andy. fixes #6074
git-svn-id: https://develop.svn.wordpress.org/trunk@7137 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 20:53:04 +00:00
Matt Mullenweg
88bb527a19 Creating intermediate sizes, better thumbnails, and other image improvements. Hat tip: tellyworth.
git-svn-id: https://develop.svn.wordpress.org/trunk@7135 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-03 04:17:37 +00:00
Ryan Boren
6d7441c26e Remove trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@7130 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-02 20:17:30 +00:00
Ryan Boren
d65f40539b Media upload updates from andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7043 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 19:30:10 +00:00
Ryan Boren
ebf8442951 image_resize() and friends from tellyworth. fixes #6005
git-svn-id: https://develop.svn.wordpress.org/trunk@7041 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-26 18:46:03 +00:00
Ryan Boren
579698f0b1 Media library work from andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@6974 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 05:53:47 +00:00
Ryan Boren
6aacdf4c91 Image size options from tellyworth. fixes #5933
git-svn-id: https://develop.svn.wordpress.org/trunk@6952 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-21 06:00:15 +00:00