38402 Commits

Author SHA1 Message Date
Jonathan Desrosiers
44a30daee4 Twenty Nineteen: Fixes and improvements.
This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core.

- Fix left/right-aligned pullquote spacing. https://github.com/WordPress/twentynineteen/pull/695
- Improve `readme.txt` to follow the correct standards for themes. https://github.com/WordPress/twentynineteen/issues/689

Props kjellr, allancole.

See #45424.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44201 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 22:03:36 +00:00
laurelfulford
e76dd650e7 Twenty Sixteen: Fix button block custom colors on front end.
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end.

Fixes #45427.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44200 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 21:52:07 +00:00
Jonathan Desrosiers
73894e612e Twenty Nineteen: Fixes and improvements.
This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core.

- Fixes some minor code quality issues. https://github.com/WordPress/twentynineteen/pull/237
- Fix PHP Warning: Parameter must be an array or an object that implements Countable. https://github.com/WordPress/twentynineteen/pull/661
- Add missing text domain and escaping to comment author text. https://github.com/WordPress/twentynineteen/pull/274
- Remove hyphens rule for cover image text. https://github.com/WordPress/twentynineteen/pull/691

Props khleomix, grapplerulrich, iCaleb, kjellr, allancole.

See #45424.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44199 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 21:50:16 +00:00
laurelfulford
6ae98f3b84 Twenty Fifteen: Fix button block custom colors on front end.
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end.

Fixes #45428.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44198 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 21:39:47 +00:00
laurelfulford
41a055120f Twenty Fourteen: Fix button block custom colors on front end.
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end.

Fixes #45429.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44197 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 21:30:27 +00:00
Jonathan Desrosiers
6d78174aeb Twenty Nineteen: Fixes and improvements.
This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core.

- Fix the gallery caption link color. https://github.com/WordPress/twentynineteen/pull/687
- Remove left padding from pullquote blocks. https://github.com/WordPress/twentynineteen/pull/690
- Print `skip-link-focus-fix` inline instead of enqueueing as blocking script. https://github.com/WordPress/twentynineteen/pull/47
- Fix and improve some strings with placeholders. https://github.com/WordPress/twentynineteen/pull/217

Props kjellr, allancole, dimadin, westonruter.

See #45424.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44196 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 21:23:52 +00:00
laurelfulford
afa8ba3334 Twenty Thirteen: Fix button block custom colors.
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end.

Also make sure the button’s gradient is not applied when a custom background color is added, since it will hide it. 

Fixes #45431.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44195 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 21:13:56 +00:00
laurelfulford
0953eaab5d Twenty Twelve: Fix button block custom colors.
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end.

Also make sure the button’s gradient is not applied when a custom background color is added, since it will hide it. 

Fixes #45432.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44194 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 20:54:35 +00:00
allancole
58d186251c Updating Twenty Nineteen, the new default theme for 2019.
This update changes the following: 

- Add proper frontend styles for center aligned archive and category blocks. More info here: https://github.com/WordPress/twentynineteen/pull/684
- Fix image_filter theme option conditional function. More info here: https://github.com/WordPress/twentynineteen/pull/680
- Remove duplicate rule-line when a separator block is followed by H1/H2 in the editor. Props richtabor. More info here: https://github.com/WordPress/twentynineteen/pull/686

Props richtabor, kjellr.

See #45424.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44193 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 20:41:25 +00:00
allancole
338bf91b4f Updating Twenty Nineteen, the new default theme for 2019.
This change properly sets the primary color hue theme option. 

- More info: https://github.com/WordPress/twentynineteen/pull/683

Props richtabor.

See #45424.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44192 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 20:11:18 +00:00
laurelfulford
d6e02d50f3 Twenty Eleven: Fix button block custom colors on front end.
Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end.

Fixes #45433.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44191 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 20:10:32 +00:00
laurelfulford
4950598cde Twenty Eleven: Correct block editor font-size issue.
Update a mistake in Twenty Eleven's block editor styles that erroneously sets the `font-size` to `300`, when it should set the `font-weight` to `300`. This was causing browsers in quirks mode to make the editor font size very large. 

Fixes #45421.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44190 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 19:51:20 +00:00
allancole
91f4aeef6e Updating Twenty Nineteen, the new default theme for 2019.
This update changes the following: 

- Reverts the customization to the toolbar for wide and full blocks to make them more usable. More info here: https://github.com/WordPress/twentynineteen/pull/668
- Add nowrap to the columns block at breakpoints above 600px. More info here: https://github.com/WordPress/twentynineteen/pull/674

Props joen, kjellr.

Fixes #45369.

See #45424.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44189 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 19:48:17 +00:00
laurelfulford
4de6cd3790 Twenty Ten: Custom colors should override :visited link styles on blocks.
Make sure the block editor custom colors in the theme also override the theme's `:visited` link styles. This prevents contrast issues, like in the button block -- when the background is dark, the purple `:visited` link can be difficult to read.

