Commit Graph

28443 Commits

Author SHA1 Message Date
Dominik Schilling (ocean90) 5447103756 Twenty Fifteen: Remove `esc_html()` from blog description.
The blog description gets esc_html()'d *into* the DB. It's also escaped because the filter for `get_bloginfo()` is set to 'display'.

see #30724.

git-svn-id: https://develop.svn.wordpress.org/trunk@30897 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 13:19:17 +00:00
Dominik Schilling (ocean90) 25ffd56152 Twenty Fifteen: Don't escape translated strings.
Replace every unnecessary instance of `esc_html__()` and `esc_html_e()` with just `__()` and `_e()`.

see #30724.

git-svn-id: https://develop.svn.wordpress.org/trunk@30896 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 12:59:59 +00:00
Dominik Schilling (ocean90) 754fc5f22d Twenty Fifteen: Don't save unfiltered CSS in a setting.
Introduce `twentyfifteen_get_color_scheme_css( $colors )` which will be used for Underscore/Backbone and the PHP side. Let `twentyfifteen_color_scheme_css()` handle the color calculation on PHP side.

see #30409.

git-svn-id: https://develop.svn.wordpress.org/trunk@30893 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 12:26:49 +00:00
Dominik Schilling (ocean90) 8f323ecf9a Customizer: Export Preview instance to `wp.customize.preview`.
see #30409, #30726.

git-svn-id: https://develop.svn.wordpress.org/trunk@30891 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 11:52:38 +00:00
Andrew Nacin daf16cdb63 Call it 'Distraction-free writing mode' and update the help string. fixes #30657.
git-svn-id: https://develop.svn.wordpress.org/trunk@30890 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 10:06:17 +00:00
Andrew Nacin 855ff22a53 Update/add plugin recommendation strings.
Update [30887], add a translation function to the Vine string.

fixes #30337. see #30435.


git-svn-id: https://develop.svn.wordpress.org/trunk@30889 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 10:05:09 +00:00
Andrew Nacin 07e7f03373 Updates to the 'Log out everywhere' implementation.
* Include a message and a disabled button when you're only logged in at one location.
 * Avoid leaking the session token in HTML.
 * Simplify, simplify, simplify.

see #30264.


git-svn-id: https://develop.svn.wordpress.org/trunk@30888 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 09:15:01 +00:00
Andrew Nacin 82d0ba4b60 Finalize two more about page strings. see #30435.
git-svn-id: https://develop.svn.wordpress.org/trunk@30887 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 08:57:11 +00:00
Dion Hulse 1e721a144b Add braces around a Docblock in an if statement, although not required by PHP, this is required by our coding standards for readability.
Introduced in 3.9 with r27365
See #25905


git-svn-id: https://develop.svn.wordpress.org/trunk@30886 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-16 05:51:49 +00:00
Dominik Schilling (ocean90) c959c4d4b3 Customizer: Add `_wp_attachment_is_custom_background` meta to uploaded background images.
Adds `$type` property to `WP_Customize_Background_Image_Control` (PHP) and introduces `wp.customize.BackgroundControl` (JS).

see #30707.

git-svn-id: https://develop.svn.wordpress.org/trunk@30885 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 23:27:17 +00:00
Dominik Schilling (ocean90) d5299a9522 Autoprefixer for [30857].
see #30435.

git-svn-id: https://develop.svn.wordpress.org/trunk@30884 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 23:19:06 +00:00
John Blackbourn 0533e9bd8c Correct the height of the search type `select` element when searching the plugin directory.
See #30719
Props pavelevap, eliorivero


git-svn-id: https://develop.svn.wordpress.org/trunk@30879 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 22:31:35 +00:00
John Blackbourn 5918c5d365 Clarify the behaviour of the `wp_editor_set_quality` and `jpeg_quality` filters.
Props DH-Shredder
See #29856


git-svn-id: https://develop.svn.wordpress.org/trunk@30874 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 21:42:32 +00:00
John Blackbourn 4f35288dd1 Add tests which ensure the `wp_editor_set_quality` and `jpeg_quality` filters only apply if they are added before the corresponding `WP_Image_Editor` is instantiated.
Props DH-Shredder
See #29856


git-svn-id: https://develop.svn.wordpress.org/trunk@30873 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 21:24:21 +00:00
Dominik Schilling (ocean90) 663d12c8f8 Customizer: Remove date filter from the Header/Background Image upload frames.
Adds an option to `wp.media.view.AttachmentsBrowser` to hide the date filter added in [29813].

see #30689.

git-svn-id: https://develop.svn.wordpress.org/trunk@30872 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 20:26:54 +00:00
Dominik Schilling (ocean90) c17317912a Customizer: Import missing `wp.customize.Control.prototype._toggleActive`.
Check also if `completeCallback` is set before calling it.

