Commit Graph

22833 Commits

Author SHA1 Message Date
Bot (Assets)
2610d9a821 Compress scripts/styles: 3.6-beta4-24665.
git-svn-id: http://core.svn.wordpress.org/trunk@24665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 22:58:49 +00:00
Mark Jaquith
c44ce3b6e6 Revisions: real URLs and preloading of the requested diff.
* Real URLs are being used now, using pushState. `?revision={id}` or `?from={from}&to={to}`.
* Drop the redundant `action=edit` from the URLs (this is the default).
* The initial comparison is preloaded, whether a single revision or a compare-two situation.

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 22:56:48 +00:00
Andrew Nacin
25d9d478ac Compare GMT to GMT. see #24425.
git-svn-id: http://core.svn.wordpress.org/trunk@24663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 20:57:47 +00:00
Bot (Assets)
be7a7a2787 Compress scripts/styles: 3.6-beta4-24662.
git-svn-id: http://core.svn.wordpress.org/trunk@24662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 18:58:51 +00:00
Mark Jaquith
0fabcaaa0a Revisions: Immediately do a disabled button check on ready().
Solves the issue of Prev/Next buttons not being disabled on initial load, when routing to an extremity.

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 18:43:18 +00:00
Mark Jaquith
2940a03ae5 Revisions: Use jQuery animation.
The CSS3 animations caused issues because the element was still there, and there is no standard way to know when a CSS3 animation is done.

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 18:43:12 +00:00
Bot (Assets)
dbcc47053f Compress scripts/styles: 3.6-beta4-24659.
git-svn-id: http://core.svn.wordpress.org/trunk@24659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 10:58:54 +00:00
Mark Jaquith
ef5e733dbf Revisions: Bunch of refactoring and code cleanup
* Extracted a lot of model-y stuff from the view code.
* Slider now has a proper model, with communication with other models.
* Use of `get( foo )` instead of `findWhere({ id: foo })`.
* Properly set the `from` diff when routing single mode.
* Bind `prev()` and `next()` to their model.
* Tick marks are now percentage based, which means the slider resizes with the browser, without JS resize events.
* When scrubbing, the position of the scrubber is considered a hover, so you can fall off the timeline while still scrubbing and the tooltips will persist.
* Tooltips fade in and out.
* Tooltips hang around for a grace period instead of immediately going away. More forgiving.
* Unused code paths removed.
* Got rid of a bunch of view-to-view communication.
* Use `_.times()` instead of a `for` loop.
* Removed premature `Math.floor()` and `Math.ceil()` calls that were making things not add up to 100%.

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 09:14:14 +00:00
Andrew Nacin
08314efe48 Twenty Thirteen: Use the child selector when styling paragraphs in a status post. props celloexpressions, fixes #24676.
git-svn-id: http://core.svn.wordpress.org/trunk@24657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 01:01:38 +00:00
Bot (Assets)
e08e451b01 Compress scripts/styles: 3.6-beta4-24656.
git-svn-id: http://core.svn.wordpress.org/trunk@24656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 00:58:52 +00:00
Andrew Ozz
682de58eb5 Logged out warnings:
- Close the iframe immediately on successful login.
- Catch iframe origin exceptions in WebKit when there is a server error or another page is loaded in the iframe.
See #23295.

git-svn-id: http://core.svn.wordpress.org/trunk@24655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 00:44:37 +00:00
Andrew Ozz
9602a29c5d Add file header to heartbeat.js, props DrewAPicture, fixes #24723
git-svn-id: http://core.svn.wordpress.org/trunk@24654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 00:35:52 +00:00
Bot (Assets)
323c50372d Compress scripts/styles: 3.6-beta4-24653.
git-svn-id: http://core.svn.wordpress.org/trunk@24653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 00:22:41 +00:00
Andrew Nacin
721f7ba271 Rename wp.xhr to wp.ajax to match admin-ajax.php (which it uses), jQuery.ajax (which it wraps), etc. see #24424.
git-svn-id: http://core.svn.wordpress.org/trunk@24652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 00:20:36 +00:00
Andrew Nacin
031d959efd Modify todo in wp_ajax_autosave(). fixes #23665.
git-svn-id: http://core.svn.wordpress.org/trunk@24651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-11 00:06:52 +00:00
Andrew Nacin
c48e009b05 Don't store a revision for the initial call to wp_insert_post(), only on saves.
In core UI (and XML-RPC), we first create an auto-draft via get_default_post_to_edit(), which means the first "save" is in practice the first revision.

