Commit Graph

27252 Commits

Author SHA1 Message Date
Helen Hou-Sandi 25b733cea2 Move the "view" link for attachment details to the sidebar and use more specific language. Removes an unnecessary JS handler. fixes #28977.
git-svn-id: https://develop.svn.wordpress.org/trunk@29263 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-22 02:19:21 +00:00
Sergey Biryukov f171b362a9 Media Grid: Add a View button to Attachment Details modal.
props adamsilverstein.
fixes #28977.

git-svn-id: https://develop.svn.wordpress.org/trunk@29262 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-22 01:29:17 +00:00
Andrew Ozz 9106987a3f TinyMCE: include 85e22b58e9that and quote one more use of "float". This is "reserved as future keyword by older ECMAScript specifications" according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar and can throw a syntax error. See #28576.
git-svn-id: https://develop.svn.wordpress.org/trunk@29261 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-21 23:04:29 +00:00
John Blackbourn dfa33f92ff Add a `lang` attribute to each language listed on the language selector screen during installation. See #28858, #28577.
git-svn-id: https://develop.svn.wordpress.org/trunk@29260 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-21 21:50:12 +00:00
Sergey Biryukov ac17007b10 Remove requirement for a minimum image size in the image editor.
props ericlewis, solarissmoke.
fixes #11325.

git-svn-id: https://develop.svn.wordpress.org/trunk@29259 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-21 19:09:44 +00:00
Sergey Biryukov 98e7bb798c Don't always focus password field on interim login.
props johnbillion.
fixes #28961.

git-svn-id: https://develop.svn.wordpress.org/trunk@29258 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-21 16:20:05 +00:00
Sergey Biryukov 4ba18baec2 Remove a redundant condition for comment feeds from WP_Query::get_posts().
props engelen.
fixes #28401.

git-svn-id: https://develop.svn.wordpress.org/trunk@29257 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-21 15:37:14 +00:00
Sergey Biryukov 0c3d0214cb Gruntfile: Change import rules to include RTL stylesheets when running CSSJanus.
see #28966.

git-svn-id: https://develop.svn.wordpress.org/trunk@29256 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-21 02:50:45 +00:00
Peter Westwood 01277f8d32 XMLRPC: Switch the file deletion alias to be deleteFile to more closely make uploadFile.
Fixes #5310 props SergeyBiryukov.


git-svn-id: https://develop.svn.wordpress.org/trunk@29255 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-20 14:01:35 +00:00
Peter Westwood 6d0218365b Post beta2 version bump to 4.0-beta2-29254
git-svn-id: https://develop.svn.wordpress.org/trunk@29254 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-20 13:58:21 +00:00
Scott Taylor b085282340 `WP_Dependencies->recurse_deps()`: tuck the recursion into `elseif` so the `foreach` doesn't break on the first item.
See [29252].


git-svn-id: https://develop.svn.wordpress.org/trunk@29253 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-20 00:33:51 +00:00
Scott Taylor 77ee35c4eb `wp_script_is( ..., 'enqueued' )` needs to check dependencies recursively - a single item's dependencies may only be a subset of the full dependency tree. Adds a new method on `WP_Dependencies` called `->recurse_deps()`.
Adds unit test.

Props wonderboymusic, SergeyBiryukov, mikejolley.
Fixes #28404.


git-svn-id: https://develop.svn.wordpress.org/trunk@29252 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-20 00:28:57 +00:00
Scott Taylor 36e455d018 Backup filter globals ( `$merged_filters, $wp_actions, $wp_current_filter, $wp_filter` ) statically when running unit tests, restore on `tearDown()`. This ensures that all tests initially use the same filters/actions.
Props mnelson4, wonderboymusic.
Fixes #28535.


git-svn-id: https://develop.svn.wordpress.org/trunk@29251 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 23:58:07 +00:00
Scott Taylor ca5d586b8e After [29200], switch back to using `static` vars instead of adding 2 `global`s, as per Sergey.
Fixes #28697.


git-svn-id: https://develop.svn.wordpress.org/trunk@29250 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 23:13:19 +00:00
Scott Taylor a1aa518788 Call `untrailingslashit()` when adding a theme directory in `register_theme_directory()`. This prevents double-slashing in generated URLs. Don't add a directory if it is already present.
Adds unit tests.
Props obenland, wonderboymusic.
Fixes #28662.


git-svn-id: https://develop.svn.wordpress.org/trunk@29249 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 23:06:54 +00:00
Scott Taylor 150e1367b4 In `get_adjacent_post()`, make `$excluded_terms` work as expected.
Adds unit tests.
Props jessepollak, kovshenin.
Fixes #22112.