props westonruter.
see #30701.

git-svn-id: https://develop.svn.wordpress.org/trunk@30871 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 19:53:55 +00:00
Lance Willett eb3ea331f0 Twenty Fifteen: minor updates to readme.txt file for clarity and removing non-ASCII characters. Closes #30675.
git-svn-id: https://develop.svn.wordpress.org/trunk@30869 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 19:08:54 +00:00
Lance Willett 5f5936f81f Twenty Twelve: fix widget stacking problem in older IE browsers for Front Page template.
Props TomasM, hiwhatsup. Fixes #28938.

git-svn-id: https://develop.svn.wordpress.org/trunk@30868 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 17:55:37 +00:00
Lance Willett d931b5cbc5 Twenty Fifteen: remove license details for the image shown in the theme screenshot file as it is Creative Commons Zero, which doesn't require attribution.
Props iamtakashi, fixes #30156.

git-svn-id: https://develop.svn.wordpress.org/trunk@30867 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 17:43:34 +00:00
Lance Willett cb816a383a Twenty Fourteen: remove Genericons as a dependency from loading the main stylesheet and IE-specific stylesheet. See #30532.
git-svn-id: https://develop.svn.wordpress.org/trunk@30866 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 17:39:59 +00:00
Lance Willett a25f807d6e Twenty Fifteen: remove Genericons as a dependency from loading the main stylesheet.
Props iamtakashi, fixes #30532.

git-svn-id: https://develop.svn.wordpress.org/trunk@30865 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 17:37:05 +00:00
Dion Hulse 28e22a4ec4 Background Updates: Pass back whether Group Writable support is being leveraged for an update to the WordPress.org API.
See #30245


git-svn-id: https://develop.svn.wordpress.org/trunk@30860 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 14:07:35 +00:00
Andrew Nacin 5c04326ba6 About page design for 4.1.
props melchoyce and ryelle, who again outdid themselves.
see #30435.


git-svn-id: https://develop.svn.wordpress.org/trunk@30857 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 10:46:43 +00:00
Andrew Nacin b38c603682 Rename _wp_clear_update_cache() to wp_clean_update_cache().
This makes it match most cache-clearing functions, including the ones it wraps. Also no need for it to be prefixed as "private."

wp_clean_plugins_cache() doesn't always exist, so as a quick fix, clear the transient we care to clear.

see #30369.


git-svn-id: https://develop.svn.wordpress.org/trunk@30856 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 08:54:14 +00:00
Andrew Nacin 0375edc8c6 No need for wp_get_password_hint() to be prefixed as if it is private.
see #21243.


git-svn-id: https://develop.svn.wordpress.org/trunk@30855 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 08:33:48 +00:00
Andrew Nacin 7344a29063 Avoid repeatedly calling is_tax( 'post_format', '...' ) in get_the_archive_title().
see #21995.


git-svn-id: https://develop.svn.wordpress.org/trunk@30854 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 07:31:48 +00:00
Andrew Ozz 34a2576fd6 Editor, new DFW: fix fading out for the right sidebar in IE. Fixes #30714.
git-svn-id: https://develop.svn.wordpress.org/trunk@30853 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 03:08:12 +00:00
Andrew Ozz 284bfd81b9 Improve the fix for menu shakiness when over-scrolling. Recalculate heights on editor auto-resize.
See #30692.

git-svn-id: https://develop.svn.wordpress.org/trunk@30852 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-15 00:10:18 +00:00
Dominik Schilling (ocean90) 326d7f8c5f Customizer: Re-add the possibility to remove and restore a default background image.
see #21483.
fixes #30683 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@30849 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-14 19:36:27 +00:00
Dominik Schilling (ocean90) 4a662deaa5 Customizer: Don't escape control descriptions in JavaScript templates.
fixes #30682 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@30847 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-14 19:23:49 +00:00
Boone Gorges 093de0f0be In `WP_Meta_Query`, interpret 'value' correctly when used with EXISTS/NOT EXISTS.
As in earlier versions, EXISTS with a value is equivalent to '=', while NOT
EXISTS should always ignore 'value'.

Props barrykooij.
Fixes #30681 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@30846 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-14 19:00:31 +00:00
Dominik Schilling (ocean90) 91ac188a12 Twenty Fifteen: Update the .pot file for [30834].
fixes #30152.

git-svn-id: https://develop.svn.wordpress.org/trunk@30845 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-14 12:33:56 +00:00
Andrew Ozz 35c763f795 Fix menu shakiness when over-scrolling in Chrome and Safari on MacOS.
See #30692.