This reverts [23842].

fixes #24708.



git-svn-id: http://core.svn.wordpress.org/trunk@24650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 22:40:42 +00:00
Andrew Nacin
0f84b87380 Do not notify the post author about comments if they are no longer a member of the blog.
This updates [23294] to use capability checks to determine if the user can still edit a post, which works for super admins. Additionally, it hides Trash/Spam action links when the user is still a member of the blog but cannot (or can no longer) moderate the comment.

fixes #23136.



git-svn-id: http://core.svn.wordpress.org/trunk@24649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 22:01:12 +00:00
Andrew Nacin
0c5811461a Avoid scrollbar on network.php's wp-config.php textarea.
git-svn-id: http://core.svn.wordpress.org/trunk@24648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 21:57:15 +00:00
Bot (Assets)
fd18bbe2c3 Compress scripts/styles: 3.6-beta4-24647.
git-svn-id: http://core.svn.wordpress.org/trunk@24647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 20:58:49 +00:00
Mark Jaquith
b3dbe47b1f Revisions: fixes for routing and initial setting of compareTwoMode
* Fix routing handler logic (`compareTwoMode` was reversed).
* Fix routing handler typo (both should use the same handler).
* Set `compareTwoMode` to false, to start. props duck_.

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 19:17:01 +00:00
Bot (Assets)
6050f55678 Compress scripts/styles: 3.6-beta4-24645.
git-svn-id: http://core.svn.wordpress.org/trunk@24645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 16:58:55 +00:00
Helen Hou-Sandí
561a323362 Add sliding animations to the accordion. props kovshenin, DrewAPicture, helen. fixes #23890.
git-svn-id: http://core.svn.wordpress.org/trunk@24644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 16:32:09 +00:00
Andrew Nacin
bcd2644d92 Proper translation of '<time> ago' in revisions. props johnbillion, fixes #24721.
git-svn-id: http://core.svn.wordpress.org/trunk@24643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 16:15:18 +00:00
Andrew Nacin
bfb3b89672 Skip protocol checking in esc_url() when we are dealing with a relative URL. Prevents munging of colons in paths and query strings, when present in a protocol-relative URL.
props SergeyBiryukov.
fixes #21974.



git-svn-id: http://core.svn.wordpress.org/trunk@24642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 13:45:22 +00:00
Andrew Nacin
ca64e771da In wp_http_validate_url(), only validate the protocol in lieu of esc_url_raw(). Ensure there is a host component to the URL. fixes #24663.
git-svn-id: http://core.svn.wordpress.org/trunk@24641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 13:35:30 +00:00
Bot (Assets)
d18388712c Compress scripts/styles: 3.6-beta4-24640.
git-svn-id: http://core.svn.wordpress.org/trunk@24640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 06:58:52 +00:00
Andrew Nacin
50d0428d42 Avoid notice in XML-RPC when attaching uploads, when attachments do not have a guid in the DB. props ericmann, markoheijnen. fixes #18310.
git-svn-id: http://core.svn.wordpress.org/trunk@24639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 06:11:12 +00:00
Mark Jaquith
80c7cd0e0a Revisions: simpler hash URLs. Misc refactoring.
* Single mode: `#at/:to`
* Compare two mode: `#from/:from/to/:to`
* Make use of `_.isUndefined()`

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 06:08:56 +00:00
Andrew Nacin
33c7a89f91 Grammar fix in Twenty Thirteen CSS comment. props SergeyBiryukov, fixes #24690.
git-svn-id: http://core.svn.wordpress.org/trunk@24637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 06:04:28 +00:00
Mark Jaquith
abc060a6c3 Revisions: remove some redundant code.
* Move some slider code into the slider view that was loitering in the checkmark view.
* `this.$()`, not `$()`.
* Cache a selector.
* `toggleClass()`, not `addClass()` with a ternary.
* Remove two classes with a single `removeClass()`.

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 05:40:45 +00:00
Andrew Nacin
bf759fe207 If someone tries to localize 'jquery', which is now an alias with jquery-core and jquery-migrate dependencies, add the data to jquery-core.
fixes #24197.



git-svn-id: http://core.svn.wordpress.org/trunk@24635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 05:38:17 +00:00
Andrew Nacin
a16ac64012 If a nav menu has no items, wait until after the wp_nav_menu_items filter before deciding whether to print nothing.
see [21868] for original commit. see #21576.
see #24035 for trunk.



