Daryl Koopersmith
c2e7a67fbe
Update Backbone to 0.9.10. Update media to handle breaking changes.
...
* When overriding `Backbone.sync()`, ensure the `sync` and `error` events fire consistently.
* `Model#make()` has been removed. Use `$` instead, and be sure to grab the DOM node where necessary (using `[0]`).
* `Collection#get()` now accepts `cid`s. `Collection#getByCid()` has been removed.
* When overriding the `State` constructor, bind `change` callbacks after the default `Model` constructor is called, because the `Model` constructor no longer passes the `silent` flag when calling `set()` for the default attributes.
* In 'change' events, `options.changes` was removed. It can now be accessed through `model.changed`. Check if any attributes have changed by calling `model.hasChanged()`. Also, don't mess with `model.changed`; it persists beyond the scope of a single event.
* `options.index` is no longer be set in the `add` event callback. Use `collection.indexOf(model)` can be used to retrieve the index of a model instead.
props gcorne. fixes #23262 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23589 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:04:06 +00:00
Andrew Nacin
16d1aa3485
Remove the three default contact methods (AIM, YIM, Jabber) for new installs. fixes #11541 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23588 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 03:00:34 +00:00
bumpbot
0c4b47f631
Compress scripts/styles: 3.6-alpha-23585.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23585 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 22:58:34 +00:00
bumpbot
ec3fda3cc1
Compress scripts/styles: 3.6-alpha-23582.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23582 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 22:58:38 +00:00
Helen Hou-Sandi
45b4d47b02
* Simplify jQuery UI slider CSS and bring into line with admin styles.
...
* Merge styles into wp-admin.css and colors-*.css.
* Scope the CSS with a class so as not to conflict with the color picker, which also utilizes jQuery UI slider. Authors wanting to use built-in styling for sliders should add a class of `.wp-slider` to the container to be intialized.
props karmatosed, helen. see #23497 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23581 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 19:24:03 +00:00
Sergey Biryukov
3e811c5171
Use distinct error code in wp_authenticate_username_password() when user is a spammer. props sirzooro. fixes #19445 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23579 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 18:01:16 +00:00
Andrew Nacin
12882f9848
Ensure the referer functions operate completely on unslashed data: wp_referer_field(), wp_original_referer_field(), wp_get_referer(), wp_get_original_referer().
...
Use wp_slash() instead of addslashes().
see #21767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23578 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:58:43 +00:00
Andrew Nacin
20f86706e4
Remove double-strip on HTTP_IF_NONE_MATCH, which was done years ago (in #2597 ). see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23573 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:51:16 +00:00
Sergey Biryukov
15cc36bd4b
Make sure the pings are only sent once per URL for a given post. props dllh. fixes #23217 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23571 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:39:52 +00:00
Ryan Boren
37fae23001
Always wp_unslash() the return of wp_get_referer().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23570 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:20:32 +00:00
Sergey Biryukov
ad40af5edc
Add a filter for attributes on menu item links. props simonwheatley, DrewAPicture, SergeyBiryukov, nacin. fixes #16738 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23565 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:06:35 +00:00
Ryan Boren
85782c3e39
Introduce wp_slash() and wp_unslash(). This will be used to cleanup the myriad calls to addslashes*, add_magic_quotes, stripslashes*. see #21767
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23555 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:34:48 +00:00
Ryan Boren
c363aea627
Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23554 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:28:40 +00:00
Sergey Biryukov
da77df683e
Make wp_remove_object_terms() return false if nothing has been deleted. props kovshenin. fixes #15475 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23552 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:22:07 +00:00
Sergey Biryukov
80e66db499
Make wp_convert_bytes_to_hr() return consistent results on 32-bit and 64-bit systems. fixes #23626 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23551 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 15:59:10 +00:00
Sergey Biryukov
c99000e98c
Ensure that get_nav_menu_locations() always returns an array. props JustinSainton for initial patch. fixes #23508 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23550 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 15:51:16 +00:00
Andrew Ozz
da3d4313b4
Logged out warnings: restructure the PHP code (no need for a class), props nacin, see #23295
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23543 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 01:55:33 +00:00
bumpbot
85550f9f94
Compress scripts/styles: 3.6-alpha-23542.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23542 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 22:58:40 +00:00
Helen Hou-Sandi
144a7a190b
Remove input field focus styles in DFW to enhance the distraction-free-ness. props ocean90. fixes #23648 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23540 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 22:22:48 +00:00
Andrew Nacin
3c4c5649fe
Allow paths with two consecutive dots to be passed to home_url() and all related *_url() functions.
...
props markjaquith.
fixes #19032 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23537 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 21:04:26 +00:00
Andrew Nacin
715edd6d00
Remove direct call to add_new_user_to_blog() as this is already hooked into wpmu_activate_user.
...
The second argument passed by that hook is not $email, so let's change that. It is not used.
props wonderboymusic.
fixes #15173 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23535 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 20:28:36 +00:00
Andrew Nacin
352183c346
Revert [23359]. The post_author and comment_count post object fields will remain numeric strings for back compat. see #22324 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23531 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:40:26 +00:00
bumpbot
60a88cf02c
Compress scripts/styles: 3.6-alpha-23530.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23530 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:07:34 +00:00
Andrew Nacin
94a0410530
Make Twenty Thirteen the default theme.
...
Has the added benefit of ensuring the WordPress Beta Tester plugin allows updates of Twenty Thirteen.
props JustinSainton.
fixes #23573 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23529 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:01:07 +00:00
Andrew Nacin
f6450ab8ce
esc_url() when printing a URL into an attribute, even when it is known to be safe. (see #17562 )
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23528 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:58:52 +00:00
Andrew Nacin
48ddbda8f8
Automatically esc_url() the URL echoed by the_permalink().
...
This makes the_permalink() useful, rather than needing to do `echo esc_url( get_permalink() )` to get proper encoding of ampersands, etc. This will not double-encode when esc_url() has already been applied to the filter here, but that code can now be removed.
props mfields.
fixes #17562 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23527 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:56:39 +00:00
Andrew Nacin
a4324ec19c
Remove bogus pagination rules from the comments permastruct. (As in, comments/page/?([0-9]{1,})/?$.) props wonderboymusic, fixes #21138 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23524 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:35:13 +00:00
Andrew Nacin
446c4f85af
Update to PHPMailer 5.2.4. props bpetty. fixes #21074 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23522 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:33:13 +00:00
Andrew Nacin
9d885adce3
Add self_link filter to self_link(). props josephscott. fixes #10434 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23521 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:27:13 +00:00
Andrew Nacin
2d2bb70ec2
Allow nonce name to be passed to wp_nonce_url(), as allowed by wp_nonce_field(). props MatthewRuddy, fixes #22423 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23519 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:08:53 +00:00
Andrew Nacin
57f7ae7af4
Stop using deprecated jQuery API (.browser and .live). Do manual UA sniffing where still necessary. Improve selector performance by using delegated events. props ocean90. see #22975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23518 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:05:28 +00:00
Andrew Nacin
5a2b79d914
jQuery Migrate 1.1.1. props ocean90. see #22975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23516 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:02:26 +00:00
Andrew Nacin
23b1a46710
Fix internal linking dialog conflicts with jQuery UI 1.10.x. Syncs jQuery UI CSS styles.
...
Remaining issue will be fixed in 1.10.2 final.
props ocean90.
see #23370 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23515 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 17:54:00 +00:00
Andrew Nacin
34a00ae277
Move admin bar initialization from init to template_redirect, so conditional tags may be used in the show_admin_bar filter. props scribu. fixes #20101 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23512 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:56:35 +00:00
Andrew Nacin
5114e85747
In insert_blog(), make sure we retrieve the insertion ID from wpdb before calling a function that could invoke queries. props feedmeastraycat. fixes #23400 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23511 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:53:48 +00:00
Andrew Nacin
11ab449a89
Ensure we strictly compare 'alloptions' and 'notoptions' when protecting these special options.
...
Trim and check for emptiness of $option in delete_option(), as done for get, update, and add.
fixes #23289 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23510 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:49:20 +00:00
Helen Hou-Sandi
7f7f9a805c
Merge revisions.css into wp-admin.css. Move misplaced block of revisions CSS in wp-admin.css into appropriate section. Some standards clean up and selector merging. see #23497 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23507 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 15:40:44 +00:00
Peter Westwood
554627a0d5
Revisions: First pass an implementing a new UI/UX for reviewing the revisions of posts. See #23497 props adamsilverstein for the initial patch.
...
This implements a new revisions ui using Backbone and preserves all the old methods of "integration" so the change should be transparent to plugins using revisi
ons with CPTs.
This is the first pass and so there are a number of things still to be resolved, more details in the ticket. Feedback welcomed.
git-svn-id: https://develop.svn.wordpress.org/trunk@23506 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 15:14:34 +00:00
Andrew Ozz
1ad1ce8db9
Logged out warnings: remove debug leftovers, see #23295
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23505 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 09:03:10 +00:00
Andrew Ozz
780ee565aa
Improved logged out warnings, first run, props mintindeed, see #23295
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23504 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 08:57:17 +00:00
Sergey Biryukov
9430601021
Avoid an undefined offset notice in wp_convert_bytes_to_hr(). props soulseekah. fixes #23626 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23502 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 05:25:15 +00:00
Helen Hou-Sandi
6ef89f92c7
Revert [23407], thereby restoring gradients and shadows. see #23415 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23500 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 00:58:26 +00:00
Helen Hou-Sandi
8b26ed504c
Remove default content from post format compat output. We shouldn't magically create content for display not specified by the user, especially given that the current compat is handling the case of new data, old theme. see #23347 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23499 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-27 22:10:08 +00:00
bumpbot
ffce5ab757
Compress scripts/styles: 3.6-alpha-23495.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23495 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-26 22:58:42 +00:00
Andrew Ozz
756c28bf5c
Post locks: use heartbeat to dynamically update locked posts on the Posts screen, first run, see #23312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23487 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 23:17:10 +00:00
bumpbot
12a8779a74
Compress scripts/styles: 3.6-alpha-23486.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23486 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 22:58:42 +00:00
Sergey Biryukov
6a59a28f12
Rename 'no_tagcloud' taxonomy label to 'not_found', for consistency with the post type label of the same key. fixes #23597 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23484 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 19:39:38 +00:00
Sergey Biryukov
41919e97fb
Move 'no_tagcloud' argument to the taxonomy labels object. props DrewAPicture for initial patch. fixes #23597 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23483 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 18:35:05 +00:00
Andrew Ozz
d5719ec648
Fix typo in wp_heartbeat_settings, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23482 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 04:19:51 +00:00
Andrew Ozz
9b691a21b0
Heartbeat API: add nopriv actions, add JS 'heartbeat-send' event, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23481 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 02:32:22 +00:00
Helen Hou-Sandi
a3afd6e989
Post formats compat output:
...
* Check for theme support of `structured-post-formats` rather than `post-formats`.
* Use \n instead of PHP_EOL constant.
* Add new lines after opening compat wrapper tag for some `wpautop()` treatment.
props SergeyBiryukov. see #23347 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23468 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-21 23:02:00 +00:00
Helen Hou-Sandi
e599566ce4
Implement theme support for structured-post-formats, which will supercede theme support for post-formats. Usage is the same as declaring support for post-formats: `add_theme_support( 'structured-post-formats', array( 'quote', 'video' ) )`. Adding `structured-post-formats` support also adds `post-formats` support for the given format(s) underneath.
...
Declaring support for a given format indicates that the theme handles format-specific metadata; admin UI will not change based on theme-declared support of either variety as it did previously. If no `structured-post-formats` support is explicitly declared for a format, a post in that format will have fallback output utilizing that metadata applied. In this way, a theme can style core-provided output for a full post format experience without having to handle metadata in any way.
props nacin. see #23347 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23467 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-21 22:48:09 +00:00
Andrew Nacin
e1b603bbc3
Move revisions/autosave and post format functions from wp-includes/post.php into revision.php and post-formats.php.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23466 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-21 21:24:34 +00:00
Sergey Biryukov
74825282e5
Remove unused global reference. props aaroncampbell. fixes #23541 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23458 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-20 00:18:15 +00:00
Sergey Biryukov
f474e9da60
Add a missing closing tag. fixes #23510 . see #14358 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23454 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-19 02:06:21 +00:00
bumpbot
f18f7d7b2d
Compress scripts/styles: 3.6-alpha-23451.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23451 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 22:26:00 +00:00
Helen Hou-Sandi
351438ebe1
Output fallbacks / theme compat for post format metadata.
...
* Currently handles link, quote, image, gallery, audio, and video formats.
* `add_theme_support()` for a given post format is now an indicator that the theme handles format-specific metadata.
* If no support for a given format is defined, fallback output will be generated and hooked onto the_content if a post has metadata for that format.
* Fallbacks attempt to be smart about not duplicating data already appearing in the post content itself. Gallery is particularly liberal, looking for any instance of the gallery shortcode in the content, not just an exact match to the gallery shortcode defined in the format-specific meta.
* Compat output defaults to being wrapped in a `div` with a class of `post-format-content`.
Theme authors: please test and evaluate, keeping in mind that the goal is to support user expectations of not losing format-specific data they've entered in the admin when viewing the front-end of their site.
props wonderboymusic, beaulebens, helen. see #23347 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23450 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 19:22:58 +00:00
Helen Hou-Sandi
5b3c058bd5
Edit screen UI for post formats: a first run for functionality.
...
* Adds a very basic tabbed interface for selecting a post format (requires JS).
* Extra fields, which are post meta, are shown/hidden based on the selected format.
* Introduce a helper function for retrieving formats-specific metadata: `get_post_format_meta()`.
* Image selection uses the media modal, although without filtering or from URL support at the moment.
props rachelbaker, wonderboymusic, aaroncampbell, helen. see #19570 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23449 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 19:11:24 +00:00
Sergey Biryukov
edd0530290
Fix typo in phpdoc. see #23498 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23448 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 18:56:51 +00:00
bumpbot
745ed8b530
Compress scripts/styles: 3.6-alpha-23447.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23447 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 22:58:41 +00:00
Andrew Nacin
038439326d
Remove unused admin-categories and admin-custom-fields JavaScript files. props ocean90. fixes #23486 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23446 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 19:03:59 +00:00
Andrew Nacin
0c89805886
jQuery UI 1.10.1.
...
props ocean90. see #23370 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23442 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:40:37 +00:00
Sergey Biryukov
4d8fc5d551
Restore the original wp_convert_bytes_to_hr() code. fixes #19067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23440 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 03:59:37 +00:00
Sergey Biryukov
eeda24f865
Deprecate wp_convert_bytes_to_hr() in favor of size_format(). props F J Kaiser. fixes #19067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23439 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 03:07:56 +00:00
Andrew Nacin
aedda3210c
Deprecate get_user_id_from_string() in favor of get_user_by( $field ) where $field is 'email' or 'login'. props SergeyBiryukov. fixes #23190 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23438 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 03:02:15 +00:00
Sergey Biryukov
07d596afb7
Add missing inline descriptions. see #19067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23437 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 02:52:57 +00:00
Andrew Nacin
4b040e72dc
WP_Query: `post_parent__in` and `post_parent__not_in`. props wonderboymusic. fixes #11056 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23436 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 02:08:46 +00:00
bumpbot
fe6bb0671d
Compress scripts/styles: 3.6-alpha-23435.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23435 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 22:58:45 +00:00
Sergey Biryukov
2950f848d4
Fix typos in phpdoc. props markmcwilliams. fixes #23481 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23434 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:59:56 +00:00
Sergey Biryukov
8eebc4d4ff
Use wp_get_current_user(). props nacin. see #23192 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23432 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:13:18 +00:00
Sergey Biryukov
79df86b818
Replace get_user_id_from_string() with get_user_by(). props ocean90, bananastalktome. fixes #23192 . see #23190 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23431 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:00:52 +00:00
Mark Jaquith
ead92fb39d
"LGPL License" is redundant.
...
props wonderboymusic, jakub.tyrcha. fixes #15585
git-svn-id: https://develop.svn.wordpress.org/trunk@23425 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:26:46 +00:00
Sergey Biryukov
417adb2e2e
Filter "Powered by WordPress" text in Meta widget. props Viper007Bond, wonderboymusic. fixes #14358 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23424 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:20:14 +00:00
Andrew Nacin
d9e2f14dca
jQuery UI 1.10.0.
...
Some lingering issues with the edit/insert link dialog.
props ocean90.
see #23370 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23423 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:13:26 +00:00
Mark Jaquith
1dc5d1c401
Update our Windows media file MIME types to the official Microsoft-recommended ones.
...
props niallkennedy, wonderboymusic. fixes #14253
git-svn-id: https://develop.svn.wordpress.org/trunk@23422 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:12:40 +00:00
Andrew Nacin
88b8e29f0d
jQuery 1.9.1 and jQuery Migrate 1.1.0.
...
Remains uncompressed for now, until we work out all 1.9.x issues.
Fixes custom fields.
props ocean90, wonderboymusic. see #22975 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23421 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:09:04 +00:00
Sergey Biryukov
9defec712a
Properly truncate UTF-8 post slugs in wp_unique_post_slug(). fixes #21013 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23420 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 14:35:41 +00:00
bumpbot
2d34b9a876
Compress scripts/styles: 3.6-alpha-23417.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23418 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:42 +00:00
Mark Jaquith
bfd0b6fb37
Refactor the Customizer accordion so that it can be used in other locations.
...
fixes #23449 . props lessbloat, aaroncampbell
git-svn-id: https://develop.svn.wordpress.org/trunk@23417 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:04 +00:00
Ryan Boren
a6c8efadb9
Change all core API to expect unslashed rather than slashed arguments.
...
The exceptions to this are update_post_meta() and add_post_meta() which are often used by plugins in POST handlers and will continue accepting slashed data for now.
Introduce wp_upate_post_meta() and wp_add_post_meta() as unslashed alternatives to update_post_meta() and add_post_meta(). These functions could become methods in WP_Post so don't use them too heavily yet.
Remove all escape() calls from wp_xmlrpc_server. Now that core expects unslashed data this is no longer needed.
Remove addslashes(), addslashes_gpc(), add_magic_quotes() calls on data being prepared for handoff to core functions that until now expected slashed data. Adding slashes in no longer necessary.
Introduce wp_unslash() and use to it remove slashes from GPCS data before using it in core API. Almost every instance of stripslashes() in core should now be wp_unslash(). In the future (a release or three) when GPCS is no longer slashed, wp_unslash() will stop stripping slashes and simply return what is passed. At this point wp_unslash() calls can be removed from core.
Introduce wp_slash() for slashing GPCS data. This will also turn into a noop once GPCS is no longer slashed. wp_slash() should almost never be used. It is mainly of use in unit tests.
Plugins should use wp_unslash() on data being passed to core API.
Plugins should no longer slash data being passed to core. So when you get_post() and then wp_insert_post() the post data from get_post() no longer needs addslashes(). Most plugins were not bothering with this. They will magically start doing the right thing. Unfortunately, those few souls who did it properly will now have to avoid calling addslashes() for 3.6 and newer.
Use wp_kses_post() and wp_kses_data(), which expect unslashed data, instead of wp_filter_post_kses() and wp_filter_kses(), which expect slashed data. Filters are no longer passed slashed data.
Remove many no longer necessary calls to $wpdb->escape() and esc_sql().
In wp_get_referer() and wp_get_original_referer(), return unslashed data.
Remove old stripslashes() calls from WP_Widget::update() handlers. These haven't been necessary since WP_Widget.
Switch several queries over to prepare().
Expect something to break.
Props alexkingorg
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23416 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:51:06 +00:00
Peter Westwood
4ca366a0d1
Revisions: Allow a plugin to force us to skip the don't save this revision because it hasn't changed code if it knows better.
...
See #7392 and #9843 . Also cleans up the whitespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@23415 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 16:45:43 +00:00
Peter Westwood
671a9b2017
Revisions: Before saving a new post revision make sure that something has changed in the fields that we are revisioning.
...
Fixes : #7392 and #9843 props adamsilverstein.
git-svn-id: https://develop.svn.wordpress.org/trunk@23414 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 11:36:32 +00:00
Sergey Biryukov
16e16c7ee4
Use correct escaping function. fixes #23334 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23413 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:52:23 +00:00
Sergey Biryukov
74f5d9dcb3
Remove unused error string. props pavelevap. fixes #22107 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23412 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:36:28 +00:00
Sergey Biryukov
142c4ee92b
Use correct escaping function. props jkudish. fixes #20771 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23411 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:12:23 +00:00
Sergey Biryukov
04778f60ac
Return from image_downsize() earlier if a custom resize function is used. props anatolbroder. fixes #23392 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23410 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 04:30:55 +00:00
bumpbot
6b63e085ef
Compress scripts/styles: 3.6-alpha-23408.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23408 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:58:44 +00:00
Helen Hou-Sandi
4b2173708d
Begin simplifying some of the visual elements in the admin, starting with gradients. White space purposefully not currently altered. props lessbloat, melchoyce, aaroncampbell, sabreuse. see #23415 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23407 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:43:48 +00:00
bumpbot
42926ca699
Compress scripts/styles: 3.6-alpha-23403. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23403 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 22:58:43 +00:00
Andrew Ozz
6d0ee4dc7d
TinyMCE: include cd84a63d4a
to fix backspace and line breaks issues in WebKit, see #23337
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23402 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 02:04:09 +00:00
Ryan Boren
77e5536195
Use microtime() instead of incrementors for last_changed to to avoid race conditions with cache evictions.
...
Props westi
fixes #23448
git-svn-id: https://develop.svn.wordpress.org/trunk@23401 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-11 18:08:14 +00:00
bumpbot
679339ffaa
Compress scripts/styles: 3.6-alpha-23400.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23400 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 22:58:42 +00:00
Mark Jaquith
9f02654b0d
Introduce wp_remove_object_terms() and wp_add_object_terms(). No more fetch-alter-update nonsense. Use wp_remove_object_terms() in a few places internally.
...
props simonwheatley, scribu, ericmann, maxcutler. fixes #15475
git-svn-id: https://develop.svn.wordpress.org/trunk@23398 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:45:34 +00:00
Helen Hou-Sandi
efda431bc2
Open external links to plugin homepages, plugin author homepages, and theme author homepages in a new window/tab. props SergeyBiryukov. fixes #20839 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23394 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:20:01 +00:00
Andrew Nacin
5dd8a15b26
Add underscore and backbone to the do-not-deregister list of scripts.
...
props adamsilverstein.
see [23378]. see #22896 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23391 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 05:11:27 +00:00
Mark Jaquith
e3a1266c0c
Revert [23375] until we can get Media fixed to work with newer versions of Backbone. see #23262
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23390 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 03:15:22 +00:00
Andrew Ozz
b38675a65a
Heartbeat API: fix error in IE < 9, props SergeyBiryukov, don't attempt to bind events to cross-domain iframes, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23389 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 07:10:04 +00:00
Sergey Biryukov
12fcb94781
Use a human-readable constant in wp_set_auth_cookie(). fixes #23372 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23388 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 03:44:43 +00:00
Sergey Biryukov
163f0a4769
Correct the documentation for _publish_post_hook(). Remove unused global declaration. props roulandf. fixes #23376 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23387 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-05 15:45:37 +00:00
bumpbot
68360b40ab
Compress scripts/styles: 3.6-alpha-23386.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23386 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 14:38:03 +00:00
Ryan Boren
51e5049575
In wp_get_archives(), cache queries to individual cache buckets instead of storing them in one cached array. Use incrementor style passive cache invalidation.
...
fixes #23206
see #23173
git-svn-id: https://develop.svn.wordpress.org/trunk@23385 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 13:54:15 +00:00
Ryan Boren
8b07ad9884
Use incrementors for cache invalidation in get_terms().
...
fixes #23326
see #23173
git-svn-id: https://develop.svn.wordpress.org/trunk@23384 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 13:48:46 +00:00
Mark Jaquith
bd80d92a89
Update Underscore to version 1.4.4. see #23262
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23383 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 06:40:21 +00:00
Andrew Ozz
682b66b560
Heartbeat API: throttle down when the window looses focus or when the user is inactive, always send 'screen_id', change the interval settings to 'fast' (5sec), 'standard' (15sec) and 'slow' (60sec), the interval can be changed from PHP, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23382 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-03 07:03:27 +00:00
Sergey Biryukov
795ea73568
Mark the string for translation. see #22896 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23379 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 03:42:10 +00:00
Andrew Nacin
ca3bfb34f9
Do not allow accidental or negligent deregistering of critical scripts in the admin. (Defined for now as jQuery and jQuery UI.) Show minimal remorse if the correct hook is used. see #22896 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23378 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 03:01:20 +00:00
Andrew Nacin
2b1d2bfa78
Stop recommending the init hook in the _doing_it_wrong() message for too-early scripts and styles. Instead, recommend the three _enqueue_scripts hooks. If they're noticing they are doing it wrong, let's push them to 100% correct, not partly correct.
...
see #22896 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23377 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:42:09 +00:00
Andrew Nacin
d5de4a9bbd
Update to Services_JSON 1.0.3. props bpetty. fixes #21568 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23376 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:09:01 +00:00
Andrew Nacin
faa884032e
Update Backbone.js to 0.9.10. props aaronholbrook, fixes #23262 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23375 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:02:53 +00:00
Andrew Nacin
2604bfffbf
Ensure we have a charset before calling mb_internal_encoding(), avoiding an unnecessary (if suppressed) warning. props dfavor. fixes #23093 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23373 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:01:29 +00:00
Sergey Biryukov
ce72d762f8
Correct the documentation for balanceTags(). Remove unnecessary boolean inversion. props TobiasBg. fixes #22537 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23368 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 22:20:06 +00:00
Sergey Biryukov
35453dc623
Properly check if the custom header/background has been initialized. fixes #23170 . see #22246 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23367 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 20:33:27 +00:00
Sergey Biryukov
78b83d3fc1
PHPDoc fixes and additions. props bananastalktome, DrewAPicture. fixes #23313 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23365 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 18:07:08 +00:00
Sergey Biryukov
d4f8fff530
Merge two different descriptions of siteurl and home options. fixes #22771 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23363 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 01:35:37 +00:00
Sergey Biryukov
98cbf77a95
Use digraphs for German umlauts in remove_accents(). props SergeyBiryukov, ocean90. fixes #3782 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23361 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:55:09 +00:00
Sergey Biryukov
2b5a4c5596
Display username (user_login) rather than user_nicename in Toolbar. fixes #22121 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23360 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:39:08 +00:00
Sergey Biryukov
5948d92355
Cast post_author to string in XML-RPC methods. props markoheijnen. fixes #22324 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23359 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:25:26 +00:00
Sergey Biryukov
78b69ff012
Pass old roles to set_user_role action. props awellis13. fixes #19134 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23358 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:15:25 +00:00
Sergey Biryukov
633d1902b5
Avoid 'Only variables should be passed by reference' warning. fixes #23232 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23357 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:01:19 +00:00
Andrew Ozz
23ef0e4e0b
Remove BOM from jquery.query.js, fixes #23315
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23356 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 20:52:32 +00:00
Andrew Ozz
5edc6b2711
Heartbeat API: first run, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23355 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 06:15:25 +00:00
Sergey Biryukov
9a00a0dcce
Sanitize post_author and comment_count as integer fields. props GeertDD. fixes #22324 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23353 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 04:17:05 +00:00
Sergey Biryukov
3870e8f25c
Make sure the array exists before adding an element to it. props rodrigosprimo. fixes #23272 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23346 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-25 12:24:10 +00:00
Andrew Nacin
44a1c8b227
Use correct cache bucket. Fixes copy-paste error in r23320. props kurtpayne. see #23167 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23341 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-24 17:21:55 +00:00
Andrew Ozz
995de61c9d
Update Plupload to 1.5.5, fixes #23277 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23339 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-23 20:54:42 +00:00
bumpbot
5d2f7a3a4d
Compress scripts/styles: 3.6-alpha-23334. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23334 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 22:57:24 +00:00
Andrew Nacin
00d0bff81b
Validate pingback source URIs. Less verbose errors.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23329 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 22:30:08 +00:00
Sergey Biryukov
8de46fae8b
Correct inline docs for cache.php. props ocean90. fixes #23058 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23328 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 20:44:30 +00:00
Andrew Ozz
f8a254ec56
Autop: <samp> is not a block tag, props toscho, fixes #18807
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23327 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 19:05:21 +00:00
Andrew Nacin
ffdea33618
Comment Query: Use $this->query_vars instead of the nonexistent shorthand $q. see #23208 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23325 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 16:54:38 +00:00
Andrew Nacin
056e47fdef
Use correct escaping function. props duck_.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23321 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 16:37:54 +00:00
Ryan Boren
7ff77d2e02
Avoid the appearance of a magic number.
...
Props nacin
see #23167
git-svn-id: https://develop.svn.wordpress.org/trunk@23320 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 15:52:13 +00:00
Ryan Boren
7442b3894b
Explicitly set last_changed to 1 instead of the result of wp_cache_set(). Avoids ambiguity and works with cache backends that return void instead of boolean.
...
see #23167
git-svn-id: https://develop.svn.wordpress.org/trunk@23319 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 15:46:16 +00:00
Andrew Nacin
e3ab06bb20
Verify tags used in the gallery shortcode.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23316 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 15:36:57 +00:00
Sergey Biryukov
3c38bfeaac
Fix typo in phpdoc. fixes #23090 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23312 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 03:44:31 +00:00
Sergey Biryukov
41887b0aab
Fix typo in phpdoc. props AKTed, ocean90. fixes #23242 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23311 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 03:08:05 +00:00
Ryan Boren
b8a9b92f54
Declare wp_rewrite as global in _wp_menu_item_classes_by_context().
...
Props andrewryno
fixes #7337
git-svn-id: https://develop.svn.wordpress.org/trunk@23309 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-21 14:44:30 +00:00
Ryan Boren
818251f59e
Whitespace cleanup.
...
Props dimadin
fixes #23126
git-svn-id: https://develop.svn.wordpress.org/trunk@23308 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-21 14:39:39 +00:00
Mark Jaquith
df47c013ec
Properly wipe capabilities from new site-independent multisite users by using the right key.
...
props wonderboymusic. fixes #15627
git-svn-id: https://develop.svn.wordpress.org/trunk@23307 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-18 15:30:55 +00:00
Mark Jaquith
524e73f175
Consistently use $wp_rewrite->index instead of hardcoding "index.php".
...
props wonderboymusic. fixes #7337
git-svn-id: https://develop.svn.wordpress.org/trunk@23305 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-18 13:44:22 +00:00
Andrew Nacin
f0e451a30f
Treat URL schemes as case insensitive when sanitizing them in esc_url().
...
props mdawaffe.
fixes #23187 .
tests: [1184/tests]
git-svn-id: https://develop.svn.wordpress.org/trunk@23303 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-17 15:07:32 +00:00
Andrew Nacin
77cdc0ce65
jQuery 1.9 final. jQuery Migrate 1.0. Uncompressed for now, while we iron out kinks.
...
props jorbin. see #22975 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23301 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-15 17:52:42 +00:00
Ryan Boren
bb70f60264
In get_pages(), cache queries to individual cache buckets instead of storing them in one cached array. Also, store post IDs instead of full objects. This reduces overall memory usage as well as the size of the cache buckets. Use incrementor style passive cache invalidation.
...
Props nprasath002
see #23167
git-svn-id: https://develop.svn.wordpress.org/trunk@23300 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-15 17:32:35 +00:00
Andrew Ozz
84827c87dc
Media: when copying from "caption" (textarea) to "alt" (text input) also remove line breaks, props kovshenin, fixes #23176 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23298 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-14 17:34:45 +00:00
Mark Jaquith
22b416ef72
Do not notify the post author about comments if they are no longer a member of the blog. props nickmomrick. fixes #23136
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23294 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-08 04:03:16 +00:00
bumpbot
ae63b07abd
Compress scripts/styles: 3.6-alpha-23288.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23288 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-05 02:33:20 +00:00
Andrew Nacin
2d12f38ad1
Don't unnecessarily re-render the attachment details view when editing the title and caption. Re-rendering causes issues with tabbing and focus, and is only necessary for other views (such as "Caption this image..." when editing a gallery).
...
props koopersmith.
fixes #23054 .
for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23283 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 23:29:20 +00:00
bumpbot
3ef497695d
Compress scripts/styles: 3.6-alpha-23279.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23279 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 22:34:43 +00:00
Andrew Nacin
a8ce189639
Restore TinyMCE dropdowns to their 3.4 appearance in RTL. props helen. see #23101 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23275 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 20:11:59 +00:00
Ryan Boren
006d5940cd
Try not to send Last-Modified, even with an empty value. Some servers interpret an empty value as the epoch.
...
Props nacin, slene, SergeyBiryukov, andy
see #23021 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23267 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 19:51:31 +00:00
bumpbot
f6e22d011c
Compress scripts/styles: 3.6-alpha-23266.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23266 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 17:39:23 +00:00
Peter Westwood
d927271553
Tighten our braces. Fixes #23118 props evansolomon.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23265 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 10:13:51 +00:00
Andrew Nacin
672bd9a43d
Media: Pass thumbnail and medium sizes to image_constrain_size_for_editor() to force constraints based on the current DB options for those sizes. History: see #22598 , #22738 .
...
props jond3r.
see #23102 .
for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23264 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:52:18 +00:00
Daryl Koopersmith
0221f597b4
Media: Properly reset the "add to gallery" library to ensure it accurately reflects the current gallery. see #22815 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23263 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:28:12 +00:00
Andrew Nacin
dec369d6c8
Media: Restore 3.4 behavior by consulting the old-school DB options for default align, size, and link properties.
...
This restores linking to media files as the default, over attachment pages. This 'default' cannot currently be changed by a user setting (per 3.4 behavior), due to the default database schema.
see #22841 , for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23262 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:02:16 +00:00
Daryl Koopersmith
e73a323a16
Media: Do not update attachment display user settings when a single attachment is inserted.
...
This is consistent with 3.4 behavior.
see #22841 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23261 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:01:19 +00:00
Daryl Koopersmith
2b5612e266
Media: Check that a router region exists before attempting to access its child views. Add relevant documentation. see #22930 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23260 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 07:08:37 +00:00
Daryl Koopersmith
45d01dad51
Media: Automatically select uploading attachments in single-select workflows.
...
The code now automatically selects uploading attachments in all workflows. In a workflow that selects multiple attachments, all attachments added to the upload queue are selected. In a workflow that selects a single attachment (e.g. selecting a featured image), the last attachment added to the upload queue is selected.
see #22817 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23259 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 06:44:21 +00:00
bumpbot
46e1c12b98
Compress scripts/styles: 3.6-alpha-23257.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23257 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 22:58:37 +00:00
Dion Hulse
6e405b1831
Correct an incorrect PHPDoc s/@see/@link/ introduced in r23254. See #22900
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23256 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 08:05:48 +00:00
Dion Hulse
80bc158edd
HTTP API: Introduce wp_is_writable() to wrap win_is_writable() and is_writable() to work around PHP Windows ACL issues. See #22900 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23255 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 08:04:11 +00:00
Dion Hulse
b558464d2d
Clarify the Documentation in win_is_writable() and move an inline comment to the Docblock, reduces confusion about what the function actually does. See #22900
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23254 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 07:56:38 +00:00
Andrew Nacin
f4a95f061d
Ensure that get_archive_template() only loads a post type archive (archive-$post_type.php file) if there is exactly one post type in the query.
...
props scribu.
see #22956 .
for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23249 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 06:17:47 +00:00
Daryl Koopersmith
cc68dcede3
Don't include the default columns="3" in a gallery shortcode.
...
Shortcode attributes are strings; fix a variable type error in wp.media.gallery defaults.
props adamsilverstein.
see #22919 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23247 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 06:09:09 +00:00
bumpbot
3463baa996
Compress scripts/styles: 3.6-alpha-23230.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23230 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 22:58:34 +00:00
Mark Jaquith
7533dbadfe
Add .webm (video/webm) to wp_get_mime_types(). props wonderboymusic. fixes #14659
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23229 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 18:07:23 +00:00
Mark Jaquith
654154ad89
Move 'endif;' to its own line instead of having it room with a right curly brace. props dimadin. fixes #22586
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23228 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 18:01:41 +00:00
Mark Jaquith
5e8cd5433a
Fix the PHPDoc for the_post_thumbnail(). props georgestephanis. fixes #22885
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23227 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 17:59:08 +00:00
Andrew Nacin
a3e17acb53
RTL fixes for internal linking. props SergeyBiryukov, helen. see #22835 , for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23226 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-28 22:57:32 +00:00
bumpbot
140881a378
Compress scripts/styles: 3.6-alpha-23223. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23223 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 22:58:50 +00:00
Andrew Ozz
c6d566d726
TinyMCE: don't remove empty <i>, <b>, <em> and <strong> matching the behavior in WordPress 3.4/TinyMCE 3.4.9, see #22477 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23222 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 22:44:10 +00:00
Andrew Nacin
410dda2a96
Update the script loader to reflect the actual version of Underscore.js in trunk. props markoheijnen.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23220 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 21:29:29 +00:00
Andrew Ozz
d0a1164c15
TinyMCE: prevent <a> from wrapping block elements, fixes #22888 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23219 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 21:01:56 +00:00
Andrew Nacin
035eb58af9
Limit the execution of wp_enqueue_media() to once per page. Prevents multiple _wpMediaViewsL10n variables. see #22843 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23214 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 16:07:12 +00:00
Andrew Nacin
32b79f7d61
Always return arrays from get_post_ancestors(). Return an array when passed a value that evaluates to false.
...
props dannydehaan.
fixes #22882 for trunk.
Test: [1177/tests].
git-svn-id: https://develop.svn.wordpress.org/trunk@23212 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:48:18 +00:00
Andrew Nacin
41f3ab73ff
Return WP_Error from wp_update_user() on a non-existent user, avoiding a fatal error in the process.
...
props n7studios, SergeyBiryukov.
fixes #22858 for trunk.
Unit tests: [11776/tests].
git-svn-id: https://develop.svn.wordpress.org/trunk@23210 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:36:08 +00:00
Andrew Nacin
d7640fc5d2
Always call get_post() in get_page_uri() to ensure we have a WP_Post object, which lazy-loads the ancestors this function requires.
...
props dd32
fixes #22883
Unit tests: [1175/tests]
git-svn-id: https://develop.svn.wordpress.org/trunk@23208 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:26:05 +00:00
Andrew Nacin
975dbe9b12
Revert [21942] and have wp_publish_post() deal with the database directly. clean_post_cache() is now also called directly due to [21943].
...
fixes #22944 for trunk.
Unit tests: [1174/tests].
see #11399 . see #21963 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23206 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:14:43 +00:00
Andrew Nacin
9d74b713b5
Correct the deprecated notice in AtomPub's deprecated class. see #22855 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23204 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-26 20:35:27 +00:00
Andrew Nacin
3486bf6668
Encode brackets in the load-scripts.php URL, as these are considered unsafe characters and can be misunderstood. (See RFC 1738.) In particular, a "security" rewrite rule from a plugin blocked URLs with unencoded brackets. fixes #22899 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23201 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-26 20:26:19 +00:00
bumpbot
cff4199f69
Compress scripts/styles: 3.6-alpha-23200.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23200 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 22:58:43 +00:00
Helen Hou-Sandi
d97220fa2c
Minor phpdoc fixes for register_sidebar(). props SergeyBiryukov. fixes #22905 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23199 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 22:11:37 +00:00
Helen Hou-Sandi
f4b20c062c
Add missing @ to phpdoc for gd_edit_image_support(). props tw2113. fixes #23046 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23197 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 16:22:22 +00:00
Helen Hou-Sandi
a0d5de09fd
Refresh phpdoc for register_sidebar(). props jeremyfelt, SergeyBiryukov. fixes #22905 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23196 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-23 16:18:16 +00:00
bumpbot
5999474328
Compress scripts/styles: 3.6-alpha-23193. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23193 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-21 18:52:36 +00:00
Andrew Ozz
349efcf8cb
TinyMCE: update to latest source including the WebKit backspace fix, see #23010
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23192 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-21 18:18:58 +00:00
Helen Hou-Sandi
1303e7377a
its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23191 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:55:32 +00:00
Helen Hou-Sandi
1ebf4c8cb4
Correct phpdoc for wp-includes/plugin.php: wp-content/plugins/, not wp-content/plugin/. props technosailor. fixes #23024 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23190 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:49:55 +00:00
Helen Hou-Sandi
c43802b342
s/Santizes/Sanitizes/ in phpdoc for sanitize_html_class(). props cais. fixes #22890 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23189 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:40:37 +00:00
Helen Hou-Sandi
15147020c8
Correct phpdoc @since for wp_oembed_remove_provider(). props hebbet. fixes #22788 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23186 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:22:21 +00:00
Andrew Nacin
19dcf9dae0
Have the 'jquery' script handle be a parent of both jQuery core and jQuery Migrate. see #22975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23183 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-18 00:56:27 +00:00
Andrew Nacin
eb3fc35a3d
Update jQuery Migrate plugin to latest, fixing .toggle(boolean) usage. see #22975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23182 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-17 20:08:08 +00:00
Andrew Nacin
5eb6ded111
Update to jQuery 1.9 Beta 1 in trunk (3.6-alpha).
...
Temporarily includes jQuery in original, unminified form, for ease of testing and bug reporting.
jQuery 1.9 introduces a "migrate" script for deprecated and removed behavior. Warnings are issued for methods we should not be using, and should be fixed in core. These warnings are sent to the JavaScript console and are collected in `jQuery.migrateWarnings`.
See http://blog.jquery.com/2012/12/17/jquery-1-9-beta-1-released/ for more.
props ocean90, see #22975 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23180 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-17 17:29:40 +00:00
Andrew Nacin
59bb81f264
Remove additional acute accents from permalink slugs via sanitize_title_with_dashes(). props SergeyBiryukov. fixes #22395 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23176 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-13 09:59:28 +00:00
Andrew Nacin
404efd8304
Trunk is now 3.6-alpha again.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23172 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-11 16:22:58 +00:00
Andrew Nacin
b9ead1d148
Trunk is now 3.5 again. (Translators need an anchor point.)
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23171 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-11 16:22:26 +00:00
Andrew Nacin
9840429658
Trunk is now 3.6-alpha.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23168 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-11 15:58:52 +00:00
Andrew Nacin
90f71fd703
3.5-RC6-23166
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23166 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 23:32:04 +00:00
Andrew Nacin
b386a936e1
Makes sure attachment sizes are correctly deselected in IE. Fixes size selections on insert in IE9. props koopersmith. fixes #22851 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23163 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 23:15:53 +00:00
Mark Jaquith
b7a4314cbc
Ignore failed uploads. props koopersmith. fixes #22849
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23162 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:58:28 +00:00
Andrew Nacin
f2b89e27be
Check for DOMDocument when parsing oEmbed XML responses.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23160 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:49:45 +00:00
Andrew Nacin
301284fd7f
Sanity checks in oEmbed XML handling.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23158 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:23:03 +00:00
Andrew Nacin
c3fef1cfec
3.5-RC6 -- please test TinyMCE for regressions working with HTML5 elements, embeds and objects, etc.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23157 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:27:28 +00:00
bumpbot
2359d3397c
Compress scripts/styles: 3.5-RC5-23155. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23155 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:15:13 +00:00
Andrew Nacin
4c3c22af1e
Restore the duck punch of TinyMCE's schema from [23120], along with updated rules for all HTML5 elements, as painstakingly audited against the HTML5 spec.
...
Remove conflicting and unnecessary code in the WP TinyMCE plugin.
Fixes all known regressions when working with the embed, object, video, audio, source, and param elements in TinyMCE.
props markjaquith, koopersmith.
fixes #22790 , #22842 .
fixes #22842 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23153 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:10:12 +00:00
Andrew Nacin
a01fafb7c1
Add TinyMCE's Schema.js to prepare for patching it. see #22790 . see #22842 . for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23151 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:01:24 +00:00
Andrew Nacin
003a8e9c65
Delete the patch of TinyMCE's schema; new attempt. see #22790 . see #22842 . for the 3.5 branch.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23149 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 09:56:31 +00:00
bumpbot
63dbb2f4e4
Compress scripts/styles: 3.5-RC5-23145. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23145 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:41:15 +00:00
Andrew Nacin
9857a5d028
TinyMCE: Use the correct syntax for allowing an `embed` element to be a valid child of an `object` element.
...
Fixes a bug in TinyMCE when using its HTML5 schema definition.
props azaozz.
see #22790 .
for trunk.
... with the right patch this time. [23142] was done in error.
git-svn-id: https://develop.svn.wordpress.org/trunk@23144 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:40:16 +00:00
bumpbot
bf247694cb
Compress scripts/styles: 3.5-RC5-23143. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23143 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:38:50 +00:00
Andrew Nacin
b8a5aca5eb
TinyMCE: Use the correct syntax for allowing an `embed` element to be a valid child of an `object` element.
...
Fixes a bug in TinyMCE when using its HTML5 schema definition.
props azaozz.
see #22790 .
for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23142 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:37:50 +00:00
Andrew Nacin
2a6640e606
3.5-RC5-23141 for both trunk and the 3.5 branch. New nightlies forced.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23141 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 20:09:47 +00:00
Ryan Boren
85b8c87a7e
Introduce previous_image_link and next_image_link filters. Allows customizing the gallery display order.
...
Props nacin
fixes #22829 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23139 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 19:54:23 +00:00
Andrew Nacin
e8298d389e
Two media gallery string changes, for clarity:
...
* 'Random' to 'Random Order', to be clear what it controls.
* 'Describe this image...' to 'Caption this image...', to be clear it links to the Caption field and not the revived Description field, see [23083].
props johnbillion, pavelevap.
fixes #22821 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23135 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 17:11:25 +00:00
Andrew Nacin
f9d1ca1da4
Only unset() after we have confirmed we are not dealing with a WP_Error. props DH-Shredder. fixes #22824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23133 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-09 17:02:22 +00:00
Andrew Nacin
26bb121ddf
3.5-RC5
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23131 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 23:01:31 +00:00
bumpbot
168fdca8e2
Compress scripts/styles: 3.5-RC4-23127.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23127 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 21:00:25 +00:00
Daryl Koopersmith
c5eee310f4
Trailing commas make IE7 cry. fixes #22819 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23124 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 20:42:10 +00:00
Andrew Nacin
8198998a83
Ensure [23122] gets parsed as context. props TobiasBg. fixes #22808 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23123 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 18:50:16 +00:00
Andrew Nacin
53f230b982
Update fullscreen/DFW's "Text" tab to match the string context used for the editor Text tab. Not a string change. props pavelevap, fixes #22808 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23122 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 18:36:15 +00:00
bumpbot
be03cb514b
Compress scripts/styles: 3.5-RC4-23121. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23121 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:41:16 +00:00
Andrew Nacin
66f1a19089
Add a sane, inclusive HTML element/attribute schema to TinyMCE.
...
TinyMCE 3.4.x (shipped with WordPress 3.4.x) had an HTML4-based schema definition, with HTML5 elements added to it. TinyMCE 3.5.x (shipping, again coincidentally, with WordPress 3.5) allows for HTML5 schema support, which also provides for full HTML5 attribute support. The problem is its HTML5 schema excludes all HTML4 elements and attributes that were dropped in the HTML5 spec, which is unacceptable behavior.
This "duck punch" of TinyMCE's Schema.js file creates a new, sane schema. It is TinyMCE's HTML4 and HTML5 schema definitions recursively merged.
Objects are not whitelisted in either schema to allow for embed elements as child nodes, so object, param, and embed remain separately whitelisted in the WordPress TinyMCE plugin. Our attempts to add other attributes in said plugin is now superceded.
props koopersmith, azaozz.
fixes #22790 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23120 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:26:25 +00:00
Andrew Nacin
35edf3665d
Add TinyMCE 3.5.8's Schema.js file in preparation for monkey patching it. see #22790 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23119 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:12:51 +00:00
Daryl Koopersmith
c2ad016631
Ensure iframes in the media modal on the frontend have no borders. props nacin. fixes #22804 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23118 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 10:27:07 +00:00
Ryan Boren
9575d68a6a
Make current_user_can_for_blog() safe to run single site.
...
Props nacin, MarkJaquith
fixes #22803
git-svn-id: https://develop.svn.wordpress.org/trunk@23117 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 09:53:27 +00:00
bumpbot
77d453ddea
Compress scripts/styles: 3.5-RC4-23115.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23115 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 01:15:44 +00:00
Andrew Nacin
844c3f322d
Remove trailing comma from JS. props koopersmith, fixes #22800 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23114 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 01:13:04 +00:00
bumpbot
412a605ecf
Compress scripts/styles: 3.5-RC4-23113. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23113 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 00:07:33 +00:00
Ryan Boren
ce2720984b
Extend allowed elements for object and embed.
...
Props azaozz
fixes #22790
git-svn-id: https://develop.svn.wordpress.org/trunk@23112 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 00:05:54 +00:00
bumpbot
01259734c2
Compress scripts/styles: 3.5-RC4-23111.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23111 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 23:17:49 +00:00
Ryan Boren
a0a13a3fc4
When inserting from URL in the media modal, retain query params and properly insert the caption code.
...
Props koopersmith
fixes #22796
git-svn-id: https://develop.svn.wordpress.org/trunk@23110 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 23:12:59 +00:00
Andrew Nacin
a3222c1926
3.5-RC4.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23108 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 09:45:32 +00:00
Andrew Nacin
2583123273
Use $current_site->path instead of $base in wpmu_validate_blog_signup(), as $base is now dead. props MarkJaquith. fixes #22787 . see #19796 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23107 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 09:43:52 +00:00
Andrew Nacin
24027fdcd7
A neditor is a curious multi-celled organism found deep in the Content Management System "WordPress". It generally subsides on good content. It has an obsession with retina-quality graphical elements, and also has a strong affinity for puns. Occasionally, ACCIDENTAL CAPS LOCK occurs. Some organisms carry British accents; these are prone to changing state but then reverting to their previous state soon after. One has shown superior sleuthing abilities, despite having hardly left its Uni laboratory. Organisms from Australia are usually found deeper in the Content Management System, most of its energy spent on locomotion.
...
The attitude of a neditor is best described as cranky optimism. Younger organisms are more eager, but quickly tire after working on little sleep. They eventually evolve into the cranky optimism stage in a process that generally takes three to five months.
git-svn-id: https://develop.svn.wordpress.org/trunk@23105 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 09:01:11 +00:00
bumpbot
789be95446
Compress scripts/styles: 3.5-RC3-23104.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23104 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 08:13:44 +00:00
Andrew Nacin
2413f5f58e
Image editors: After cropping, request new sizes from the image. If we rely on the values passed in, they may be floats. We must see what the image results in.
...
Cast in update_size() for sanity.
props DH-Shredder.
fixes #22779 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23103 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 07:56:04 +00:00
Andrew Nacin
b540525589
Break wp_print_media_templates() into wp-includes/media-template.php and lazy-load that file through wp_enqueue_media(). fixes #22778 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23101 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 07:10:20 +00:00
Andrew Nacin
3403c1d157
Properly apply CSS and an ID attribute to the select files container. props koopersmith. fixes #22780 . see #22762 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23100 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 07:00:41 +00:00
bumpbot
66f7523e43
Compress scripts/styles: 3.5-RC3-23099.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23099 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:58:33 +00:00
Andrew Nacin
b186d63721
Media: When the attachment details view changes to another view or attachment, save compat fields on destroy. (We already do this for non-compat fields.) props koopersmith. fixes #22776 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23098 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:56:06 +00:00
Mark Jaquith
affd3a9a98
Remove the "Describe this ___" string on captions in the attachment details view. WP <3 patches with net red. props helenyhou. fixes #22777
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23097 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:35:13 +00:00
Mark Jaquith
6247c1289c
Present the correct downsized image dimensions in the Media modal when inserting. Introduces a context parameter for image_constrain_size_for_editor() instead of relying on is_admin(). props jond3r, nacin. fixes #22738
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23096 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:25:39 +00:00
Mark Jaquith
e0f5f47c57
Add the ability to click "Edit" and kick out to the advanced image editor from within the Media modal. New window, with "Refresh" offered on your return. fixes #22743 . props koopersmith, nacin, helenyhou.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23095 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:52:19 +00:00
bumpbot
40dad409f4
Compress scripts/styles: 3.5-RC3-23093.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23093 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:26:39 +00:00
Daryl Koopersmith
a4f2112fd3
Add a canonical location for media frames, an alias to fetch attachments, and frame caching to custom header. fixes #22775 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23092 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:06:49 +00:00
bumpbot
21f933625f
Compress scripts/styles: 3.5-RC3-23091. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23091 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 04:58:34 +00:00
Andrew Ozz
b0cd25962e
Upgrade to TinyMCE 3.5.8, fixes #22755
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23090 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 04:50:31 +00:00
Mark Jaquith
d801545ff6
New method of managing media selections. There is now a "master" selection in the background. props koopersmith. fixes #22725
...
* This especially helps when you switch between insert/gallery and have non-images selected (as galleries don't support non-images).
* The views now act as filters on the "master" selection, instead of having their own selections that get passed around.
git-svn-id: https://develop.svn.wordpress.org/trunk@23089 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:55:37 +00:00
Andrew Nacin
dc3a34b19b
Restore captions for non-image attachments. see #22759 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23087 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:36:17 +00:00
Daryl Koopersmith
977deb7d63
Do not alter the body's overflow attribute when the media modal is opened. Fix image insertion in the visual editor in Firefox. props azaozz. fixes #22765 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23085 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:15:39 +00:00
bumpbot
2255750962
Compress scripts/styles: 3.5-RC3-23084.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23084 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 00:42:44 +00:00
Andrew Nacin
1cc12103f5
Restore the Description field to the media UI in 3.5.
...
We tried in vain -- a noble but ultimately failed effort -- to reduce the number of fields for attachments from four (title, caption, alt, description) to one (caption for images, title otherwise). Alternative text needed to stay for accessibility reasons, of course.
Eventually title returned due to heavy plugin reliance. Description is too used by too many plugins (often times incorrectly -- the caption is more likely the proper field), hence its less-than-triumphant return today.
Version 3.5 has tried to streamline media in a number of ways. Removing fields may have been too much at once, as it forced not only a user interface change, but a paradigm change as well.
Finally, on upload we populate the description field with IPTC/EXIF captions, rather than the caption field. See #22768 , this should be fixed. For now, Description stays.
This commit also restores 'Title' attribute editing to the main tab of the Edit Image dialog. The "Title" field no longer populates title attributes for <img> tags by design (for accessibility and other purposes, see #18984 ). So, here is a more obvious 'workaround' for the tooltip community.
Finally, this:
* Cleans up the post.php attachment editor, including by showing a prettier form of the mime type.
* Enables plugins to specifically hide attachment_fields_to_edit from either post.php (where you can create meta boxes) or the modal (which you may not want to clutter), for compatibility reasons.
* Hides the 'Describe this file...' placeholder when a field is read-only in the modal.
props nacin, helenyhou.
fixes #22759 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23083 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 00:41:06 +00:00
bumpbot
bee0035c66
Compress scripts/styles: 3.5-RC3-23080.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23080 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 21:22:59 +00:00
Ryan Boren
f549a8baa6
Fix uploads in IE9
...
Props koopersmith
fixes #22762
git-svn-id: https://develop.svn.wordpress.org/trunk@23079 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 21:21:17 +00:00
bumpbot
c936792bbb
Compress scripts/styles: 3.5-RC3-23078.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23078 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:22:54 +00:00
Andrew Nacin
167db2d9da
Media: Account for the most obvious and common style conflicts that may occur when the media modal is loaded on the frontend. Tested primarily with P2. props lessbloat, helenyhou. fixes #22752 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23077 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:15:40 +00:00
Andrew Nacin
0d7c64c9fd
Media: Final names for the actions in the dialog sidebar: "Insert from URL" and "Set Featured Image" to go with "Insert Media" and "Create Gallery".
...
Longer strings (such as a translation) looks excellent when it wraps to another line.
props markjaquith, fixes #22753 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23076 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:07:48 +00:00
Andrew Nacin
bdba526d83
Media: Use '%d selected' for the selection string, and offer a comment to translators to help them find a workable solution with this would-be plural string. fixes #22749 . see #22229 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23075 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:03:38 +00:00
Andrew Nacin
b2bafcca6a
Script loader: Chunk the script names as passed to load-scripts.php into 128-character pieces. Avoids hitting a limit for the length of a single variable, such as suhosin.get.max_value_length which defaults to 512. fixes #22757 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23074 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 18:57:56 +00:00
bumpbot
c3b88709fd
Compress scripts/styles: 3.5-RC3-23073.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23073 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 10:58:32 +00:00
Mark Jaquith
92793b6ec2
Intelligently make media fields readonly when the user cannot update or do anything with them. props koopersmith, helenyhou, nacin. fixes #22613
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23072 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 10:29:24 +00:00
Mark Jaquith
c2f15bc83b
Better responsive breakpoints for the Gallery editing screen. props koopersmith. fixes #22741
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23071 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 10:15:42 +00:00
Mark Jaquith
d767e74ae9
Implement tabbing between fields in the media modal. props lessbloat, koopersmith. fixes #22659
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23070 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:57:58 +00:00
Mark Jaquith
81bdf1b5d1
When setting the featured image from the dedicated meta box, only show the featured image section in the media chooser. props koopersmith. fixes #22731
...
* Less distracting
* Some of these sections won't apply for CPTs without an editor
git-svn-id: https://develop.svn.wordpress.org/trunk@23069 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:43:10 +00:00
Mark Jaquith
189d4da5de
Fix the "Uploaded to this post" filter in the "Add to gallery" state. fixes #22723
...
Also, use "images" wording instead of generic "media items" when in a gallery (images-only) context. fixes #22722
Both are props koopersmith
git-svn-id: https://develop.svn.wordpress.org/trunk@23068 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:25:17 +00:00
Mark Jaquith
aabaa0fb8e
Use data on the ui.item to transport the original Sortable index for the update() function. This way extensions can set/access this info in their own custom Sortable functions. see #22696
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23067 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:04:19 +00:00
bumpbot
fc3c9a8004
Compress scripts/styles: 3.5-RC3-23066.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23066 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:58:33 +00:00
Ryan Boren
86203fa6bf
Clear the From URL view in the media modal after inserting an image. Improve button enable checks.
...
Props koopersmith
fixes #22740
git-svn-id: https://develop.svn.wordpress.org/trunk@23065 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:43:51 +00:00
Mark Jaquith
4413c9514b
Allow a sortable options hash to be passed in, so you can override the defaults. props koopersmith. see #22696
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23064 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:11:49 +00:00
Andrew Nacin
548e695750
Media: Sidebar labels should be display block. Prevents wonkiness like inputs disappearing because Chrome no like you. props helenyhou. fixes #22721 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23063 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:06:45 +00:00
bumpbot
f0a90a66cb
Compress scripts/styles: 3.5-RC3-23062.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23062 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 03:30:48 +00:00
Andrew Nacin
f79847866e
Media IE7 fixes. props azaozz, lessbloat. fixes #22732 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23061 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 03:15:53 +00:00
bumpbot
6b81fd778d
Compress scripts/styles: 3.5-RC3-23059.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23059 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 02:58:34 +00:00
Andrew Nacin
bc8f994e7b
Media models: Trac and ignore deleted attachments.
...
Treat an admin-ajax response of 1 as successful for backwards compatibility with existing handlers.
props koopersmith. fixes #22750 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23057 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 02:31:41 +00:00
Andrew Nacin
01e7e10bf7
Media: Don't try to resize the bottom selection UI. props koopersmith. fixes #22748 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23056 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 01:38:44 +00:00
Andrew Nacin
426eb50936
Fix inserting of multiple attachments with captions when the first attachment does not have a caption. props azaozz. fixes #22720 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23055 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:59:25 +00:00
bumpbot
25337c050c
Compress scripts/styles: 3.5-RC3-23054.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23054 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:58:31 +00:00
Daryl Koopersmith
eae68af55c
Toggle display of plupload overlays when the select files button is hidden. see #22732 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23053 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:45:21 +00:00
Andrew Nacin
f824b1a921
Minimum heights for the media modal to prevent it from scrunching up on tiny devices. (Panning is better.) props helenyhou. fixes #22747 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23052 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:40:13 +00:00
Andrew Nacin
3fd91ed4cf
Media: Return to the library when the editing a selection and all items get de-selected. props koopersmith. fixes #22715 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23051 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:22:11 +00:00
Andrew Nacin
d2ed0a5401
Media views: Better checkbox positioning. props helenyhou. fixes #22724 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23049 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 23:56:37 +00:00
Ryan Boren
e13e333569
When inserting an image From URL, show the fields only if it looks like we have a valid image.
...
Props koopersmith
fixes #22740
git-svn-id: https://develop.svn.wordpress.org/trunk@23048 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 23:07:41 +00:00
bumpbot
2e35cea2fa
Compress scripts/styles: 3.5-RC3-23047. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23047 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:44:27 +00:00
Ryan Boren
52b234de11
When deleting an image in the editor with the delete or backspace keys, hide the edit and delete popup buttons.
...
Props azaozz, lessbloat
fixes #22717
git-svn-id: https://develop.svn.wordpress.org/trunk@23046 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:42:26 +00:00
Ryan Boren
b5fdf3753f
In the media modal, clear attachment details when clearing the selection.
...
Props koopersmith
fixes #22718
git-svn-id: https://develop.svn.wordpress.org/trunk@23045 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:19:08 +00:00
bumpbot
db2e7dc099
Compress scripts/styles: 3.5-RC3-23043.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23043 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 20:58:33 +00:00
Andrew Nacin
d1c428faed
Media: When doing a multiple-insert into the editor, separate each inserted item with two line breaks. props tar.gz. see #22720 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23042 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 20:52:58 +00:00
Andrew Nacin
6d580e34db
When adding images to a gallery, use "Images" as the filter name, rather than "All media items". props koopersmith. fixes #22722 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23041 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 20:51:37 +00:00
bumpbot
60b3adaa09
Compress scripts/styles: 3.5-RC3-23040.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23040 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:56:16 +00:00
Andrew Ozz
4f4e7e5cec
RTL: properly align the demo image in the Edit Image popup, props nacin, fixes #22733
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23039 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:51:35 +00:00
Andrew Nacin
a033ad1ab2
Image editor doc fixes. props DH-Shredder. see #6821 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23038 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:42:28 +00:00
Andrew Nacin
0fa07588c5
Media: Properly select the select element's option in the attachment display settings. props koopersmith. fixes #22693 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23037 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:38:16 +00:00
Andrew Nacin
39049254ae
Move utils.js (cookie and user setting functions) to wp-includes to enable front-end use.
...
Make it a dependency of media-views (and therefore media-editor). Move its userSettings JS object from admin-header to being paired with the script in script loader.
see #22730 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23036 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:29:56 +00:00
bumpbot
fde1031744
Compress scripts/styles: 3.5-RC3-23035.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23035 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:58:30 +00:00
Andrew Nacin
34291d7f6c
Media: Fix vertical and horizontal alignment of the gallery "Random" checkbox, and checkbox settings in general. Includes RTL. props koopersmith. fixes #22724 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23034 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:51:27 +00:00
Ryan Boren
7e2df6dc07
Better dropdown select handling.
...
Props cdog, koopersmith
fixes #22693
git-svn-id: https://develop.svn.wordpress.org/trunk@23033 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:50:49 +00:00
Ryan Boren
fa4b718809
Only show Delete in media modal if the user can delete.
...
Props nacin, koopersmith
fixes #22711
git-svn-id: https://develop.svn.wordpress.org/trunk@23032 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:33:51 +00:00
Ryan Boren
eb3dc78a61
Media: Hide "Edit" link in the selection view when it doesn't make sense
...
Props koopersmith, ocean90, nacin
fixes #22713
git-svn-id: https://develop.svn.wordpress.org/trunk@23031 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:23:47 +00:00
bumpbot
d2c09370e1
Compress scripts/styles: 3.5-RC3-23030.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23030 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:13:59 +00:00
Mark Jaquith
0f3c162db6
Fix a Firefox "scroll to bottom" bug when launching the media modal.
...
* Records main document scroll position when launching media modal.
* Restores position when media modal is closed.
* Also locks background document scrolling while media modal is open, preventing inadvertent scrolling there.
props koopersmith. fixes #22716
git-svn-id: https://develop.svn.wordpress.org/trunk@23029 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 17:58:24 +00:00
Mark Jaquith
4241d42dbe
Update toolbars for Embed screen. Fixes JS error. props koopersmith. fixes #22714
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23028 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 17:45:24 +00:00
bumpbot
b33c7c4ea1
Compress scripts/styles: 3.5-RC3-23027.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23027 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:58:32 +00:00
Andrew Nacin
a79e3a9ef4
Move HiDPI block to the bottom of media-views. @media does not provide additional specificity, so the non-retina stuff overrides if the retina rules come first. props lessbloat, fixes #22728 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23026 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:32:06 +00:00
bumpbot
344ddade55
Compress scripts/styles: 3.5-RC3-23025.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23025 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:25:14 +00:00
Andrew Nacin
e961de8af5
Media: Disable 'Insert gallery' and 'Set featured image' if nothing is queued. Converts selection toolbars to use the newer view manager. props koopersmith, fixes #22714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23024 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:21:57 +00:00
Andrew Nacin
d943307e5d
Copy wpspin_light to wp-includes as wpspin.gif. Use it in media views. see #22728 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23023 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:18:53 +00:00
Andrew Nacin
dffb1b36d5
Add context to the 'Random' string. It is now used in two places: gallery order and the links widget. props pavelevap, fixes #22724 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23021 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 14:49:44 +00:00
Andrew Nacin
0c0cc5be09
3.5-RC3
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23020 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 08:31:53 +00:00
bumpbot
e171e1c977
Compress scripts/styles: 3.5-RC2-23018.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23018 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:58:31 +00:00
Andrew Ozz
37d1401f33
5000, not 3000, see #22708
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23017 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:05:08 +00:00
Andrew Ozz
7bc623ca09
Editor: add sanity limit for editor height of 5000px, save only when resizing the Visual or the Text editor, fixes #22708
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23016 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:01:47 +00:00
Mark Jaquith
3c992973bb
Fix a typo in media-views.js that referenced frame.router.get() instead of frame.router. Fixes #22710
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23015 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 05:18:21 +00:00
bumpbot
fbb3a42707
Compress scripts/styles: 3.5-RC2-23013.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23013 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:58:31 +00:00
Ryan Boren
b5ae45fae3
Fix race condition in media insertion where the inserted html is invalid due to output being interleaved.
...
Props koopermsith
fixes #22696
git-svn-id: https://develop.svn.wordpress.org/trunk@23012 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:38:42 +00:00
Andrew Nacin
3864c9848c
Media: Remove four unused strings. props dimadin. fixes #22688 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23011 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:16:56 +00:00
Andrew Nacin
63aa98ed0c
Media: When an image does not have all image sizes available, make sure we insert the requested size into the editor. props koopersmith. fixes #22693 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23008 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:04:45 +00:00
bumpbot
4073eb5ec2
Compress scripts/styles: 3.5-RC2-23007. props koopersmith. :-)
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23007 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:29:58 +00:00
Ryan Boren
00e20a52dc
Final round of media UX improvements.
...
Props koopersmith
fixes #21390 #22502
git-svn-id: https://develop.svn.wordpress.org/trunk@23006 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:26:03 +00:00
Andrew Nacin
b925385ca1
Multisite in a subdirectory: For subdomain installs, use a root admin cookie path, not a wp-admin specific one.
...
This is necessary because, like subdirectory installs, we will have wp-admin accessed at different levels.
fixes #22705 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23005 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 00:51:02 +00:00
bumpbot
8560f370fa
Compress scripts/styles: 3.5-RC2-23003.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23003 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 22:29:01 +00:00
Ryan Boren
608e95019d
Properly set the base URL for the main site when ms-files rewriting is enabled for MU-era installs.
...
Props nacin
fixes #22702
git-svn-id: https://develop.svn.wordpress.org/trunk@23002 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 22:24:06 +00:00
Ryan Boren
5af1f254e4
No wrap for the attachment Delete Permanently link in the media modal.
...
Props SergeyBiryukov
fixes #22667
git-svn-id: https://develop.svn.wordpress.org/trunk@22998 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 19:49:45 +00:00
Ryan Boren
ecb18ffc05
Increase the PHP memory_limit to WP_MAX_MEMORY_LIMIT in WP_Image_Editor_Imagick.
...
Props DH-Shredder
fixes #22699
git-svn-id: https://develop.svn.wordpress.org/trunk@22997 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 19:44:58 +00:00
Andrew Nacin
4acd3d7db8
Alternative Text, not Alternate Text. props SergeyBiryukov. fixes #21176 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22996 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 19:21:34 +00:00
bumpbot
0a8240a9c4
Compress scripts/styles: 3.5-RC2-22995.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22995 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 08:09:10 +00:00
Ryan Boren
71d333f660
In the QuickPress media modal, use the new post id when a post is published.
...
Props nacin, koopersmith
fixes #22673
git-svn-id: https://develop.svn.wordpress.org/trunk@22994 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 07:17:10 +00:00
Ryan Boren
594bbe90df
When settting a featured image, move the currently selected image to the beginning of the library if it doesn't exist within the attachments loaded so far.
...
Props koopersmith
fixes #22494
git-svn-id: https://develop.svn.wordpress.org/trunk@22993 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 07:04:34 +00:00
bumpbot
077dea75f7
Compress scripts/styles: 3.5-RC2-22992.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22992 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:53:58 +00:00
Ryan Boren
7ad3d2410c
Show a spinner when attachment details are saved.
...
Props koopersmith
see #22613
git-svn-id: https://develop.svn.wordpress.org/trunk@22991 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:37:49 +00:00
Ryan Boren
c21e4809c3
Show Select Files button the first time the media modal is opened.
...
Props koopermsith
fixes #22691
git-svn-id: https://develop.svn.wordpress.org/trunk@22990 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:32:25 +00:00
Andrew Nacin
8adec7a437
Do not save an initial revision for a post created through the auto-draft mechanism. Prevents a bogus revision, often with the title 'Auto Draft'. Restores pre-auto-draft behavior made obvious by XML-RPC's implementation of both auto-drafts and the subsequent wp.getRevisions method. fixes #22687 . see #22686 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22989 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:28:28 +00:00
bumpbot
c164b8e2c4
Compress scripts/styles: 3.5-RC2-22988.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22988 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:42:30 +00:00
Ryan Boren
9cdc4de444
Add random and reverse sorting options to gallery settings.
...
Props koopersmith
fixes #22637
git-svn-id: https://develop.svn.wordpress.org/trunk@22987 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:32:25 +00:00
Andrew Nacin
a347195dca
In Firefox, style placeholder text a dark gray since the browser doesn't do it for us. props helenyhou, fixes #22689 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22986 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:17:23 +00:00
Andrew Nacin
6b0e365fc0
Media: Don't add menu_order to newly uploaded attachments, to match 3.4 behavior. Reverts a bit of [22967]. props koopersmith. fixes #22607 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22985 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:54:03 +00:00
Ryan Boren
558d134c6b
Update gallery editing to work with the modal changes. Add nice handling for default states.
...
Props koopersmith
see #21776
git-svn-id: https://develop.svn.wordpress.org/trunk@22984 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:38:10 +00:00
Andrew Nacin
86a0b9ad45
Media: Prevent the compat view from wrapping around the attachment details. Allow the filename to break-word. props koopersmith, SergeyBiryukov. fixes #22667 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22983 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:15:32 +00:00
Andrew Nacin
f88b538001
Bring Featured Images back into the main media dialog.
...
Most users don't realize that the Featured Image meta box exists; if they do, few use it.
Restores the old meta box UI, including the admin_post_thumbnail_html filter. If a plugin is using _wp_post_thumbnail_html() in conjunction with Thickbox elsewhere, it will also magically still work.
Specific underlying changes:
* Converts the modal view to use the view manager, which means that a call to open() will automatically call render and attach if necessary.
* Doesn't automatically set a state in wp.media, to allow code to customize the states to be added before activation.
props koopersmith.
fixes #21776 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22979 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:38:10 +00:00
Daryl Koopersmith
8a6d1c5b89
Prevent small thumbnails from being upscaled. props helenyhou. fixes #22681 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22978 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 00:42:26 +00:00
Andrew Nacin
8cd2af059b
Media templates: Make sure we have a width and height before printing dimensions. We don't calculate dimensions for icons. fixes #22680 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22976 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 21:53:45 +00:00
bumpbot
30066d6553
Compress scripts/styles: 3.5-RC2-22975.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22975 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 19:49:31 +00:00
Andrew Nacin
a83710408f
`wp.media` instead of just `media`. props alexkingorg, see #22676 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22974 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 19:24:22 +00:00
bumpbot
23f78b14df
Compress scripts/styles: 3.5-RC2-22973.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22973 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:57:38 +00:00
Andrew Nacin
5c611cde9d
Use wp.media, not media, in media-editor.js. see #22676 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22972 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:55:58 +00:00
bumpbot
dff51dff56
Compress scripts/styles: 3.5-RC2-22971.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22971 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:50:10 +00:00
Andrew Nacin
f2b9e1a090
SimplePie: Return nothing and throw an error in SimplePie_Sanitize when DOMDocument is disabled.
...
Note that when SimplePie is used through the WordPress fetch_feed() function, we use kses rather than SimplePie_Sanitize, which removes the dependency on DOMDocument. This change is only for plugins using SimplePie directly.
props rmccue. fixes #21990 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22970 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:43:12 +00:00
Andrew Nacin
1839a359b9
Add wp_enqueue_media action to the function of the same name. props koopersmith, fixes #22678 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22969 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:33:20 +00:00
Andrew Nacin
7d0efc4012
Avoid leaking the 'media' var into the global JS namespace. props koopersmith, fixes #22676 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22968 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:32:47 +00:00
Andrew Nacin
d8e714d6e3
Allow the 'Uploaded to this post' view to be sorted, saving the resulting order as menu_order.
...
This functionality is designed to be backwards compatible with manual querying for attachments by menu_order.
props koopersmith.
see #22607 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22967 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:06:31 +00:00
bumpbot
976342549d
Compress scripts/styles: 3.5-RC2-22966.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22966 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 04:35:23 +00:00
Ryan Boren
14bd848ee5
In the media modal, show the Link To: url.
...
Props nacin
fixes #22662
git-svn-id: https://develop.svn.wordpress.org/trunk@22965 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 00:43:08 +00:00
bumpbot
5a1ca22cca
Compress scripts/styles: 3.5-RC2-22961.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22961 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 02:56:11 +00:00
Ryan Boren
f9b0b72ffc
Responsive and RTL css improvements or the media modal.
...
Props ocean90, koopersmith
see #22615
git-svn-id: https://develop.svn.wordpress.org/trunk@22960 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 02:53:53 +00:00
Andrew Nacin
229c5c9be3
Media: Add -webkit-overflow-scrolling for a smoother mobile/iOS experience.
...
props koopersmith.
fixes #22657 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22959 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 01:44:15 +00:00
bumpbot
ce238d39ef
Compress scripts/styles: 3.5-RC2-22958.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22958 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 17:41:19 +00:00
Ryan Boren
0996e3d153
Resolve race conditions in Attachments.more().
...
Props koopersmith
fixes #22656
git-svn-id: https://develop.svn.wordpress.org/trunk@22957 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 16:45:43 +00:00
Ryan Boren
303f2bd2ff
Resolve race conditions in Attachments.more(). Provides for smoother refreshes when searching and properly cleans out content components.
...
Props koopersmith
fixes #22656
git-svn-id: https://develop.svn.wordpress.org/trunk@22956 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 16:41:38 +00:00
bumpbot
b80e435481
Compress scripts/styles: 3.5-RC2-22955.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22955 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:54:16 +00:00
Ryan Boren
780c0ec85b
Properly pass WordPress uploading errors to wp.Uploader.
...
Props koopersmith
fixes #22655
git-svn-id: https://develop.svn.wordpress.org/trunk@22954 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:40:09 +00:00
bumpbot
98d7fb5e28
Compress scripts/styles: 3.5-RC2-22953. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22953 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:20:51 +00:00
Ryan Boren
06b9663f58
Refine media state machine methods.
...
* state( id ) becomes setState( id )
* get( id ) becomes state( id )
* state() stays the same
* previous() becomes lastState()
Props koopersmith
fixes #22652
git-svn-id: https://develop.svn.wordpress.org/trunk@22952 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:19:11 +00:00
Ryan Boren
d7ec10376b
Update the "Uploaded to this post" filter view when uploading new files.
...
* Add an Attachments collection filter for uploadedTo (post_parent).
* Correct an erroneous map from the non-existent parent prop to post_parent.
* Define default menuOrder and uploadedTo props for uploading attachments.
* Unify filterable props into a single method (improving validation performance for calls to set with multiple properties).
Props koopersmith
fixes #22654
git-svn-id: https://develop.svn.wordpress.org/trunk@22951 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:11:44 +00:00
bumpbot
74f9eabbd0
Compress scripts/styles: 3.5-RC2-22949.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22949 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:52:16 +00:00
Ryan Boren
c53137f535
Scope button classes so they can be used on the frontend without interfering with theme styles.
...
Props helenyhou, koopersmith
fixes #22644
git-svn-id: https://develop.svn.wordpress.org/trunk@22948 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:40:59 +00:00
Ryan Boren
5178ac86cb
RTL fixes for media and color picker.
...
Props ocean90
see #22453
git-svn-id: https://develop.svn.wordpress.org/trunk@22947 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:34:16 +00:00
Andrew Nacin
be096cf4a5
Pressing escape now closes the media modal. props koopersmith, see #22502 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22946 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 08:37:17 +00:00
Ryan Boren
17622c2daa
Improve switching between browser and upload state.
...
Props koopersmith
fixes #22628
git-svn-id: https://develop.svn.wordpress.org/trunk@22945 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 06:01:47 +00:00
bumpbot
020dfbc71a
Compress scripts/styles: 3.5-RC2-22944.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22944 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 05:39:13 +00:00
Ryan Boren
870250e617
Correctly insert images at caret position in IE8/7.
...
Props lessbloat
fixes #22638
git-svn-id: https://develop.svn.wordpress.org/trunk@22943 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 04:54:09 +00:00
Ryan Boren
e746a5dbb5
In the edit image modal, move Title to the advanced section and move Caption above Alt.
...
Props nacin
fixes #22646
git-svn-id: https://develop.svn.wordpress.org/trunk@22942 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 04:09:17 +00:00
Ryan Boren
d34177f831
Remove focus outline from admin bar elements.
...
Props azaozz, lessbloat, dllh
fixes #22643
git-svn-id: https://develop.svn.wordpress.org/trunk@22941 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:29:36 +00:00
Ryan Boren
405868616c
ImageOptim for uplaoder icons. see #22610
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22940 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:18:07 +00:00
Ryan Boren
b44ab8213f
Fix image alignment of the remove (X) icons in the media modal.
...
Props JerrySarcastic
fixes #22610
git-svn-id: https://develop.svn.wordpress.org/trunk@22939 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:17:14 +00:00
Ryan Boren
6b972a4c53
In the media modal, ensure modal events are always fired on its frame. This ensures restoreThickbox() and thus tbRemove() are called properly when clicking the close button of the modal.
...
Props koopersmith
fixes #22632
git-svn-id: https://develop.svn.wordpress.org/trunk@22938 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 01:55:37 +00:00
Ryan Boren
3c145e0d49
In the add media modal, fallback back to caption if alt is not set. Falback to title if neither caption nor alt are set.
...
Props koopersmith
see #18984
git-svn-id: https://develop.svn.wordpress.org/trunk@22937 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 01:38:41 +00:00
Ryan Boren
cdce6a366e
Introduce API to add back the description field in the new media popup.
...
Props nacin
fixes #22642
git-svn-id: https://develop.svn.wordpress.org/trunk@22929 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 23:52:30 +00:00
bumpbot
a792f59b19
Compress scripts/styles: 3.5-RC2-22928.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22928 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 22:09:26 +00:00
Andrew Nacin
5c0e068d3f
Send the alt attribute when sending attachments to the editor. fixes #22640 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22927 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 21:23:55 +00:00
Andrew Nacin
4a91b43ab2
3.5-RC2.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22926 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 19:31:56 +00:00
bumpbot
990f02a136
Compress scripts/styles: 3.5-RC1-22924.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22924 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 17:00:38 +00:00
Ryan Boren
6fbf7fcfbf
Revert accidental bits from r22919. see #22628
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22923 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:58:08 +00:00
bumpbot
972a3b7e43
Compress scripts/styles: 3.5-RC1-22922.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22922 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:17:06 +00:00
Ryan Boren
a26c25a8bc
Map the create_posts post type cap to upload_files for attachments.
...
Props nacin
fixes #16714
git-svn-id: https://develop.svn.wordpress.org/trunk@22921 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:14:07 +00:00
Ryan Boren
49b230b82a
Icons for select, deselect, and window close in the media modal.
...
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610
git-svn-id: https://develop.svn.wordpress.org/trunk@22920 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 14:36:12 +00:00
Ryan Boren
3ad110f078
Icons for select, deselect, and window close in the media modal.
...
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610
git-svn-id: https://develop.svn.wordpress.org/trunk@22919 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 13:33:57 +00:00
Andrew Nacin
3861f2bd9e
Update TinyMCE Spellchecker plugin to 2.0.6.1.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22917 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:45:16 +00:00
Andrew Nacin
caa083d2b4
Remove XML-RPC's blogger::getTemplate and setTemplate. They are not supported and do nothing.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22914 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:35:39 +00:00
bumpbot
de104a1ea6
Compress scripts/styles: 3.5-RC1-22913.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22913 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 01:37:15 +00:00
Ryan Boren
5c04a9daef
In the gallery editor, don't stomp on custom shortcode attributes.
...
Props koopersmith
fixes #22627
git-svn-id: https://develop.svn.wordpress.org/trunk@22912 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 01:06:21 +00:00
Ryan Boren
c8abb2071b
In wp_list_bookmarks(), don't stomp the categorize argument. Fixes categorized display in the links widget.
...
fixes #22216
git-svn-id: https://develop.svn.wordpress.org/trunk@22910 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 23:19:03 +00:00
bumpbot
0e62b927c3
Compress scripts/styles: 3.5-RC1-22909.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22909 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:58:34 +00:00
Andrew Nacin
5aac5cb3de
Use the create_posts post type cap in more places. Remove the janky create_posts meta cap. see #16714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22908 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:28:20 +00:00
Ryan Boren
4e51b43ad3
Media modal: Don't fire two AJAX calls on settings update.
...
Props koopersmith
fixes #22611
git-svn-id: https://develop.svn.wordpress.org/trunk@22907 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:27:13 +00:00
Andrew Ozz
f2c4ad72d6
Media in Internet Explorer: ensure we save the caret bookmark for IE in TinyMCE for the right instance, fixes #22446
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22905 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 21:45:10 +00:00
Andrew Nacin
c121dfb0fc
Explicitly check for version 2.2.0 or higher of the Imagick PHP module, to ensure we can call queryFormats() statically. props DH-Shredder, fixes #22308 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22904 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 21:41:44 +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
bumpbot
8925a2cf34
Compress scripts/styles: 3.5-RC1-22901.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22901 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 18:58:34 +00:00
Andrew Nacin
b60b857268
Use create_posts whenever linking to post-new.php. props johnbillion. fixes #16714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22900 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 18:24:11 +00:00
Andrew Nacin
2520705252
Media: Rename the dialog to 'Add Media' from 'Insert Media' to match the button. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22895 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 17:18:50 +00:00
Andrew Nacin
d6f636d353
Some IE7 CSS hacks for media to fix the gallery view. props lessbloat. fixes #22609 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22894 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 17:17:43 +00:00
bumpbot
e1b8f42f4d
Compress scripts/styles: 3.5-RC1-22893.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22893 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 04:58:34 +00:00
Andrew Nacin
af63ca6803
Check if the object is empty, as objects are always truthy. props koopersmith. see #22593 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22892 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 04:41:24 +00:00
Andrew Nacin
82622db77e
In the gallery shortcode, handle mapping of "ids" to include and orderby before the post_gallery filter. see #21816 . fixes #22617 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22891 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 03:51:27 +00:00
bumpbot
19e522e83b
Compress scripts/styles: 3.5-RC1-22890.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22890 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:33:43 +00:00
Andrew Nacin
0cebbfe3e6
Media: Remove the link to the browser uploader. The only need for it is large files (> 100MB) in certain browsers (IE, Opera), so we will show the link then only. fixes #22604 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22889 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:28:10 +00:00
Andrew Nacin
99845d0384
Ensure attachment modal details are saved before the attachment details view is destroyed. props koopersmith. fixes #22593 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22888 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:03:31 +00:00
Daryl Koopersmith
2422ab4b83
Responsive CSS for the media modal. props azaozz. see #22615 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22887 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:51:15 +00:00
Ryan Boren
c5c74b7a39
Scope media views CSS fallbacks.
...
Props koopersmith
fixes #22616
git-svn-id: https://develop.svn.wordpress.org/trunk@22886 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:45:06 +00:00
bumpbot
a5d63fdb91
Compress scripts/styles: 3.5-RC1-22885. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22885 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 00:58:44 +00:00
Andrew Nacin
6b911fa633
wp_print_media_templates() does not take an argument.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22884 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:50:26 +00:00
Andrew Nacin
92e85f9957
Editor: When hiding gallery/image editing buttons, use Sizzle rather than TinyMCE's internal DOM object. Avoids errors in case the elements do not exist, such as in Press This. props azaozz. fixes #22463 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22883 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:36:07 +00:00
Andrew Nacin
da9ff4451d
When editing a plain, legacy [gallery] shortcode, ensure we are sorting its contents using menu_order.
...
When attachments are sorted, we convert the shortcode to [gallery ids=""], as before.
props koopersmith.
fixes #22608 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22882 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:20:12 +00:00
Andrew Nacin
7ecac8a876
Media: Ensure the edit image and gallery buttons appear above DFW. They only must appear below the media modal. fixes #22541 . props koopersmith.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22881 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:07:41 +00:00
bumpbot
8d72af5bfc
Compress scripts/styles: 3.5-RC1-22879. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22879 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 20:58:37 +00:00
Ryan Boren
bf812ac283
Clear the object term relationships cache in wp_set_object_terms() rather than wp_set_post_terms(). This should be done lower in the stack than wp_set_post_terms().
...
Props batmoo
fixes #22560
git-svn-id: https://develop.svn.wordpress.org/trunk@22878 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:42:38 +00:00
Andrew Nacin
bccdaa137d
Media in Internet Explorer: Properly insert attachments into the editor at the location of the cursor. props azaozz. fixes #22446 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22877 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:24:56 +00:00
Andrew Nacin
3b941ca1b8
Media: IE fixes for attachment selections. props lessbloat. see #22446 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22876 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:14:36 +00:00
Andrew Nacin
7f34c3e8ec
Media: Introduce wp.media.editor.open(editor_id) and leverage it in distraction-free writing (fullscreen). props azaozz, koopersmith. fixes #22541 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22875 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:09:00 +00:00
bumpbot
fad058bf84
Compress scripts/styles: 3.5-RC1-22873.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22873 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:58:37 +00:00
Ryan Boren
d2d01ad797
Always send nocache_headers() for admin-ajax.php. This prevents iOS from caching ajax calls. http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
...
Turn off multi selection uploads for mobile devices. Currently Plupload cannot upload multiple files in iOS Safari. Only the first file makes it to the queue.
Empty wp on unload to work around caching in iOS Safari.
Props azaozz, miqrogroove, nacin
fixes #22552
git-svn-id: https://develop.svn.wordpress.org/trunk@22872 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:17:53 +00:00
Ryan Boren
e0a32fe27b
Fix overflow of long filenames in the media modal.
...
Props koopersmith, GregLone
fixes #22554
git-svn-id: https://develop.svn.wordpress.org/trunk@22870 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:58:47 +00:00
Ryan Boren
6a9c14ed5f
Add a delete link to the media modal.
...
Props merty, nacin, koopersmith
fixes #22524
git-svn-id: https://develop.svn.wordpress.org/trunk@22869 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:50:59 +00:00
Ryan Boren
1f4eed3141
Don't use "embed" when referring to inserting from URL.
...
Props nacin
fixes #22603
git-svn-id: https://develop.svn.wordpress.org/trunk@22868 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:35:36 +00:00
Ryan Boren
b750487b07
Fix dragging in IE10 on touch devices.
...
Props georgestephanis, koopersmith
fixes #22583
git-svn-id: https://develop.svn.wordpress.org/trunk@22866 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:00:00 +00:00
Ryan Boren
b1f07f0ae1
Back compat $_REQUEST['post_id'] for media XHR requests.
...
Props koopersmith, nacin.
fixes #22588
git-svn-id: https://develop.svn.wordpress.org/trunk@22865 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:58:08 +00:00
Ryan Boren
31c86e27c2
Clean up WP_Image_Editor_Imagick::test(). Props DH-Shredder. see #22543
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22864 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:52:24 +00:00
Ryan Boren
8b1ebd858a
In wp_image_editor(), use wp_image_editor_supports() to check for rotation capabilities rather than directly checking the existence of the imagerotate function.
...
In WP_Image_Editor_GD::test(), check for existence of imagerotate if the rotate capability is required.
Props DH-Shredder
fixes #22597
git-svn-id: https://develop.svn.wordpress.org/trunk@22863 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:36:55 +00:00
Andrew Nacin
f7b3d1a854
Make the return of is_upload_space_available() more obvious. props georgestephanis. see #22585 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22861 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 03:42:02 +00:00
bumpbot
91f6658471
Compress scripts/styles: 3.5-RC1-22860. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22860 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:58:50 +00:00
Andrew Nacin
929d79714b
Remove wp_image_editor_class filter. wp_image_editors is sufficient. props scribu. fixes #22538 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22859 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:27:11 +00:00
Andrew Ozz
afb0b8627b
TinyMCE: improve hiding of the image/gallery popup buttons, fix selecting a gallery in IE, don't leave empty paragraph after deleting an image with the popup button, fixes #22463 , see #21390
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22857 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 01:31:51 +00:00
bumpbot
f54c353123
Compress scripts/styles: 3.5-RC1-22852.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22852 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:58:43 +00:00
Ryan Boren
9e26663d18
Rename 'id' to 'state' in menu item view.
...
Props koopersmith
fixes #22594
git-svn-id: https://develop.svn.wordpress.org/trunk@22851 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:49:45 +00:00
Ryan Boren
283e33bd58
Make wp_prepare_attachment_for_js() compatible with plugins that disable all intermediate image sizes (so no images are created on upload), and then create them on the fly using the image_downsize filter (say, with a URL that can dynamically create images on the fly).
...
Props nacin
fixes #22598
git-svn-id: https://develop.svn.wordpress.org/trunk@22850 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:46:56 +00:00
Ryan Boren
40f11fff98
More feature detection in WP_Image_Editor_Imagick::test().
...
Check existence of setIteratorIndex().
Props DH-Shredder, markoheijnen
see #22543
git-svn-id: https://develop.svn.wordpress.org/trunk@22849 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:40:34 +00:00
Ryan Boren
e12621eccb
In wp.media.editor:send, revert back to the old field names used by media_upload_form_handler() for easier back compat.
...
Fix notices in wp_ajax_send_attachment_to_editor().
Props nacin, azaozz, miqrogroove
fixes #22553
git-svn-id: https://develop.svn.wordpress.org/trunk@22847 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:08:50 +00:00
Ryan Boren
7ce1968d15
In media_buttons(), consult global post_ID if get_post() comes up with nothing.
...
Default postID to 0 in wp_enqueue_media().
Props nacin
fixes #22085
git-svn-id: https://develop.svn.wordpress.org/trunk@22846 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:03:37 +00:00
bumpbot
ff8e7a594d
Compress scripts/styles: 3.5-RC1-22844.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22844 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 16:58:36 +00:00
Andrew Nacin
a2eb48c7ab
Media: When inserting an attachment, if the item is unattached (no post_parent), attach it to the post. fixes #22085 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22843 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 16:34:42 +00:00
Ryan Boren
1368fae5b6
Correctly access the nonce to save attachment fields. Fixes firing attachment_fields_to_save.
...
Props koopersmith
fixes #22577
git-svn-id: https://develop.svn.wordpress.org/trunk@22842 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 15:07:36 +00:00
Ryan Boren
65f7674216
Always render the attachment compat view. Assures attachment_fields_to_edit is always fired.
...
Props koopersmith, Chouby
fixes #22578
git-svn-id: https://develop.svn.wordpress.org/trunk@22841 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 15:05:14 +00:00
Ryan Boren
8bf86e30f7
Make is_upload_space_available() available for front end page loads. Fixes fatal error when calling wp_editor() from the front end.
...
Props scribu, itworx
fixes #22585
git-svn-id: https://develop.svn.wordpress.org/trunk@22840 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 14:42:43 +00:00
bumpbot
9dd670c47a
Compress scripts/styles: 3.5-RC1-22839.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22839 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:47:40 +00:00
Andrew Nacin
faca39f74c
Media: Watch more events for input changes to catch paste, autocomplete, etc.
...
Fixes issue where pasting a URL in 'From URL' (via the context menu) did not
enable the insert button, as the event was not yet fired.
props koopersmith.
fixes #22545 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22836 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:35:28 +00:00
Andrew Nacin
9774c85abc
Media: Include the link URL when inserting non-image attachments. props koopersmith. fixes #22544 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22835 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:33:30 +00:00
Daryl Koopersmith
978add32e3
jQuery UI 1.9.2. props ocean90. fixes #22563 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22833 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 01:20:40 +00:00
Daryl Koopersmith
383e24fcfe
Add print_media_templates action to allow custom templates to be added. props ocean90. fixes #22565 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22832 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-25 21:45:30 +00:00
Ryan Boren
7fbcbebc3d
Handle attachments that have an empty mime type or a mime type without a subtype.
...
Props SergeyBiryukov
fixes #22532
git-svn-id: https://develop.svn.wordpress.org/trunk@22830 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-23 16:32:21 +00:00
Andrew Ozz
080b51bfe6
Do not optimize/smush/ImageOptim GIFs. Most are either not reduced in size or reduced only couple of bytes but the optimization messes with the transparency/matte. Fixes #22536 , see #22381
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22829 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 19:08:22 +00:00
Andrew Nacin
1f337b2729
3.5-RC1.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22827 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 13:12:14 +00:00
bumpbot
eb3b795233
Compress scripts/styles: 3.5-beta3-22826.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22826 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:58:32 +00:00
Daryl Koopersmith
f20573509b
Media: Use a full uploader status view in the inline uploader. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22825 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:54:49 +00:00
Daryl Koopersmith
2070f5ca49
Media: Add uploader error detection to the inline uploader view as well. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22824 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:35:05 +00:00
Daryl Koopersmith
e572052ab8
Media: Properly render any pre-existing upload errors in the uploader status. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22823 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:24:54 +00:00
Daryl Koopersmith
6841b73925
Uploader: Display a more specific error message when a file exceeds the file size limit. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22822 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:18:17 +00:00
Daryl Koopersmith
99def3ec51
Media: Make friends with media_upload_form. Adds notices for browser incompatibility, upload limits, maximum file size, and large file issues to the uploader. fixes #22243 , see #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22821 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 11:46:03 +00:00
bumpbot
0c83571904
Compress scripts/styles: 3.5-beta3-22819.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22820 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:58:36 +00:00
Daryl Koopersmith
77ed607d8e
Media: Make the pre-upload-ui hooks share an element with the post-upload-ui hooks. see #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22819 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:57:43 +00:00
Daryl Koopersmith
b007f89d0d
Media: Display WordPress and plupload error messages whenever an upload fails. see #22243 , #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22818 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:56:10 +00:00
Andrew Nacin
f44d1d009e
WP_Image_Editor: the last stand.
...
* Have wp_get_image_editor() rather than WP_Image_Editor::get_instance(). Having static factory methods would be less confusing if there weren't also static methods tied to individual editor implementations.
* Lazy-load the WP_Image_Editor base class and editor implementations.
* Have WP_Image_Editor_GD::supports_mime_type() actually check which types it supports.
* Deprecate gd_edit_image_support() in favor of wp_image_editor_supports().
props DH-Shredder, scribu, markoheijnen. fixes #22356 . see #6821 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22817 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:52:16 +00:00
Daryl Koopersmith
ff6ae18d2d
Media: Add global upload progress to the sidebar. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22816 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:32:21 +00:00
Andrew Nacin
eb6ec0d669
Do SimplePie sanitization with wp_kses_post() rather than DOMDocument, which cannot be guaranteed to be available.
...
Overrides SimplePie_Sanitize with WP_SimplePie_Sanitize_KSES.
props markjaquith, rmccue.
see #21990 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22811 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 07:23:43 +00:00
bumpbot
555235adcf
Compress scripts/styles: 3.5-beta3-22810.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22810 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 06:58:42 +00:00
Daryl Koopersmith
4a99fa363e
Media: Move sidebar from the frame view to the attachment browser view. Prevents juggling sidebar visibility state, and makes managing sidebar contents more reasonable. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22809 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 06:30:25 +00:00
bumpbot
6f9025dbf5
Compress scripts/styles: 3.5-beta3-22808.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22808 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 04:58:35 +00:00
Daryl Koopersmith
0086598c9b
Media: Check to see if we need more attachments when the browser is attached to the DOM. fixes #22480 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22806 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 03:19:08 +00:00
bumpbot
0b59477b3a
Compress scripts/styles: 3.5-beta3-22805.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22805 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 02:58:33 +00:00
Daryl Koopersmith
d4be102ab2
Media: Convert the attachments browser to use internal views. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22804 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 01:43:31 +00:00
bumpbot
a18c3758ce
Compress scripts/styles: 3.5-beta3-22803.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22803 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 00:58:36 +00:00
Daryl Koopersmith
02bd60e532
Media: Make priority list views leverage the subview management class. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22802 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 00:41:39 +00:00
bumpbot
54ae64c4b1
Compress scripts/styles: 3.5-beta3-22801.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22801 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:58:36 +00:00
Jon Cave
749d5a3db7
Set svn:eol-style to native for all the files
...
(Except wp-config-sample.php and a couple of license files)
git-svn-id: https://develop.svn.wordpress.org/trunk@22798 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:31:55 +00:00
Jon Cave
d125854d6b
Remove svn:executable property from SimplePie and jcrop files
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22797 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:18:48 +00:00
Andrew Nacin
2b0d2a17fb
Autosave: Properly convert undefined fields to empty strings. This bug could cause issues if a post type didn't support the title and/or editor. see #22491 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22794 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:04:04 +00:00
bumpbot
94386517ce
Compress scripts/styles: 3.5-beta3-22793.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22793 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:03:21 +00:00
Daryl Koopersmith
95ed1b1a45
Media: Rename PriorityList's add/remove methods to set/unset (to prevent the default remove from being overridden). see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22792 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:43:42 +00:00
Daryl Koopersmith
e99789f504
Media: Refresh the window-wide uploader whenever a state is activated. Properly unbind controller events. fixes #22504 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22791 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:34:46 +00:00
Daryl Koopersmith
bf42e8a402
Media: Make the window-wide uploader a subview of the frame view.
...
Allows the uploader to leverage the ready event to know when it has been attached to the page.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22790 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:27:49 +00:00
Daryl Koopersmith
8be5a507aa
Uploader: Route plupload errors to the correct handler and prevent naming conflicts. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22789 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:17:25 +00:00
Daryl Koopersmith
afa98fa041
Uploader: Correctly trigger error callback. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22788 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:12:02 +00:00
Daryl Koopersmith
6423fba2c4
Media: Make inline uploader use main dispose method. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22787 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 19:54:06 +00:00
Daryl Koopersmith
45f6cf2fb5
Media: Remove unused variable for state attributes. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22786 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 19:21:08 +00:00
Andrew Nacin
cb17ed8006
WP_Theme: If the parent theme is missing, instantiate a WP_Theme object anyway, so it can hold errors.
...
Fixes the installation of parent themes when installing a child theme from WordPress.org.
see #22515 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22784 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:58:19 +00:00
Andrew Nacin
e4759d815d
Support attachment_fields_to_save and attachment_fields_to_edit for attachments going through post.php. see #22186 . see #21391 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22783 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:53:00 +00:00
Daryl Koopersmith
b629757edb
Media: Normalize font sizes, link colors, and other styles. props lessbloat, see #22284 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22782 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:37:52 +00:00
Daryl Koopersmith
8d49ec29d0
Media: Make the upload state a dedicated screen, instead of including its own library view. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22781 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:29:53 +00:00
Daryl Koopersmith
2485bff7a2
Media: Add base form element CSS. props lessbloat. see #22284 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22780 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:00:18 +00:00
Daryl Koopersmith
f8bf1ebec7
Media: Use a more specific class for toolbar buttons. see #22284 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22779 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:50:02 +00:00
Daryl Koopersmith
11699e0567
Media: Make media views dependent on jQuery UI sortable. see #22284 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22776 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:28:14 +00:00
Daryl Koopersmith
d477be2d12
Make jQuery a Backbone dependency. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22775 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:22:13 +00:00
Daryl Koopersmith
fb99782dcd
Media: Move send_to_editor to wp.media.editor.insert to prevent redeclaration.
...
Maintains backwards compatibility by delegating to window.send_to_editor and window.tb_remove if they exist.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22774 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:01:40 +00:00
Daryl Koopersmith
815ad62697
Media: Remove unused link-formatting function from media-editor.js. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22773 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:50:58 +00:00
Daryl Koopersmith
682afd8c19
Media: Remove dead thickbox code from media-editor.js. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22772 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:50:13 +00:00
Daryl Koopersmith
1694382d8d
Media: The media views CSS depends on the button styles. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22771 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:47:55 +00:00
Daryl Koopersmith
8ce1f39c6c
Media: Move the new sections of media-upload.js to media-editor.js to allow the media modal to be used on the front end and prevent dependency conflicts with older themes and plugins. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22770 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:46:32 +00:00
Daryl Koopersmith
9a2033cabc
Media: Backwards compatibility for the many send_to_editor filters. props nacin. see #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22768 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:02:20 +00:00
Andrew Nacin
83087fbddd
Re-align the TinyMCE HiDPI icons. props lessbloat. fixes #22528 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22766 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 15:34:24 +00:00
bumpbot
fe20fc8ccc
Compress scripts/styles: 3.5-beta3-22763.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22763 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:58:31 +00:00
Daryl Koopersmith
5432b5a3f6
Media: Calculate image width and height when embedding images. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22762 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:32:52 +00:00
Daryl Koopersmith
493572fd09
Media: Backwards compatibility for the disable_captions filter. see #22186 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22761 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:27:22 +00:00
Daryl Koopersmith
663dd97aa8
Customizer: Track the link that was used to open the customizer and restore focus on close. props lessbloat. fixes #21283 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22756 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:17:10 +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
bumpbot
9360fd4fa4
Compress scripts/styles: 3.5-beta3-22754.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22754 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:58:33 +00:00
Daryl Koopersmith
6ee49f047f
Media: Ensure Attachments.mirror returns true. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22753 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:53:02 +00:00
Daryl Koopersmith
aa3bfdc808
Media: Remove redundant code.
...
Make the composite gallery library use `mirror` instead of `observe`, as one method now invokes the other. Also, make `mirror` return the attachment collection for chaining.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22750 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:11:38 +00:00
Andrew Nacin
59be9048dd
Stop inserting title attributes for images inserted into the editor by modifying get_image_send_to_editor(), not the generic get_image_tag().
...
see #18984 , [22409].
git-svn-id: https://develop.svn.wordpress.org/trunk@22747 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:50:30 +00:00
Daryl Koopersmith
e9670df395
Media: Make mirroring a collection of attachments a special case of observing a collection of attachments. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22746 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:35:30 +00:00
Daryl Koopersmith
052b765819
Media: Add filters for image-only libraries. see #22514 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22745 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:04:23 +00:00
bumpbot
bc69308164
Compress scripts/styles: 3.5-beta3-22744.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22744 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 10:58:28 +00:00
Daryl Koopersmith
8e6aa60fa4
Media: Dynamically generate attachment filters using get_post_mime_types().
...
Moves `get_post_mime_types()` from `wp-admin/includes/post.php` to `wp-includes/post.php`.
fixes #22514 , see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22743 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 10:18:59 +00:00
Daryl Koopersmith
27515780f6
Media: Remove debug cruft. props ocean90. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22741 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 09:28:58 +00:00
bumpbot
ba3fbd26bd
Compress scripts/styles: 3.5-beta3-22740.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22740 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:58:30 +00:00
Daryl Koopersmith
04cc69db01
Media: Ensure icons stay within the bounds of their surrounding view. fixes #22522 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22739 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:44:22 +00:00
Daryl Koopersmith
555141ebe4
Media: Dropping images on the edit gallery view will automatically add those images to the gallery. fixes #22521 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22738 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:17:45 +00:00
Daryl Koopersmith
6a9778959c
Media: Prevent type and search attachments filters from short circuiting.
...
Moves the reference to the source collection out of the props model. If it was translated over to a query (which was potentially possible) which then fired an ajax request, jQuery would attempt to serialize an object recursively, which caused an infinite loop and much sadness for my browser.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22737 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:09:28 +00:00
Mark Jaquith
961a962a3c
Remove trailing slashes from UPLOADS before trying a str_replace() in wp_upload_dir(). props jbrinley. fixes #22469
...
* In 3.4.x, both $url and UPLOADS had trailing slashes
* Due to refactoring, $url is no longer expected to have a trailing slash
* Because of the mismatch, the str_replace() was not working, resulting in an incorrectly verbose upload dir URL
git-svn-id: https://develop.svn.wordpress.org/trunk@22736 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 07:08:38 +00:00
Andrew Nacin
db7dc96921
Media: For pages, use 'Insert into page' rather than 'Insert into post'.
...
Custom post types can use the media_view_strings filter. No new post type "labels" for now.
see #22712 . see #21092 (and #19696 ).
git-svn-id: https://develop.svn.wordpress.org/trunk@22735 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 23:22:03 +00:00
bumpbot
265d65f0fd
Compress scripts/styles: 3.5-beta3-22734.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22734 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:58:28 +00:00
Daryl Koopersmith
a0dca55d03
Media: Set a max width on select elements in the sidebar. fixes #22517 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22733 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:51:35 +00:00
Andrew Ozz
b254457b19
Skip To links: visually hide by only setting top: -1000em; (this should make them work well in all screen readers), fixes #21312
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22730 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 21:14:49 +00:00
bumpbot
f633a3aeff
Compress scripts/styles: 3.5-beta3-22729.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22729 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:58:28 +00:00
Andrew Ozz
68be504421
Toolbar: sync jQuery and non-jQuery JS behaviour when there's a hash in the url, props tlovett1, fixes #22520
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22728 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:45:03 +00:00
Andrew Nacin
6b22cbcbc7
Use standard link colors with the skip links. see #21310 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22727 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:25:54 +00:00
Andrew Ozz
a1bb1de73f
Skip links: simplified look with more contrast, props sabreuse, fixes #21310
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22726 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 19:58:47 +00:00
bumpbot
0f21638a91
Compress scripts/styles: 3.5-beta3-22724.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22724 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:58:31 +00:00
Ryan Boren
e158d36f6e
Don't bail from get_the_terms() if the post type is not registed for the taxonomy. This can break back compat when add_post_type_support( 'page', 'post-formats' ) is called but register_taxonomy_for_object_type( 'postr_-format', 'page' ) is not.
...
Props SergeyBiryukov
fixes #22473
git-svn-id: https://develop.svn.wordpress.org/trunk@22722 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:31:06 +00:00
Andrew Nacin
16d68f6dba
RTL media-views fixes. props ocean90. fixes #22453 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22720 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:22:19 +00:00
Andrew Nacin
a5a14e4e7e
No-JS fixes.
...
* Hide QuickPress.
* Hide the gap between the title and content editor.
* Hide 'select all' checkboxes in list tables.
* Hide a non-functioning link in the custom fields metabox.
* Hide non-functioning buttons in the featured image box (same as in 3.4).
* RTL and miscellany.
props TobiasBg, lessbloat, ocean90. fixes #22456 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22719 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:20:14 +00:00
Andrew Nacin
628778d7c1
Account for taxonomies tied to specific kinds of attachments when setting up post types for a taxonomy query.
...
props jondavidjohn. see #21290 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22718 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 17:33:21 +00:00
bumpbot
2e6be2d063
Compress scripts/styles: 3.5-beta3-22717.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22717 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:58:32 +00:00
Daryl Koopersmith
1e83e0eaae
Media: Maintain event bindings in the main embed view. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22716 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:44:23 +00:00
Daryl Koopersmith
69f9e2a1bf
Media: Allow all galleries to be sortable. fixes #22488 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22713 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:04:59 +00:00
Daryl Koopersmith
76c67989a7
Media: Add filters to the media library. fixes #22514 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22712 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 13:49:35 +00:00
bumpbot
995c548174
Compress scripts/styles: 3.5-beta3-22711.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22711 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 12:58:29 +00:00
Daryl Koopersmith
30e1926f4b
Media: Refresh the attachment display settings when the active attachment finishes uploading. fixes #22452 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22710 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:57:08 +00:00
Daryl Koopersmith
e707481dcf
Media Uploader: Change an uploaded attachment's 'updating' key with the rest of the returned attributes to allow events bound to 'change:updating' to access the new properties. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22709 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:52:08 +00:00
Daryl Koopersmith
3f362417c7
Media: Remove dead dropdown code from button view. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22708 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:29:00 +00:00
Daryl Koopersmith
10d46dd112
Buttons: Remove unused button arrows and dropdowns. see #21598 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22707 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:26:26 +00:00
Daryl Koopersmith
ce06a037dd
Media: Attachment checkboxes now function as such. fixes #22462 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22706 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:10:04 +00:00
bumpbot
21598abfd3
Compress scripts/styles: 3.5-beta3-22705.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22705 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 04:58:34 +00:00
Daryl Koopersmith
aae8a0bdd1
Buttons: Ensure correct disabled submit button state in iOS. props johnbillion, fixes #22490 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22704 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 03:20:17 +00:00
Daryl Koopersmith
4a696709f8
Media: Allow textareas to be vertically resized. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22703 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:59:31 +00:00
Andrew Nacin
1f5e71fd3a
Add media_view_settings and media_view_strings hooks. fixes #21092 for 3.5. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22702 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:58:33 +00:00
bumpbot
5881079072
Compress scripts/styles: 3.5-beta3-22701.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22701 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:58:28 +00:00
Andrew Nacin
c753f3bd74
Fix HiDPI pointer arrows used in the feature pointers. props lessbloat. fixes #22510 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22698 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:09:37 +00:00
Daryl Koopersmith
86b1e35bcf
Media: Prevent undefined errors when media scripts are enqueued outside of wp_enqueue_media(). fixes #22495 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22694 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 01:48:37 +00:00
bumpbot
8ff00bcf38
Compress scripts/styles: 3.5-beta3-22693.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22693 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 00:58:32 +00:00
Daryl Koopersmith
49ac6ba800
Media: Detect when views are added to the DOM and fire a ready event. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22692 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 00:53:02 +00:00
bumpbot
aa2109949a
Compress scripts/styles: 3.5-beta3-22691.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22691 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 22:58:31 +00:00
Daryl Koopersmith
c14200e07b
Media: Add render tracking to views. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22690 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 22:48:11 +00:00
bumpbot
9d6e6d3e3f
Compress scripts/styles: 3.5-beta3-22685.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22685 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 12:58:31 +00:00
Daryl Koopersmith
15b3c31767
Media: Add silent options to the views; improve documentation. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22684 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 12:11:16 +00:00
bumpbot
b311202274
Compress scripts/styles: 3.5-beta3-22683.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22683 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 10:58:31 +00:00
Daryl Koopersmith
aa6b7069e6
Media: Add a method to fetch the first subview. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22682 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 10:41:24 +00:00
Daryl Koopersmith
17af1e2366
Media: Add documentation to media.Views. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22681 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 10:40:49 +00:00
bumpbot
bf46cc71b5
Compress scripts/styles: 3.5-beta3-22678.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22678 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:58:31 +00:00
Andrew Nacin
870d1d05db
Revert [22675]. wp_mime_type_icon() is more accurate when given a post ID, rather than a mime type. The "speed" mostly comes down to the ordering of cache hits, rather than any performance issues like #22503 . see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22677 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:44:37 +00:00
Andrew Nacin
52cc02a9be
This should be a cache add, not a cache set. see #22503 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22676 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:39:52 +00:00
Andrew Nacin
68a3e80d4d
wp_mime_type_icon() is faster when given a mime type, rather than a post ID. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22675 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:39:14 +00:00
Andrew Nacin
4cba7e30e0
Call wp_cache_set() with a group and then an expiration in wp_mime_type_icon(). fixes #22503 . see #22186 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22674 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:31:43 +00:00
Daryl Koopersmith
893c538066
Media: Only show the alignment setting when viewing an image. fixes #21836 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22671 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 07:24:47 +00:00
Andrew Nacin
a3023b8483
In get_custom_header(), support a default header that is registered using default-image but not register_default_headers(). fixes #22221 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22669 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:59:25 +00:00
bumpbot
94b4a602af
Compress scripts/styles: 3.5-beta3-22668.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22668 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:58:29 +00:00
Daryl Koopersmith
1b42cd449c
Media: Use correct variable name. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22666 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:43:01 +00:00
Daryl Koopersmith
16ef935110
Media: Add default render method to views.
...
* Use default `render` method in the `Frame` view.
* Rename `Views.attach` to `Views.insert`.
* Add `Views.all` to retrieve all subviews.
* Add `Views.detach` to detach all subviews.
* Detect whether views are going to be reused in `View.set` and `detach` them instead of calling `dispose`.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22662 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:02:00 +00:00
bumpbot
7de47b2867
Compress scripts/styles: 3.5-beta3-22661.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22661 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 04:58:32 +00:00
Daryl Koopersmith
54f70dec05
Media: Allow subviews to be inserted at a specific index. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22660 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 04:41:57 +00:00
Daryl Koopersmith
46da78b32e
Media: Convert the attachments browser view's destroy method to the newer dispose method. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22659 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 03:33:29 +00:00
Daryl Koopersmith
2411401f1b
Media: Remove unused batch edit states and strings. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22658 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 03:11:48 +00:00
bumpbot
eda9828244
Compress scripts/styles: 3.5-beta3-22657. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22657 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:58:28 +00:00
Daryl Koopersmith
47b883764e
Media: Remove debug cruft from [22655]. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22656 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:44:34 +00:00
Daryl Koopersmith
5b426eac50
Media: Optimize media models.
...
* Merge `Composite` model with general `Attachments` model, as `Attachments.validate` and `Composite.evaluate` were functionally equivalent.
* Queries should only watch `wp.Uploader.queue`, as watching `Attachments.all` results in queries attempting to add attachments before their properties are set (which then results a few too many irrelevant adds/removes). `Attachments.all` should potentially be removed or rethought.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22655 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:43:10 +00:00
Daryl Koopersmith
5c2e5e3231
Media: Remove redundant sorting logic from composite models. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22654 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:00:01 +00:00
Andrew Nacin
34985fbc7a
Revert page on front changes. Reverts [22127] [22129] [22135] [22136]. see #16379 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22653 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:28:32 +00:00
Daryl Koopersmith
f2d2f6bb45
Media: Make TinyMCE attachment and gallery controls always show when the corresponding view is selected. props SergeyBiryukov. fixes #22463 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22652 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:23:45 +00:00
Daryl Koopersmith
646c90861f
Media: Move Attachments view preventDefault handler to the events object. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22651 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:17:30 +00:00
bumpbot
930790f78c
Compress scripts/styles: 3.5-beta3-22650.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22650 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 00:58:49 +00:00
Daryl Koopersmith
c5ee034c29
Media: Allow for the views manager to be extended. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22649 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 00:54:18 +00:00
Daryl Koopersmith
101c5a5371
Media: Add a base view class.
...
* Centralizes view and subview management, unifying several disjointed constructs.
* Utilizes the `dispose` functionality found in Backbone master, providing a standard method for memory management.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22648 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 00:36:47 +00:00
bumpbot
8edc223912
Compress scripts/styles: 3.5-beta3-22645. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22645 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 18:58:32 +00:00
Andrew Ozz
37a39cbefa
TinyMCE: place the caret after/under images with captions when inserting content, fixes #19389
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22644 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 18:04:20 +00:00
Andrew Ozz
b706fe2780
RTL: remove unneeded toolbar border-right, props ocean90, see #22453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22643 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 17:59:27 +00:00
bumpbot
70f7d88916
Compress scripts/styles: 3.5-beta3-22642.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22642 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 16:58:30 +00:00
Andrew Ozz
ae6db5cab0
RTL: fix styling of Skip To links, see #22453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22641 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 16:49:17 +00:00
Andrew Ozz
805c464c27
RTL fixes and improvements: add-media, image-editor, the spinners, the featured image button, some css cleanup, props ocean90, maor, SergeyBiryukov, ramiy, see #22453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22640 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 16:19:37 +00:00
bumpbot
176f7c4483
Compress scripts/styles: 3.5-beta3-22639.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22639 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 22:58:30 +00:00
bumpbot
20b307248e
Compress scripts/styles: 3.5-beta3-22637.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22637 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 20:58:31 +00:00
Andrew Ozz
2ae738083a
Make the admin menu and toolbar work well on mobile devices (take 2), props georgestephanis, fixes #20614 , fixes #22382
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22636 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 20:14:17 +00:00
Ryan Boren
35576683fe
Always return a raw filtered post object from WP_Post::get_instance().
...
Props kovshenin, scribu, ntm
fixes #22448
git-svn-id: https://develop.svn.wordpress.org/trunk@22635 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 15:14:48 +00:00
Ryan Boren
6d8bce688f
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22634 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 15:11:29 +00:00
Andrew Nacin
2f1e3701ed
Trim the option name in get_option() before calling the pre_option_$option filter, not after. props evansolomon. fixes #22358 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22633 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 13:20:57 +00:00
bumpbot
817d87fe1c
Compress scripts/styles: 3.5-beta3-22631.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22631 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:58:29 +00:00
Andrew Nacin
fe14a22e31
Introduce a new, cross-browser HiDPI CSS @media rule to be used everywhere.
...
{{{
@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
}}}
Serve HiDPI graphics for printing, regardless of screen resolution.
Specify Opera's vendor-prefixed device pixel ratio property, for Opera desktop.
Specify a minimum Webkit device pixel ratio of 1.25 instead of 1.5, to serve
2x images to Android devices that are between 1 and 1.5x (like the Nexus 7).
Firefox and Opera will respond to 1.5x on these devices, but Chrome will not.
Specify min-resolution, which covers Firefox 19. Opera on Android also supports
min-resolution, but Opera Mini does not support dppx, so the dpi unit is used.
props iammattthomas for the exhaustive research.
props lessbloat for patching.
fixes #22238 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22629 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:50:08 +00:00
Andrew Nacin
d22207c523
Update down_arrow-2x.gif to have a transparent background. props lessbloat. fixes #22481 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22626 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:38:25 +00:00
Ryan Boren
a2d75840ce
Define array to avoid notice.
...
Props ericmann
fixes #22479
git-svn-id: https://develop.svn.wordpress.org/trunk@22622 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:14:57 +00:00
Ryan Boren
d5c96a1e8b
Add abstract methods back to WP_Image_Editor and refresh phpdoc.
...
Props DH-Shredder, markoheijnen, kurtpayne, nacin
see #6821
git-svn-id: https://develop.svn.wordpress.org/trunk@22619 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:02:21 +00:00
bumpbot
861df27c7d
Compress scripts/styles: 3.5-beta3-22613.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22613 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:58:32 +00:00
Daryl Koopersmith
e36ce9af8e
Media: zIndex peace was only temporary.
...
Revert [22611] in favor of using plupload's `container` setting. Turns out, plupload's flash shim is forced to the exact same index as the admin bar, so balancing the two is better solved by nesting the shim.
see #22441 , #22446 , #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22612 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:30:36 +00:00
Daryl Koopersmith
17ae09a2d4
Media: The zIndex arms race.
...
Adjusts zIndexes to be not-as-absurd as before, in the process moving the modal below the plupload flash shims (which do not have customizable zIndexes or classes, sadly).
fixes #22441 , see #22446 , #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22611 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:20:11 +00:00
Daryl Koopersmith
b520130998
Media: Add an explicit border to menus to show a divider in older browsers. see #22446 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22610 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 09:47:00 +00:00