Fixes #45434.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44188 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 19:37:23 +00:00
allancole
49d906cc96 Updating Twenty Nineteen, the new default theme for 2019.
This change adds general code quality and documentation improvements. 

- More info here: https://github.com/WordPress/twentynineteen/pull/546

Props grapplerulrich, iCaleb.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44187 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 19:08:06 +00:00
Jonathan Desrosiers
5ddf67a7f1 PHP 7.3 Compatibility: Fix compact related notices.
In PHP 7.3, the `compact()` function has been changed to issue an `E_NOTICE` level error if a passed string refers to an unset variable. In previous versions of PHP, this notice was silently skipped. This fixes a few more instances of unset variables in the WordPress admin.

The full RFC can be viewed here: https://wiki.php.net/rfc/compact.

See #44416.
Fixes #45483.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44185 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 16:31:30 +00:00
Riad Benguella
06adae5915 Block Editor: Upgrade @wordpress packages to the latest version (4.7).
Updated packages:

 - @wordpress/annotations@1.0.4
 - @wordpress/api-fetch@2.2.6
 - @wordpress/block-library@2.2.10
 - @wordpress/block-serialization-default-parser@2.0.2
 - @wordpress/block-serialization-spec-parser@2.0.2
 - @wordpress/blocks@6.0.4
 - @wordpress/components@7.0.4
 - @wordpress/core-data@2.0.15
 - @wordpress/data@4.1.0
 - @wordpress/date@3.0.1
 - @wordpress/edit-post@3.1.5
 - @wordpress/editor@9.0.5
 - @wordpress/eslint-plugin@1.0.0
 - @wordpress/format-library@1.2.8
 - @wordpress/html-entities@2.0.4
 - @wordpress/list-reusable-blocks@1.1.17
 - @wordpress/notices@1.1.1
 - @wordpress/nux@3.0.5
 - @wordpress/rich-text@3.0.3
 - @wordpress/url@2.3.2
 - @wordpress/viewport@2.0.13

This also includes the updates the Core blocks.
The script loader is updated to match the Gutenberg repository too.

Props atimmer, gziolo, joen.
Fixes #45442, #45637.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44183 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 12:19:57 +00:00
Jeremy Felt
0d21daa17a Post-5.0.1 version bump for 5.0 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44105 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 03:40:01 +00:00
Jeremy Felt
4c638e0146 Bump 5.0 branch to version 5.0.1.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44077 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 02:10:39 +00:00
Peter Wilson
ab467c45ae Multisite: Validate activation links.
Merges [44048] to the 5.0 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44050 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 01:29:42 +00:00
Gary Pendergast
3bc992caf3 Editor: Remove unwanted fields before saving posts.
The `meta_input`, `file`, and `guid` fields are not intended to be updated through user input.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44047 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 01:24:11 +00:00
Peter Wilson
d5529da7ee Multisite: Improve messaging for previously activated users.
Ensure activation of a site is not attempted multiple times and users are shown the correct message if they follow the link a second time.

Merges [44021] to the 5.0 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44022 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 00:27:51 +00:00
Ian Dunn
566db6c48e KSES: Correct @since tags for wp_kses_uri_attributes.
r44014 introduced the `wp_kses_uri_attributes` function and filter, but incorrectly used `4.9.9` instead of `5.0.1`.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44017 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-12 23:59:25 +00:00
Ian Dunn
1d7b4a3655 KSES: Make the URI attributes DRY.
This commit introduces the `wp_kses_uri_attributes` function and filter. The function centralizes the list of attributes, in order to prevent inconsistency, and the filter provides a way for plugins to customize the attributes.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44014 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-12 23:52:05 +00:00
Gary Pendergast
a2b0c8f65c KSES: Conditionally remove the <form> element from $allowedposttags.
To avoid backwards compatibility issues, `<form>` is re-added if a custom filter has added the `<input>` or `<select>` elements to `$allowedposttags`.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43994 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-12 23:11:33 +00:00
Jeremy Felt
db9c4258f6 Media: Improve verification of MIME file types.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43988 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-12 23:00:06 +00:00
Gary Pendergast
1b91971b91 WordPress 5.0.1-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43972 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-06 19:45:08 +00:00
Gary Pendergast
666265c105 WordPress 5.0.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43970 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-06 17:58:43 +00:00
Mel Choyce
c018324630 Help/About: Upload videos to CDN and remove autoplay/loop.
Props skithund, afercia, lonelyvegan.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43969 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-06 02:50:17 +00:00
Gary Pendergast
fc81feac86 About: Move images to the CDN, and use <picture>.
Ensures the correct assets are used for the device loading the page.

Props joemcgill.
See #45178.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43968 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-05 22:24:21 +00:00
Gary Pendergast
d054ed090a About: Add ℹ️ to the classic editor link, to make it stand out a little more.
Props melchoyce.
See #45178.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43967 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 23:03:34 +00:00
Gary Pendergast
6d79bc1b92 Post WordPress 5.0 RC3 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43966 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 07:05:50 +00:00
Gary Pendergast
ed3bc8479e WordPress 5.0 RC3.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43965 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 06:53:08 +00:00
Gary Pendergast
dec38c46aa Default Themes: Bump the version numbers and release dates.
With WordPress 5.0 just a few short days away, the default themes can have their version numbers bumped.