git-svn-id: http://core.svn.wordpress.org/trunk@24634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 05:14:43 +00:00
Andrew Nacin
939ba6619a Some RTL changes for the plugin information box.
props JDTrower, SergeyBiryukov, ocean90, ramiy.
fixes #22897.



git-svn-id: http://core.svn.wordpress.org/trunk@24633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 05:01:33 +00:00
Bot (Assets)
129b592b58 Compress scripts/styles: 3.6-beta4-24632.
git-svn-id: http://core.svn.wordpress.org/trunk@24632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:58:53 +00:00
Andrew Nacin
e0ba6b979f Avoid a scrollbar in the iframe used for plugin sandboxing. props kovshenin. see #10840.
git-svn-id: http://core.svn.wordpress.org/trunk@24631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:56:28 +00:00
Andrew Nacin
043f19b1dc When generating a background image thumbnail URL, escape percent signs for the eventual sprintf() call inside get_theme_mod().
props cfinke.
fixes #21241.



git-svn-id: http://core.svn.wordpress.org/trunk@24630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:42:03 +00:00
Mark Jaquith
8035bd88ad Revisions: Get rid of an unneccessary ID. IDs are a bad idea.
See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:37:50 +00:00
Andrew Nacin
9f7ba7539c Switch to a transient for is_multi_author(). props markjaquith, fixes #24445.
git-svn-id: http://core.svn.wordpress.org/trunk@24628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:20:41 +00:00
Mark Jaquith
8707375cee Revisions: Update the compare mode before rendering subviews.
See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:15:34 +00:00
Andrew Nacin
51e89cca30 Fix the chown and chgrp methods for the filesystem API's SSH2 transport. fixes #24277.
git-svn-id: http://core.svn.wordpress.org/trunk@24626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:15:13 +00:00
Andrew Nacin
7d53bd66ed Use maybe_unserialize() in upgrade.php's private get_option() function. This actually predates maybe_unserialize() ([2487], [3234]). props leewillis77. fixes #24365.
git-svn-id: http://core.svn.wordpress.org/trunk@24625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 04:01:20 +00:00
Andrew Nacin
49bb647dda XML-RPC: Save enclosures with a trailing new line. fixes #23219.
git-svn-id: http://core.svn.wordpress.org/trunk@24623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 03:34:35 +00:00
Mark Jaquith
b6c1023caa Don't call updateDiff() in the Revisions FrameState model.
* Stuff needs to hook in, so firing it early results in a half-rendered screen.
* `updateDiff()` now returns a promise.
* Now, in the frame view's `render()`, it calls `updateDiff()`, relying on its promise.

See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 03:20:58 +00:00
Andrew Nacin
e6afcb4aa2 Context for 'Attachment' when referring to the background image attachment. props xibe, fixes #23433.
git-svn-id: http://core.svn.wordpress.org/trunk@24621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-10 03:07:53 +00:00
Bot (Assets)
e9585cdf59 Compress scripts/styles: 3.6-beta4-24620.
git-svn-id: http://core.svn.wordpress.org/trunk@24620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-09 22:58:53 +00:00
Andrew Ozz
d3c4efc106 Collapse Menu: use jQuery normalized window width only for WebKit. Use window.innerWidth in Firefox, IE > 8, etc. so the window width in JS and for the @media rules match. Fixes #23817.
git-svn-id: http://core.svn.wordpress.org/trunk@24619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-09 21:26:32 +00:00
Bot (Assets)
17f79583c1 Compress scripts/styles: 3.6-beta4-24618.
git-svn-id: http://core.svn.wordpress.org/trunk@24618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-09 20:58:49 +00:00
Andrew Nacin
34a1d5394c Have get_footer() match get_header() etc in [24616]. fixes #24714.
git-svn-id: http://core.svn.wordpress.org/trunk@24617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-09 20:48:02 +00:00
Andrew Nacin
fb20e3b5bb In general template functions, cast to string then ensure we actually have a template name before proceeding. Affects get_sidebar(), get_header(), get_footer(), get_template_part().
props tivnet for initial patch.
fixes #24714.



git-svn-id: http://core.svn.wordpress.org/trunk@24616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-09 20:31:04 +00:00
Mark Jaquith
35b08acc8d Pass back dateUnix (a unix timestamp) for better sorting of revisions in Backbone.
Props duck_. See #24425.

git-svn-id: http://core.svn.wordpress.org/trunk@24615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-09 19:21:25 +00:00