git-svn-id: https://develop.svn.wordpress.org/trunk@29248 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 22:26:43 +00:00
Andrew Ozz 9c366c8f61 Fix admin menu open/close issues on some mobile devices, props adamsilverstein, fixes #27980.
git-svn-id: https://develop.svn.wordpress.org/trunk@29247 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 18:54:50 +00:00
Andrew Ozz b53705fa7b TinyMCE wpView: better removal of views, replace a selected view when pasting. Props avryl, fixes #28913.
git-svn-id: https://develop.svn.wordpress.org/trunk@29246 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 07:29:34 +00:00
Andrew Ozz 8c67be305d TinyMCE wpVIew: use CSS3 `currentcolor` for the fake carets, see #28595.
git-svn-id: https://develop.svn.wordpress.org/trunk@29245 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 06:28:38 +00:00
Sergey Biryukov 50090763ba Remove redundant title attributes from get_calendar().
props joedolson.
fixes #26561.

git-svn-id: https://develop.svn.wordpress.org/trunk@29244 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 04:40:32 +00:00
Sergey Biryukov d83dbfca17 Customizer: Remove "Add a Widget" button from tab order when reordering widgets.
fixes #28890.

git-svn-id: https://develop.svn.wordpress.org/trunk@29243 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 03:31:49 +00:00
Sergey Biryukov 45ec949d58 Customizer: When widget reorder button is actioned, transfer focus to the first Move control within the section.
fixes #28891.

git-svn-id: https://develop.svn.wordpress.org/trunk@29242 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 03:23:51 +00:00
Sergey Biryukov c62cd97555 Add a class for get_comment_author_link() in Recent Comments widget.
props DrewAPicture, dannydehaan, 5um17.
fixes #27944.

git-svn-id: https://develop.svn.wordpress.org/trunk@29241 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 02:43:27 +00:00
Sergey Biryukov 0121e36154 Customizer: Add screen reader text to announce that panels and sections are expandable.
props joedolson, ocean90.
fixes #27591.

git-svn-id: https://develop.svn.wordpress.org/trunk@29240 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 02:36:07 +00:00
Sergey Biryukov 123702b484 Add screen reader text to announce that menu item accordion sections are expandable. Remove redundant title attribute.
props joedolson.
fixes #28866.

git-svn-id: https://develop.svn.wordpress.org/trunk@29239 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 02:20:58 +00:00
Sergey Biryukov a740868552 Customizer: Add widget title to Move/Up/Down controls to provide context for screen readers when reordering or moving widgets.
fixes #28889.

git-svn-id: https://develop.svn.wordpress.org/trunk@29238 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 01:57:05 +00:00
Sergey Biryukov 7a01c6af7b Customizer: Avoid losing focus when adding widgets via keyboard.
props sathishn.
fixes #28835.

git-svn-id: https://develop.svn.wordpress.org/trunk@29237 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 01:18:39 +00:00
Andrew Ozz bcff52c1b0 TinyMCE wpView:
- Typing something replaces a selected view.
- Pressing backspace deletes the selection.
- Pressing enter also deletes the selection.
- Pasting something replaces the selection.
- Also merge the different 'keydown' handlers.
Props avryl, fixes #28913.

git-svn-id: https://develop.svn.wordpress.org/trunk@29236 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 00:33:46 +00:00
Sergey Biryukov fad9723a42 Revert [28963].
see #28006.

git-svn-id: https://develop.svn.wordpress.org/trunk@29235 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-19 00:25:46 +00:00
Sergey Biryukov 9b1dbf7417 Use an existing string.
see #19205.

git-svn-id: https://develop.svn.wordpress.org/trunk@29234 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 23:55:47 +00:00
Sergey Biryukov 54f0c851d5 Reverse the order of roles in help text on Add New User screen to match [25695].
fixes #28914.

git-svn-id: https://develop.svn.wordpress.org/trunk@29233 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 23:47:54 +00:00
Sergey Biryukov 218cbba634 Add screen reader text for star ratings on Install Plugins screen.
props joedolson.
fixes #28852.

git-svn-id: https://develop.svn.wordpress.org/trunk@29232 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 23:40:43 +00:00
Andrew Ozz 72916a9751 TinyMCE: better "color preview" for the text color button, props avryl, fixes #28280.
git-svn-id: https://develop.svn.wordpress.org/trunk@29231 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 22:14:05 +00:00
Drew Jaynes (DrewAPicture) b4e97b5d5a Convert documentation for default arguments in `WP_Http::request()` to a hash notation.
Also update corresponding docs for functions that leverage its arguments.

See #28298.


git-svn-id: https://develop.svn.wordpress.org/trunk@29230 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 22:00:51 +00:00
Drew Jaynes (DrewAPicture) 9ea77904ba Fix syntax for single- and multi-line comments in wp-includes/class-http.php.
See #28943 and #28931.