The POT files for Twentys Ten and Eleven have also been updated.

Props laurelfulford, maedahbatool, mrahmadawais, pento.
See #45167.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43964 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 04:31:52 +00:00
Gary Pendergast
ae4fc35be7 Twenty Nineteen: Update the screenshot.
The screenshot is now up to date with the theme, and reflects the visuals in the About page.

Props kjellr, allancole.
See #45424.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43963 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 04:16:28 +00:00
Gary Pendergast
05d632c86f Twenty Nineteen: Fix classic block icons not displaying with non-latin fonts.
Props kjellr, allancole.
See #45424.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43962 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 04:11:11 +00:00
Gary Pendergast
583454d555 Twenty Nineteen: Fix non-breaking spaces being too wide on the front end.
This visual issue had been previously fixed in the block editor, is now fixed in the published post, too.

Props kjellr, allancole.
See #45424.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43961 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 04:09:46 +00:00
Gary Pendergast
0cea68e9e6 Scripts: Ensure sub-directory WordPress installs can load polyfill scripts.
`wp_get_script_polyfill()` bypasses `WP_Scripts::do_item()`, so didn't transform the script path into its fully qualified URL.

Props swissspidy, ocean90.
See #45469.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43960 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 02:10:44 +00:00
Gary Pendergast
d09e22ff41 l10n: Ensure JavaScript language packages are loaded for the user locale.
`load_script_textdomain()` had a reversed check to decide if the user locale should be loaded. This check is now replaced with `determine_local()`.

Props ocean90.
See #45465.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43959 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-04 01:12:47 +00:00
Jonathan Desrosiers
764de9fa7f Post WordPress 5.0 RC2 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43958 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 23:16:38 +00:00
Jonathan Desrosiers
165e94a461 WordPress 5.0 RC2.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43957 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 23:04:30 +00:00
allancole
6a43a9f59a Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This changes fixes a security issue found in a dependency script used in our build tool. 

- The malicious dependency is now removed and no longer called when running `npm install` or `npm run build`. 
- More info here: https://github.com/WordPress/twentynineteen/pull/675

Props allancole, kjellr, netweb, twoabove.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43956 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 22:35:02 +00:00
Riad Benguella
1c0d6d8853 Block Editor: Update @wordpress package dependencies.
Updated packages

 - @wordpress/block-library@2.2.9
 - @wordpress/block-serialization-default-parser@2.0.1
 - @wordpress/block-serialization-spec-parser@2.0.1
 - @wordpress/blocks@6.0.3
 - @wordpress/edit-post@3.1.4
 - @wordpress/editor@9.0.4
 - @wordpress/format-library@1.2.7

Other changes:

 - Backport the parser changes.

Fixes #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43955 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 20:57:02 +00:00
Miguel Fonseca
81e0366e57 Update sidebars_widgets to match Twenty Nineteen's single widget area
* Also update the customizer tests to match it.

Props SergeyBiryukov, pento.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43954 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 20:24:42 +00:00
Mel Choyce
6c581357ba Help/About: Update "Support for the Classic Editor plugin will remain in WordPress until 2021" to "through 2021" to further clarify timeline.
Props kjellr.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43953 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 16:26:13 +00:00
Mel Choyce
8cbeb96732 Help/About: Fix the user's saved WordPress.org username from being changed to wordpressdotorg when they click the About page link to install the Classic Editor plugin.
Props pento.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43952 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 16:22:46 +00:00
Riad Benguella
214e8c1ab5 Block Editor: Remove the latest "gutenberg" mention in the latest-comments.php file
Props swissspidy.
See #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43951 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 13:35:19 +00:00
Riad Benguella
c52baf9de4 Block Editor: Rename the gutenberg_ functions in blocks/latest-comments.php.
This was ported manually from https://github.com/WordPress/gutenberg/pull/12326

Props pento, swissspidy.
See #45145. 


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43950 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 13:23:09 +00:00
Riad Benguella
73a41baf9c Block Editor: Update @wordpress package dependencies.
Update packages:

 - @wordpress/block-library@2.2.8
 - @wordpress/components@7.0.3
 - @wordpress/edit-post@3.1.3
 - @wordpress/editor@9.0.3
 - @wordpress/format-library@1.2.6
 - @wordpress/list-reusable-blocks@1.1.16
 - @wordpress/nux@3.0.4

Other changes:

Fix a translator comment in edit-form-blocks.php.
Rename the gutenberg_ functions in blocks/latest-comments.php.

Props pento.
Fixes #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43949 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-30 09:58:24 +00:00
Andrew Ozz
2914fcea4b Help/About: Do not show the "Keep it Classic" section and the link to it at the top when the Classic Editor plugin is already installed.
See #45178.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43947 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-29 08:29:18 +00:00