Sergey Biryukov
5dd45b38c8
Transients: After [41963], add missing cron task for delete_expired_transients()
.
...
Props dlh.
Fixes #41699 .
Built from https://develop.svn.wordpress.org/trunk@42008
git-svn-id: http://core.svn.wordpress.org/trunk@41842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 23:00:47 +00:00
John Blackbourn
4812370aab
Docs: Improve the docs for validate_file()
and validate_file_to_edit()
.
...
See #42016 , #36170 , #41017
Built from https://develop.svn.wordpress.org/trunk@42007
git-svn-id: http://core.svn.wordpress.org/trunk@41841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 22:50:49 +00:00
Sergey Biryukov
29d5ee851c
I18N: Use a consistent pattern for translator comments for placeholders in some more Customizer strings.
...
See #41974 .
Built from https://develop.svn.wordpress.org/trunk@42006
git-svn-id: http://core.svn.wordpress.org/trunk@41840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 22:47:46 +00:00
Sergey Biryukov
f156f90ff5
I18N: Add a context for remaining "Schedule" strings.
...
Props Mirucon.
Fixes #42165 .
Built from https://develop.svn.wordpress.org/trunk@42005
git-svn-id: http://core.svn.wordpress.org/trunk@41839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 22:35:47 +00:00
David A. Kennedy
55c8978f1f
Twenty Seventeen: Make gallery link styles consistent in all widget areas
...
Removes the box shadow on gallery links in footer widget areas so they're consistent with the sidebar widget area.
Props transl8or, sami.keijonen, davidakennedy.
Fixes #42302 .
Built from https://develop.svn.wordpress.org/trunk@42004
git-svn-id: http://core.svn.wordpress.org/trunk@41838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 21:53:51 +00:00
Weston Ruter
a1ec65b695
Themes: Harmonize list of theme features on Theme Install screen with list in the Customizer.
...
Use the core list, rather than the .org API, due to inconsistencies and to ensure tags are translated.
Props celloexpressions.
See #37661 , #42306 .
Built from https://develop.svn.wordpress.org/trunk@42003
git-svn-id: http://core.svn.wordpress.org/trunk@41837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 21:46:47 +00:00
Sergey Biryukov
50c6a55fba
I18N: Give context to "Installed" string added in [41648].
...
Props dimadin.
Fixes #42325 .
Built from https://develop.svn.wordpress.org/trunk@42002
git-svn-id: http://core.svn.wordpress.org/trunk@41836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 21:43:47 +00:00
Weston Ruter
fd2e006968
Widgets: Limit container-constraining logic in Text widget to video
, iframe
, object
, and embed
elements.
...
Amends [41779].
See #40854 .
Built from https://develop.svn.wordpress.org/trunk@42001
git-svn-id: http://core.svn.wordpress.org/trunk@41835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 21:32:46 +00:00
Joe Hoyle
bebb0b0d82
REST API: Don’t remove unregistered properties from objects in schema.
...
In r41727 the ability to sanitise and validate objects from JSON schema was added, with a whitelist approach. It was decided we should pass through all non-registered properties to reflect the behaviour of the root object in register_rest_route. To prevent arbitrary extra data via setting objects, we force additionalProperties to false in the settings endpoint.
See #38583 .
Built from https://develop.svn.wordpress.org/trunk@42000
git-svn-id: http://core.svn.wordpress.org/trunk@41834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 21:05:49 +00:00
Mel Choyce
c0d0380baa
Code Editors: Tweak styles to work better on smaller screens.
...
See #42100 .
Built from https://develop.svn.wordpress.org/trunk@41999
git-svn-id: http://core.svn.wordpress.org/trunk@41833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 20:29:46 +00:00
Mel Choyce
9c7eb32fc2
Credits: Update "Contributing Developers" to "Noteworthy Contributors."
...
"Developers" excludes the various major contributors in non-developer roles, so let's update this term to be more inclusive.
See #41022 .
Built from https://develop.svn.wordpress.org/trunk@41998
git-svn-id: http://core.svn.wordpress.org/trunk@41832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 19:29:47 +00:00
Weston Ruter
6737643773
Customize: Prevent theme installation and deletion in Customizer while SFTP credentials need to be requested.
...
This is a temporary measure while we wait for credentials to be able to be supplied in the Customizer.
Amends [41788].
See #42184 , #37661 , #42126 .
Built from https://develop.svn.wordpress.org/trunk@41997
git-svn-id: http://core.svn.wordpress.org/trunk@41831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 19:06:47 +00:00
Mel Choyce
b008754486
Code Editors: Update copy in warning modals.
...
Props helen.
See #42100 .
Built from https://develop.svn.wordpress.org/trunk@41996
git-svn-id: http://core.svn.wordpress.org/trunk@41830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 18:47:47 +00:00
Konstantin Obenland
5aa45cd12e
Customize: Allow previewed menus to be customized
...
Fixes a bug where menu assignements couldn't be changed when previewing a theme.
Also removes an unnecessary call to menu mapping after a theme switch from the customizer and makes sure the locations option is always written, for good measure.
Props westonruter.
See #39692 .
Built from https://develop.svn.wordpress.org/trunk@41995
git-svn-id: http://core.svn.wordpress.org/trunk@41829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 18:35:48 +00:00
Weston Ruter
7e689f541d
Code Editor: Fix phpunit tests related to gutters
after [41974].
...
See #12423 .
Built from https://develop.svn.wordpress.org/trunk@41994
git-svn-id: http://core.svn.wordpress.org/trunk@41828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 16:58:50 +00:00
Ella Iseulde Van Dorpe
abc1579a42
TinyMCE: Set undefined FloatPanel zIndex
...
See [40995] for the Customizer.
Fixes #42322 .
Built from https://develop.svn.wordpress.org/trunk@41993
git-svn-id: http://core.svn.wordpress.org/trunk@41827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 16:52:56 +00:00
Weston Ruter
226263bfec
Code Editor: Define default gutters
and toggle lint markers based on changes to lint
option.
...
Explicitly define `gutters` in base `defaultSettings` to improve merges of multiple calls to `wp_enqueue_code_editor()`.
Props westonruter, georgestephanis for testing.
Amends [41974].
See #12423 .
Built from https://develop.svn.wordpress.org/trunk@41992
git-svn-id: http://core.svn.wordpress.org/trunk@41826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 16:35:54 +00:00
Sergey Biryukov
9eb75432b6
Canonical: Strip trailing punctuation from permalinks.
...
Previously attempted in [40256], which caused the test for decoded curly quotes to fail in some environments.
`$_SERVER['REQUEST_URI']` contains the encoded URI, so this version removes the failing tests and only checks for encoded curly quotes.
Props joostdevalk, lancewillett, SergeyBiryukov.
Fixes #20383 .
Built from https://develop.svn.wordpress.org/trunk@41991
git-svn-id: http://core.svn.wordpress.org/trunk@41825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 14:18:48 +00:00
Sergey Biryukov
bcdedf7f4a
Formatting: Make sure wp_allowed_protocols()
is filterable until wp_loaded
has fired.
...
Fixes the issue with plugins not being able to use the `kses_allowed_protocols` filter if `esc_url()` was called too early.
Props turtlepod, SergeyBiryukov.
Fixes #36033 .
Built from https://develop.svn.wordpress.org/trunk@41990
git-svn-id: http://core.svn.wordpress.org/trunk@41824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 13:25:55 +00:00
John Blackbourn
2623caf8b0
Docs: Correct a class name in the docs for WP_Customize_Manager::post_value()
.
...
See #41017
Built from https://develop.svn.wordpress.org/trunk@41989
git-svn-id: http://core.svn.wordpress.org/trunk@41823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 11:57:49 +00:00
Sergey Biryukov
4c16522bbe
Taxonomy: Use keypress
instead of keyup
for listening for Enter key to add a tag via Tags meta box.
...
Fixes issue with Japanese input.
Props miyauchi.
Fixes #42234 .
Built from https://develop.svn.wordpress.org/trunk@41988
git-svn-id: http://core.svn.wordpress.org/trunk@41822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 11:30:49 +00:00
Sergey Biryukov
654386a5b7
Taxonomy: After [40984], add the most_used
label for non-hierarchical taxonomies too, and use it on the Menus screen.
...
Props johnbillion.
Fixes #41150 .
Built from https://develop.svn.wordpress.org/trunk@41987
git-svn-id: http://core.svn.wordpress.org/trunk@41821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 11:23:24 +00:00
Sergey Biryukov
ffddfb573b
I18N: Remove <code>
and <kbd>
tags from translatable strings on Settings screens.
...
Move URLs to separate strings.
Props ramiy.
Fixes #40763 .
Built from https://develop.svn.wordpress.org/trunk@41986
git-svn-id: http://core.svn.wordpress.org/trunk@41820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 10:51:52 +00:00
Weston Ruter
9093718b15
Editor: Specify maxwidth
in parse-embed
requests based on width of editor iframe so that TinyMCE view embeds fit, particularly in Text widgets.
...
See #40854 , #34115 .
Built from https://develop.svn.wordpress.org/trunk@41985
git-svn-id: http://core.svn.wordpress.org/trunk@41819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 04:07:50 +00:00
Helen Hou-Sandí
a7f2613fc7
Buttons: Ensure active styling applies to both :active
and .active
.
...
props sayedwp, helen.
fixes #42236 .
Built from https://develop.svn.wordpress.org/trunk@41984
git-svn-id: http://core.svn.wordpress.org/trunk@41818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 23:34:49 +00:00
Sergey Biryukov
a891bc6c92
Docs: Fix typo in path_is_absolute()
description.
...
Props octalmage, birgire.
Fixes #42317 .
Built from https://develop.svn.wordpress.org/trunk@41983
git-svn-id: http://core.svn.wordpress.org/trunk@41817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 22:51:46 +00:00
Weston Ruter
fce310e744
Menus: Don't prime nav menu items cache if a persistent cache is being used.
...
Amends [14560].
Props david.binda.
See #12734 .
Fixes #41662 .
Built from https://develop.svn.wordpress.org/trunk@41982
git-svn-id: http://core.svn.wordpress.org/trunk@41816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 22:40:50 +00:00
Mel Choyce
94e74066e9
About Page: Revised strings to be easier to translate.
...
Props kristastevens, Presskopp, swissspidy.
See #42087 .
Built from https://develop.svn.wordpress.org/trunk@41981
git-svn-id: http://core.svn.wordpress.org/trunk@41815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 22:24:47 +00:00
Peter Wilson
339d838475
Comments: Check if wp_new_comment()
returns an error.
...
Adds checks throughout to allow for `wp_new_comment()` returning a `WP_Error` instance.
Updates the docs for the `pre_comment_approved` filter to include that it can be passed an error.
Props enrico.sorcinelli, ryotsun.
Fixes #39730 .
Built from https://develop.svn.wordpress.org/trunk@41980
git-svn-id: http://core.svn.wordpress.org/trunk@41814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 22:12:51 +00:00
Weston Ruter
29d213cfbd
REST API: Allow passing existing template value for posts even when template no longer exists.
...
Also remove `enum` for validating allowed templates to allow plugins to dynamically supply their own templates for specific posts, even when they are not in the theme.
Props TimothyBlynJacobs, jnylen0, swissspidy.
Fixes #39996 .
Built from https://develop.svn.wordpress.org/trunk@41979
git-svn-id: http://core.svn.wordpress.org/trunk@41813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 22:11:46 +00:00
Aaron Jorbin
b8fc8cb59c
Dashboard: Remove "Try Gutenberg" callout.
...
Reverting this for 4.9. It will be added back in a future version of WordPress. This doesn't mean that you shouldn't be trying Gutenberg, just that it isn't ready for a call out to a larger audience. But if you are the type to read commit messages, https://github.com/WordPress/gutenberg could use your pull requests and comments on issues.
Reverts [41931] [41900] [41896] [41895]
See #41316
Built from https://develop.svn.wordpress.org/trunk@41978
git-svn-id: http://core.svn.wordpress.org/trunk@41812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 20:48:47 +00:00
Weston Ruter
c364743d35
Code Editor: Add underscore
as a dependency for the code-editor
script.
...
Amends [41376].
See #12423 .
Built from https://develop.svn.wordpress.org/trunk@41977
git-svn-id: http://core.svn.wordpress.org/trunk@41811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 20:38:47 +00:00
Pascal Birchler
74fc7efbae
Themes: Add files missed in [41975].
...
See #41717 .
Built from https://develop.svn.wordpress.org/trunk@41976
git-svn-id: http://core.svn.wordpress.org/trunk@41810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 20:23:49 +00:00
Pascal Birchler
8222b85aa2
Themes: Show templates from both parent and child theme when calling WP_Theme::get_post_templates()
.
...
Props birgire for initial patch.
Fixes #41717 .
Built from https://develop.svn.wordpress.org/trunk@41975
git-svn-id: http://core.svn.wordpress.org/trunk@41809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 20:08:47 +00:00
Weston Ruter
0343b1a2c8
Code Editor: Keep linting and its error reporting configured when lint
option is changed dynamically.
...
Also explicitly disable `lint` option for SCSS and LESS.
See #12423 .
Built from https://develop.svn.wordpress.org/trunk@41974
git-svn-id: http://core.svn.wordpress.org/trunk@41808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 19:55:46 +00:00
Konstantin Obenland
91ad9114d0
Customize: Ease extendability of filter drawer
...
By moving the `wporg` conditional inside the method body, the filter drawer can be overridden without having to also override the entire section template.
Props celloexpressions.
Closes #42212 .
Built from https://develop.svn.wordpress.org/trunk@41973
git-svn-id: http://core.svn.wordpress.org/trunk@41807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 18:58:46 +00:00
Andrea Fercia
69518459e6
Customize: Make sure the FTP credentials modal is visible.
...
The customizer and the theme installer use `visibility: hidden` on the body when
they open full-overlays screens. The FTP credentials modal needs a visibility
property set back to `visible` to be visible over those overlays.
Props purnendu.
Fixes #42205 .
Built from https://develop.svn.wordpress.org/trunk@41972
git-svn-id: http://core.svn.wordpress.org/trunk@41806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 17:54:53 +00:00
Sergey Biryukov
703713756a
Tests: Fix typo in test_do_action_with_multiple_callbacks_on_different_priorities()
.
...
Props withinboredom.
Fixes #42311 .
Built from https://develop.svn.wordpress.org/trunk@41971
git-svn-id: http://core.svn.wordpress.org/trunk@41805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 13:04:49 +00:00
Peter Wilson
ca45ec136f
Build/Test tools: Move wp_doing_ajax
defintion from class setup to test setup.
...
Moves defintion of ajax request in `WP_Ajax_UnitTestCase` to `setUp()` method to account for hooks being reset as part of `tearDown()`.
Props matthias.thiel for report.
Fixes #41561 .
Built from https://develop.svn.wordpress.org/trunk@41970
git-svn-id: http://core.svn.wordpress.org/trunk@41804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 05:11:47 +00:00
Weston Ruter
990c6d5a42
Customize: Keep frontend preview link updated to reflect the current state of previewed URL, active theme, and autosaved state.
...
See #39896 .
Built from https://develop.svn.wordpress.org/trunk@41969
git-svn-id: http://core.svn.wordpress.org/trunk@41803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-23 00:41:47 +00:00
Weston Ruter
5e7e44aba7
Customize: Update 'Save & Activate' reference to 'Publish & Activate' in themes help tab text.
...
See #39896 .
Fixes #42305 .
Built from https://develop.svn.wordpress.org/trunk@41968
git-svn-id: http://core.svn.wordpress.org/trunk@41802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-22 20:03:51 +00:00
John Blackbourn
74cf14cdf3
Docs: Correct docs introduced in [41965].
...
See #16778
Built from https://develop.svn.wordpress.org/trunk@41967
git-svn-id: http://core.svn.wordpress.org/trunk@41801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 22:42:51 +00:00
Dion Hulse
cb1b49bca5
Tests: Return an exit code of 1 in the event that the database server for tests is unavailable.
...
This allows for automated scripts & test suites to handle the failure of the test suite easier.
Props danielbachhuber
Fixes #41916
Built from https://develop.svn.wordpress.org/trunk@41966
git-svn-id: http://core.svn.wordpress.org/trunk@41800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 14:14:48 +00:00
Gary Pendergast
8608b710b7
Docs: Expand the docs for the core_version_check_query_args
filter.
...
Add documentation for the parameters in the `$query` parameter.
Props MattyRob.
Fixes #16778 .
Built from https://develop.svn.wordpress.org/trunk@41965
git-svn-id: http://core.svn.wordpress.org/trunk@41799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 13:46:50 +00:00
Gary Pendergast
0847fab645
Media: Don't backdate media uploaded to pages.
...
When media is uploaded to a post, the upload directory is set according to the date of the post, so that the media URLs in the post match when the post was published.
A page is a slightly different beast, pages often live for years, and are regularly updated to stay relevant. This change causes media uploaded to pages to use the upload date to determine the upload directory.
Fixes #10752 .
Built from https://develop.svn.wordpress.org/trunk@41964
git-svn-id: http://core.svn.wordpress.org/trunk@41798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 13:27:48 +00:00
Dion Hulse
26f9c6b909
Transients: Clear expired transients from the database in a daily cron task.
...
Fixes #41699
Built from https://develop.svn.wordpress.org/trunk@41963
git-svn-id: http://core.svn.wordpress.org/trunk@41797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 13:22:49 +00:00
Gary Pendergast
f7fcb2cd5b
Updates: Add the core_version_check_query_args
filter.
...
This filter allows the data being sent for core update checks to be controlled for privacy concerns.
Props toscho, MattyRob, swissspidy, pento.
Fixes #16778 .
Built from https://develop.svn.wordpress.org/trunk@41962
git-svn-id: http://core.svn.wordpress.org/trunk@41796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 11:55:47 +00:00
Weston Ruter
0c1c0980e7
Customize: Improve back-compat for wp.customize.Control
subclasses that expect options.params
to be present for direct manipulation before calling parent initialize
method.
...
Fixes known incompatibility with Make theme.
Amends [41726].
See #30741 .
Built from https://develop.svn.wordpress.org/trunk@41961
git-svn-id: http://core.svn.wordpress.org/trunk@41795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 08:51:48 +00:00
Weston Ruter
1f735509af
Customize: Allow control subclasses to add to the deferred
object before the base class initializes.
...
Update the `CodeEditorControl`'s `codemirror` deferred to be set before calling the parent class's `initialize` method. Since the `ready` method may be called directly by `initialize` it may be too late to add a new `Deferred` to the control's `deferred` property after calling the base control class's `initialize`.
Amends [41958].
See #41897 .
Built from https://develop.svn.wordpress.org/trunk@41960
git-svn-id: http://core.svn.wordpress.org/trunk@41794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 08:44:52 +00:00
Sergey Biryukov
45655bb928
Docs: Document $wp_version
global in wp_initial_constants()
.
...
Props mt8.biz.
Fixes #42259 .
Built from https://develop.svn.wordpress.org/trunk@41959
git-svn-id: http://core.svn.wordpress.org/trunk@41793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 22:04:56 +00:00
Weston Ruter
47c555f8ed
Customize: Add codemirror
deferred object to CodeEditorControl
which is resolved when CodeMirror is initialized.
...
CodeMirror gets initialized once the control's containing section is expanded. The deferred will be rejected if user preference for syntax highlighting is disabled.
Also move jsdoc from `wp.customize.Control` to intended `wp.customize.Control#initialize()`.
See #41897 , #12423 .
Built from https://develop.svn.wordpress.org/trunk@41958
git-svn-id: http://core.svn.wordpress.org/trunk@41792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 21:48:46 +00:00
Weston Ruter
81c87e7d5e
Code Editor: Improve ability to create Customizer CodeEditorControl
instances in JS, lessening PHP dependencies.
...
Allow `CodeEditorControl` to be instantiated with a `editor_settings` param which is merged with `wp.codeEditor.defaultSettings`.
Also:
* Turn redundant "CSS Code" control label into screen reader text for Additional CSS.
* Remove `code-editor` as script dependency for `custom-html-widgets` since enqueueing is determined by `wp_enqueue_code_editor()`.
* Remove useless exporting of `code_type` param to JS in `WP_Customize_Code_Editor_Control`.
* Add `disabled` class to Custom HTML widget's Save button when linting errors are present.
* Remove redundant `span` inside CodeEditorControl's `label`.
See #41897 , #12423 , #41872 .
Built from https://develop.svn.wordpress.org/trunk@41957
git-svn-id: http://core.svn.wordpress.org/trunk@41791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 16:39:48 +00:00
Sergey Biryukov
33012ad740
Customize: Use typographic quotation marks in the strings added in [41768].
...
Props audrasjb, tobifjellner.
Fixes #42290 . See #40104 .
Built from https://develop.svn.wordpress.org/trunk@41956
git-svn-id: http://core.svn.wordpress.org/trunk@41790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 14:07:47 +00:00
Sergey Biryukov
f80db51d0f
Menus: Remove an extra space in the <ul>
tag in Walker_Nav_Menu::start_lvl()
.
...
Fixes #42289 .
Built from https://develop.svn.wordpress.org/trunk@41955
git-svn-id: http://core.svn.wordpress.org/trunk@41789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 10:40:46 +00:00
Mel Choyce
d31ab27d26
Customize Menus: Update capitalization of "next" to match case on the "Next" button.
...
Props hardeepasrani.
Fixes #42287 .
Built from https://develop.svn.wordpress.org/trunk@41954
git-svn-id: http://core.svn.wordpress.org/trunk@41788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 10:34:49 +00:00
Mel Choyce
4d41bf7127
Customization Locking: Update error message to use existing strings.
...
Props ramiy.
See #42024 .
Built from https://develop.svn.wordpress.org/trunk@41953
git-svn-id: http://core.svn.wordpress.org/trunk@41787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 10:32:53 +00:00
Weston Ruter
a402312a8d
Customize: Prevent using default template for a base control when it has content rendered on the server.
...
Also prevent invalid `type` attribute from being added to a `select` element.
See #30738 .
Fixes #42286 .
Built from https://develop.svn.wordpress.org/trunk@41952
git-svn-id: http://core.svn.wordpress.org/trunk@41786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-20 03:30:46 +00:00
Weston Ruter
6913ad9219
Widgets: Improve extensibility of the Gallery widget and of media widgets generally.
...
* Introduce a `widget_{$id_base}_instance_schema` filter for plugins to add new properties to a media widget's instance schema.
* Pass all of a gallery widget's instance props to the gallery media frame, not just the ones that core supports.
See #32417 , #41914 .
Fixes #42285 .
Built from https://develop.svn.wordpress.org/trunk@41951
git-svn-id: http://core.svn.wordpress.org/trunk@41785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 23:44:48 +00:00
Weston Ruter
ea21ad6cc1
Customize: Prevent re-highlighting "Add Items" button after available nav menu items pane has already been opened.
...
Amends [41930].
Props bpayton.
See #42114 .
Built from https://develop.svn.wordpress.org/trunk@41950
git-svn-id: http://core.svn.wordpress.org/trunk@41784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 18:38:47 +00:00
Weston Ruter
c8105f1460
Customize: Fix alignment of Customize, Activate, and Live Preview buttons appearing on the Themes admin screen.
...
Amends [41893].
Props Mahvash-Fatima.
See #42215 .
Fixes #42275 .
Built from https://develop.svn.wordpress.org/trunk@41949
git-svn-id: http://core.svn.wordpress.org/trunk@41783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 18:10:47 +00:00
Weston Ruter
d695648084
Customize: Fix rendering issues in theme browsing when opening theme details or performing search in Safari.
...
Props sayedwp.
See #37661 .
Fixes #42052 .
Built from https://develop.svn.wordpress.org/trunk@41948
git-svn-id: http://core.svn.wordpress.org/trunk@41782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 17:57:47 +00:00
Weston Ruter
b1a9139b46
Customize: Prevent drawing attention to save button if status unchanged from publish; account for changes to status/date when alerting about unsaved changes.
...
Also fix malformed ESLint directive from [41933].
Amends [41932].
See #39896 , #42211 .
Built from https://develop.svn.wordpress.org/trunk@41947
git-svn-id: http://core.svn.wordpress.org/trunk@41781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 17:42:54 +00:00
Gary Pendergast
609da14d59
About page: Update the privacy policy dashes.
...
If one were to insert 1—3 dashes into a sentence - on purpose - they should use the correct da–
sh.
See #40794 .
Built from https://develop.svn.wordpress.org/trunk@41946
git-svn-id: http://core.svn.wordpress.org/trunk@41780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 15:36:47 +00:00
John Blackbourn
06eba419fe
Build/Test tools: Document the return value of WP_UnitTestCase::factory()
.
...
See #41017
Built from https://develop.svn.wordpress.org/trunk@41945
git-svn-id: http://core.svn.wordpress.org/trunk@41779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 15:33:48 +00:00
Gary Pendergast
31a3c8e744
About page: Update the privacy policy language.
...
See #40794 .
Built from https://develop.svn.wordpress.org/trunk@41944
git-svn-id: http://core.svn.wordpress.org/trunk@41778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 15:26:48 +00:00
Mel Choyce
02ff01d331
About Page: Commit initial strings for 4.9.
...
Props kristastevens, dd32, hlashbrooke.
See #42087 .
Built from https://develop.svn.wordpress.org/trunk@41943
git-svn-id: http://core.svn.wordpress.org/trunk@41777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 13:57:48 +00:00
Sergey Biryukov
3aa0c23274
Docs: After [37329], update the documentation for register_widget()
and unregister_widget()
.
...
Both functions can accept a `WP_Widget` instance object instead of a `WP_Widget` subclass name, same as `WP_Widget_Factory::register()` and `::unregister()`.
Props behzod.
Fixes #42270 .
Built from https://develop.svn.wordpress.org/trunk@41942
git-svn-id: http://core.svn.wordpress.org/trunk@41776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 13:51:50 +00:00
Sergey Biryukov
1accb992f8
Menus: Pass $recent_args
parameter to nav_menu_items_{$post_type_name}_recent
filter.
...
Props welcher, eclev91.
Fixes #39849 .
Built from https://develop.svn.wordpress.org/trunk@41941
git-svn-id: http://core.svn.wordpress.org/trunk@41775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 13:05:55 +00:00
Sergey Biryukov
9c4fb24458
Docs: Reference WP_Comment_Query::__construct()
as the source of information on accepted arguments in get_comments()
and get_approved_comments()
.
...
See #41017 .
Built from https://develop.svn.wordpress.org/trunk@41940
git-svn-id: http://core.svn.wordpress.org/trunk@41774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 08:49:47 +00:00
Weston Ruter
bdefa6bf34
Post WordPress 4.9 Beta 3 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@41939
git-svn-id: http://core.svn.wordpress.org/trunk@41773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 05:08:48 +00:00
Weston Ruter
0ae160dec1
WordPress 4.9 Beta 3.
...
Built from https://develop.svn.wordpress.org/trunk@41938
git-svn-id: http://core.svn.wordpress.org/trunk@41772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 04:43:48 +00:00
Joe McGill
d21f6799a6
Customizer: Improve handling of crops in the media library.
...
This is a follow up on r41732, implementing the following improvements:
* Attachment parent info is now stored in attachment meta rather than a
separate post meta key.
* Attachments created from contextual crops (e.g. header, logos, etc.) are
filtered out of the media library using a new `_filterContext` method in
`wp.media.controller.Library`.
Props joemcgill, westonruter.
See #21819 .
Built from https://develop.svn.wordpress.org/trunk@41937
git-svn-id: http://core.svn.wordpress.org/trunk@41771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 04:18:47 +00:00
Weston Ruter
20aad6b5c5
Customize: Consistently use input_attrs
as control param key in JS instead of inputAttrs
.
...
See #30738 , #41897 .
Built from https://develop.svn.wordpress.org/trunk@41936
git-svn-id: http://core.svn.wordpress.org/trunk@41770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 03:25:47 +00:00
Weston Ruter
f8d16c8aed
Customize: Move control's fallback selection of default content template to renderContent
method to align with sections and panels.
...
* Only use default control content template when a more specific template doesn't exist.
* Remove extraneous whitespace from being output in `WP_Customize_Control::render()` method.
* Move Custom Header template printing to `customize_controls_print_footer_scripts` action.
See #30738 .
Built from https://develop.svn.wordpress.org/trunk@41935
git-svn-id: http://core.svn.wordpress.org/trunk@41769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 03:04:49 +00:00
Sergey Biryukov
c81acd7cef
I18N: Unify permission error message in wp-admin/ms-delete-site.php
.
...
Props ramiy.
Fixes #42268 .
Built from https://develop.svn.wordpress.org/trunk@41934
git-svn-id: http://core.svn.wordpress.org/trunk@41768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 00:48:50 +00:00
Weston Ruter
887998f7ed
Widgets: Harden logic for checking for valid media URLs.
...
* Update deprecated `isHostedVideo` method to always return `true` since all oEmbeds are now supported.
* Disable `scanImage` for non-image media widgets.
* Ensure embed URL field element is matched from current media frame instance due to bug where media frames are not destroyed upon closing.
* Update error message for invalid video URLs to ask user to check the URL for validity.
Props gk.loveweb, octalmage, westonruter.
See #42039 , #40935 .
Fixes #41052 .
Built from https://develop.svn.wordpress.org/trunk@41933
git-svn-id: http://core.svn.wordpress.org/trunk@41767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 00:07:54 +00:00
Weston Ruter
ed686152f5
Customize: Draw attention to save button after collapsing the publish settings section when the changeset status or date had been changed.
...
Props bpayton, westonruter.
See #42114 , #39896 .
Fixes #42211 .
Built from https://develop.svn.wordpress.org/trunk@41932
git-svn-id: http://core.svn.wordpress.org/trunk@41766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 23:06:49 +00:00
Sergey Biryukov
15c8976cc4
Dashboard: Add missing URL to "Help with testing" link in Gutenberg callout.
...
See #41316 .
Built from https://develop.svn.wordpress.org/trunk@41931
git-svn-id: http://core.svn.wordpress.org/trunk@41765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 22:41:46 +00:00
Weston Ruter
b65d6eb680
Customize: Draw attention to "Add Items" button after creating a new menu.
...
Introduce `wp.customize.utils.highlightButton()` and `wp.customize.Menus.MenuSection#highlightNewItemButton()`.
Props bpayton, melchoyce, afercia, westonruter.
Fixes #42114 .
Built from https://develop.svn.wordpress.org/trunk@41930
git-svn-id: http://core.svn.wordpress.org/trunk@41764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 22:00:50 +00:00
Sergey Biryukov
71dca590dc
Build/Test Tools: Clean up $_REQUEST
and $GLOBALS
after modifying them in _test_list_hierarchical_page()
.
...
Props birgire.
Fixes #42044 .
Built from https://develop.svn.wordpress.org/trunk@41929
git-svn-id: http://core.svn.wordpress.org/trunk@41763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 21:48:48 +00:00
Sergey Biryukov
0f06f90341
Rewrite Rules: Remove redundant if
condition in extract_from_markers()
.
...
Props Dency, yahil, appchecker.
Fixes #39920 .
Built from https://develop.svn.wordpress.org/trunk@41928
git-svn-id: http://core.svn.wordpress.org/trunk@41762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 21:28:46 +00:00
Sergey Biryukov
0afafb7a1b
I18N: Unify error messages in XML-RPC methods wp_deleteCategory()
and wp_deleteComment()
.
...
Props ramiy.
Fixes #39019 .
Built from https://develop.svn.wordpress.org/trunk@41927
git-svn-id: http://core.svn.wordpress.org/trunk@41761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 21:12:51 +00:00
Sergey Biryukov
50db4bceb0
Administration: After [41120], check for a registered action before sending a Bad Request HTTP response status code.
...
Props Clorith.
Fixes #42240 .
Built from https://develop.svn.wordpress.org/trunk@41926
git-svn-id: http://core.svn.wordpress.org/trunk@41760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 21:01:49 +00:00
Sergey Biryukov
469e37446e
Menus: Remove unnecessary top margin for menu item type on Menus screen for correct alignment with the dropdown icon.
...
Props punit5658.
Fixes #41521 .
Built from https://develop.svn.wordpress.org/trunk@41925
git-svn-id: http://core.svn.wordpress.org/trunk@41759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 20:52:49 +00:00
Sergey Biryukov
d2499c4212
Network Admin: After [41923], move the second <p>
tag to a new line for better readability.
...
See #41652 .
Built from https://develop.svn.wordpress.org/trunk@41924
git-svn-id: http://core.svn.wordpress.org/trunk@41758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 20:51:48 +00:00
Sergey Biryukov
a749494900
I18N: Remove hardcoded constant from a translatable string in network_step1()
.
...
Props ramiy.
Fixes #41652 .
Built from https://develop.svn.wordpress.org/trunk@41923
git-svn-id: http://core.svn.wordpress.org/trunk@41757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 20:02:50 +00:00
Sergey Biryukov
73dc2a45e3
Docs: Document $ini_all
staticvar in wp_is_ini_value_changeable()
.
...
Props nileshdudakiya94.
Fixes #41399 .
Built from https://develop.svn.wordpress.org/trunk@41922
git-svn-id: http://core.svn.wordpress.org/trunk@41756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 19:54:48 +00:00
Sergey Biryukov
106beec6a7
I18N: Combine two "Warning" strings in network_step1()
and network_step2()
.
...
Props ramiy.
Fixes #38570 .
Built from https://develop.svn.wordpress.org/trunk@41921
git-svn-id: http://core.svn.wordpress.org/trunk@41755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 19:50:47 +00:00
Sergey Biryukov
eac62c8da0
Date/Time: Use delta comparison in get_gmt_from_date()
tests to avoid race conditions.
...
Props keesiemeijer.
Fixes #38815 .
Built from https://develop.svn.wordpress.org/trunk@41920
git-svn-id: http://core.svn.wordpress.org/trunk@41754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 19:42:48 +00:00
Weston Ruter
9cb9695104
Customize: Fix visibility of overlay notifications in Safari.
...
Props sayedwp, westonruter.
Amends [41390].
See #35210 , #42024 , #42052 .
Built from https://develop.svn.wordpress.org/trunk@41919
git-svn-id: http://core.svn.wordpress.org/trunk@41753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:14:37 +00:00
Felix Arntz
4cb1026757
Multisite: Document all return types in get_networks().
...
Adds more complete documentation to get_networks() and the corresponding methods in WP_Network_Query.
Fixes #42260 .
Built from https://develop.svn.wordpress.org/trunk@41918
git-svn-id: http://core.svn.wordpress.org/trunk@41752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:13:50 +00:00
Sergey Biryukov
0fc7597032
Docs: Document $default_scripts
parameter in _WP_Editors::enqueue_scripts()
.
...
Props danieltj, ajayghaghretiya1.
Fixes #41322 .
Built from https://develop.svn.wordpress.org/trunk@41917
git-svn-id: http://core.svn.wordpress.org/trunk@41751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:09:47 +00:00
Sergey Biryukov
a28bd1d36c
Plugins: Revert unintended change from [41915].
...
See #37430 .
Built from https://develop.svn.wordpress.org/trunk@41916
git-svn-id: http://core.svn.wordpress.org/trunk@41750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 18:01:49 +00:00
Sergey Biryukov
936bf3661f
Plugins: After [41608], make the markup in WP_Plugin_Install_List_Table::no_items()
a bit more readable.
...
See #37430 .
Built from https://develop.svn.wordpress.org/trunk@41915
git-svn-id: http://core.svn.wordpress.org/trunk@41749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:58:48 +00:00
Sergey Biryukov
4dd637acde
Docs: Add @since
entry for WP_Automatic_Updater::after_core_update()
, introduced in [25841].
...
See #41017 , #29086 .
Built from https://develop.svn.wordpress.org/trunk@41914
git-svn-id: http://core.svn.wordpress.org/trunk@41748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:48:49 +00:00
Weston Ruter
ae538512c3
Widgets: Fix previewing embeds in Text widget by allowing parse-embed
admin ajax requests with an empty post_ID
just as WP_oEmbed_Controller::get_proxy_item_permissions_check()
allows.
...
As of #34115 if there is no post context the oEmbed will be cached in an `oembed_cache` custom post type, so having a post as context is no longer a requirement for caching.
Props biskobe, westonruter.
See #34115 , #40450 .
Fixes #40854 .
Built from https://develop.svn.wordpress.org/trunk@41913
git-svn-id: http://core.svn.wordpress.org/trunk@41747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:40:49 +00:00
Jeremy Felt
548d8c2e0d
Multisite: Document all return types in get_sites()
.
...
Adds more complete documentation to `get_sites()` and the corresponding methods in `WP_Site_Query`.
Fixes #41789 .
Built from https://develop.svn.wordpress.org/trunk@41912
git-svn-id: http://core.svn.wordpress.org/trunk@41746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:39:46 +00:00
Sergey Biryukov
53dba84ec7
I18N: Remove <a>
tag from a translatable string in confirm_another_blog_signup()
.
...
Props ramiy.
Fixes #41694 .
Built from https://develop.svn.wordpress.org/trunk@41911
git-svn-id: http://core.svn.wordpress.org/trunk@41745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:36:50 +00:00
Sergey Biryukov
3951984680
I18N: Remove <b>
tag from a translatable string in post_submit_meta_box()
.
...
Props ramiy.
Fixes #41681 .
Built from https://develop.svn.wordpress.org/trunk@41910
git-svn-id: http://core.svn.wordpress.org/trunk@41744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:31:48 +00:00
Sergey Biryukov
6b2a4c4574
I18N: Remove <strong>
tag from a translatable string in Theme_Upgrader::install_strings()
.
...
Props ramiy.
Fixes #41695 .
Built from https://develop.svn.wordpress.org/trunk@41909
git-svn-id: http://core.svn.wordpress.org/trunk@41743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-18 17:20:48 +00:00