git-svn-id: https://develop.svn.wordpress.org/trunk@30844 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-14 01:46:39 +00:00
Andrew Ozz 560a1ba478 iOS: do not autofocus the readonly textarea with the code for wp-config.php in setup-config.php.
See #30703.

git-svn-id: https://develop.svn.wordpress.org/trunk@30843 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-14 00:10:05 +00:00
Andrew Ozz 2fc1155920 Do not autofocus text fields on page load on mobile devices. This is currently broken in many mobile browsers:
- iOS Safari opens the keyboard and auto-scrolls on the first tap anywhere on the screen triggering the click at an unexpected place. That makes it impossible to follow links or press buttons.
- Chrome on iOS opens the keyboard on load and may scroll the focused field off screen.
- The Android 4.4 browser only highlights the field, the user has to tap it to open the keyboard and type.
See #30703.

git-svn-id: https://develop.svn.wordpress.org/trunk@30842 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-13 22:07:58 +00:00
Andrew Nacin 074d8c1ad7 Finalize more about page strings. see #30435.
git-svn-id: https://develop.svn.wordpress.org/trunk@30841 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-13 22:04:51 +00:00
Andrew Nacin 095c9857ef About page updates.
* Live-update the number of active translations.
 * Finalize most strings.
 * Lazily remove links to admin-only screens based on cap checks.
see #30435.


git-svn-id: https://develop.svn.wordpress.org/trunk@30840 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-13 20:11:49 +00:00
Andrew Ozz 276a69d6f9 TinyMCE: add another `Edit` translatable string for the tooltip of the Edit button on the image toolbar. Props pavelevap, see #30694.
git-svn-id: https://develop.svn.wordpress.org/trunk@30839 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-13 00:46:20 +00:00
Lance Willett 950126a515 Twenty Fifteen: update scroll functionality to make sure child menu items are always reachable.
Props iamtakashi, fixes #30674.

git-svn-id: https://develop.svn.wordpress.org/trunk@30838 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 23:58:06 +00:00
Andrew Ozz 1bbc18c390 Improve text for the DFW admin pointer. Remove the concatenation.
Props kpdesign, ianmjones.
See #30671.

git-svn-id: https://develop.svn.wordpress.org/trunk@30837 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 22:11:46 +00:00
Andrew Ozz 30a12129af Twenty Fifteen, editor-style: remove margin-bottom from the gallery preview inside the editor. Fixes #30697.
git-svn-id: https://develop.svn.wordpress.org/trunk@30836 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 21:44:21 +00:00
Andrew Ozz 8f7be98176 TinyMCE: make the tooltip for the remove button in the image toolbar translatable. Props pavelevap, fixes #30694 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@30835 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 21:25:08 +00:00
lancewillett dc0e4af5ba Twenty Fifteen: update archive pagination links to use `aria-hidden` for better accessibility.
Props SergeyBiryukov, fixes #30152.

git-svn-id: https://develop.svn.wordpress.org/trunk@30834 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 18:36:02 +00:00
Lance Willett 28b82443c3 Twenty Fifteen: update readme.txt file, props iamtakashi. See #30675.
git-svn-id: https://develop.svn.wordpress.org/trunk@30833 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 18:27:09 +00:00
Lance Willett 2b686ac112 Twenty Fifteen: remove fonts as a style dependency.
Props obenland, SergeyBiryukov. Fixes #30678.

git-svn-id: https://develop.svn.wordpress.org/trunk@30832 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 18:25:30 +00:00
Dominik Schilling (ocean90) 163c32126f Revisions: Fix initial state of `compareTwoMode`.
Broken since [30131].

fixes #30672.

git-svn-id: https://develop.svn.wordpress.org/trunk@30831 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 09:53:10 +00:00
Andrew Ozz d8f6e64596 Fix search box position on the Add Plugins screen after resizing the window to narrower than 1000px and then back to wider than 1200px. Fixes #30658.
git-svn-id: https://develop.svn.wordpress.org/trunk@30830 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 00:53:51 +00:00
Andrew Ozz 3fb7f40445 TinyMCE: remove reposition delay on showing the image toolbar. Not needed when no animation. Fixes #30670.
git-svn-id: https://develop.svn.wordpress.org/trunk@30829 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-12 00:09:29 +00:00
Sergey Biryukov 1afbe9d6b3 Twenty Fifteen: Reflect the change from "no" to "share" icon in [30810] in readme.txt.
props iamtakashi.
fixes #30148.

git-svn-id: https://develop.svn.wordpress.org/trunk@30828 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-11 17:44:50 +00:00
John Blackbourn dcff477632 Switch to `(get_)the_posts_pagination()` in Twenty Fifteen.
See #29808
Props obenland


git-svn-id: https://develop.svn.wordpress.org/trunk@30824 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-11 10:23:40 +00:00