git-svn-id: https://develop.svn.wordpress.org/trunk@29229 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 21:46:24 +00:00
Andrew Nacin b26c85ff29 4.0-beta2.
git-svn-id: https://develop.svn.wordpress.org/trunk@29228 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 21:04:27 +00:00
Andrew Nacin 3bd777fba5 Plugin Install screens: Pass locale and installed plugins to the API, for context.
props tellyworth.
see #17902.


git-svn-id: https://develop.svn.wordpress.org/trunk@29227 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 20:49:14 +00:00
Andrew Nacin b00097b758 Add 'Details' links to installed plugins.
Installed plugins that are up to date are now returned in the update-check API response.

props tellyworth.
see #17902.


git-svn-id: https://develop.svn.wordpress.org/trunk@29226 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 20:48:28 +00:00
Helen Hou-Sandi 446f78396a Plugin install: display cards in groups if the API returns them with the appropriate information. props tellyworth. fixes #28673.
git-svn-id: https://develop.svn.wordpress.org/trunk@29225 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 19:34:47 +00:00
Andrew Nacin fdacabaa7e WP_Session_Tokens: Can't abstract a static method.
Implementations can choose to implement the drop_sessions() method on their own.

see #20276.


git-svn-id: https://develop.svn.wordpress.org/trunk@29224 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 19:15:13 +00:00
John Blackbourn bda49ba928 Update some inline docs for the `WP_Http` class. Fixes #28943.
git-svn-id: https://develop.svn.wordpress.org/trunk@29223 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 18:14:09 +00:00
Sergey Biryukov 6fdf1c5d36 Fix parse error in PHP 5.2.
props georgestephanis.
see #20276.

git-svn-id: https://develop.svn.wordpress.org/trunk@29222 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 17:33:50 +00:00
Andrew Nacin 97fcbef707 Tie cookies and nonces to user sessions so they may be invalidated upon logout.
Sessions are stored in usermeta via WP_User_Meta_Session_Tokens, which extends the abstract WP_Session_Tokens class. Extending WP_Session_Tokens can allow for alternative storage, such as a separate table or Redis.

Introduces some simple APIs for session listing and destruction, such as wp_get_active_sessions() and wp_destroy_all_sessions().

This invalidates all existing authentication cookies, as a new segment (the session token) has been added to them.

props duck_, nacin, mdawaffe.
see #20276.


git-svn-id: https://develop.svn.wordpress.org/trunk@29221 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 09:12:05 +00:00
Helen Hou-Sandi a14ea26577 Keyboard accessibility for the media modal:
* Arrow keys navigate between items in the grid.
* Transfer focus into the panel when selecting a tab along the side.
* Transfer focus into the details sidebar when selecting an item and vice versa.
* Set initial focus on the close button so that it is visible.

props celloexpressions, lessbloat, ericlewis. fixes #25100, #25101, #28704. see #23560.


git-svn-id: https://develop.svn.wordpress.org/trunk@29220 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 07:56:25 +00:00
Helen Hou-Sandi 1803c4c1e8 Plugin install cards:
* Move author attribution to its own line.
* Use `esc_url()` where appropriate.
* Better i18n.
* min-height for cards for a more even appearance.
* Show more cards on wide screens.
* Tighten up spacing below the filter bar.

props ocean90, helen. see #28785.


git-svn-id: https://develop.svn.wordpress.org/trunk@29219 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 06:07:21 +00:00
Helen Hou-Sandi b0b9655b12 Install Plugins screen:
* Utilize the (currently-named) filter bar from the Add Themes screen.
* Move the upload link to the h2, also like the Add Themes screen.

see #28673.


git-svn-id: https://develop.svn.wordpress.org/trunk@29218 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 04:49:19 +00:00
Helen Hou-Sandi 021750b4f4 Use more generic, reusable CSS for the filter bar on Add Themes. This will allow us to reuse the UI in other places, such as the Media Library. props paulwilde. fixes #28794.
git-svn-id: https://develop.svn.wordpress.org/trunk@29217 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-18 03:39:04 +00:00
Sergey Biryukov 168ed4764e Don't 404 for empty feeds.
fixes #18505.

git-svn-id: https://develop.svn.wordpress.org/trunk@29216 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-17 22:21:37 +00:00
Sergey Biryukov 332a618271 Declare the variable before using it.
props danielbachhuber.
fixes #28932.

git-svn-id: https://develop.svn.wordpress.org/trunk@29215 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-17 22:00:14 +00:00
Andrew Ozz 9730c679f1 TinyMCE: add the 'colorpicker' and 'lists' plugins, fixes #28939, #27359.
git-svn-id: https://develop.svn.wordpress.org/trunk@29214 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-17 21:53:28 +00:00