John Blackbourn
79dba2c6cc
Uploads: Add tests for device upload capabilities based on user agent.
...
Fixes #35976
Props borgesbruno
Built from https://develop.svn.wordpress.org/trunk@36810
git-svn-id: http://core.svn.wordpress.org/trunk@36777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-03 02:01:26 +00:00
Dominik Schilling
447b284107
Customizer: Merge two translator comments.
...
Built from https://develop.svn.wordpress.org/trunk@36809
git-svn-id: http://core.svn.wordpress.org/trunk@36776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 23:10:26 +00:00
Sergey Biryukov
1dc98b2e49
Taxonomy: Remove unnecessary 'All categories' string on Edit Posts and Edit Links screens and use taxonomy's `all_items` label instead.
...
Props johnbillion.
Fixes #36049 .
Built from https://develop.svn.wordpress.org/trunk@36808
git-svn-id: http://core.svn.wordpress.org/trunk@36775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 22:14:25 +00:00
Andrew Ozz
a0978ec8b4
TinyMCE: then toggling the paste in plain text mode disable the warning message after the second time.
...
Fixes #28612 .
Built from https://develop.svn.wordpress.org/trunk@36807
git-svn-id: http://core.svn.wordpress.org/trunk@36774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 22:10:27 +00:00
Andrew Ozz
40b3bb7988
TinyMCE, inline link:
...
- Add `uiAutocompleteL10n` with translatable strings for use in UI Autocomplete live region.
- Use the above strings in both the editor plugin and wplink.js.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36806
git-svn-id: http://core.svn.wordpress.org/trunk@36773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 20:06:26 +00:00
Weston Ruter
ee85740365
Customize: Remove gap above section contained in panel when initially focusing on control.
...
Props mattwiebe.
Fixes #36050 .
Built from https://develop.svn.wordpress.org/trunk@36805
git-svn-id: http://core.svn.wordpress.org/trunk@36772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 18:37:26 +00:00
Weston Ruter
2caafbe1a0
Customize: Fix visibility of preview in iOS.
...
Removes CSS rule added in [21014] that is now obsolete.
Props adamsilverstein.
See #20805 .
Fixes #35875 .
Built from https://develop.svn.wordpress.org/trunk@36804
git-svn-id: http://core.svn.wordpress.org/trunk@36771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 18:22:26 +00:00
Andrew Ozz
ef83c4e3c2
TinyMCE: update to 4.3.7. Has few bug/regression fixes. Changelog: https://github.com/tinymce/tinymce-dist/blob/4.3.7/changelog.txt .
...
Fixes #36035 .
Built from https://develop.svn.wordpress.org/trunk@36803
git-svn-id: http://core.svn.wordpress.org/trunk@36770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 18:13:26 +00:00
Dominik Schilling
56d28131dc
I18N: Don't use the locale for the HTML language attribute.
...
Locales are codes to identify a language in WordPress which can be different from the specification for language tags, see https://www.w3.org/International/articles/language-tags/ .
An example is `de_DE_formal` or `nl_NL_formal` where the subtag `formal` isn't officially supported.
To give translators the possibility to specify the language tag of their language introduce a string `html_lang_attribute` which can be translated into the language tag which conforms to the specification.
Props SergeyBiryukov.
Fixes #33511 .
Built from https://develop.svn.wordpress.org/trunk@36802
git-svn-id: http://core.svn.wordpress.org/trunk@36769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 16:10:28 +00:00
Weston Ruter
b757de7da9
Customize: Define params on `WP_Customize_Partial::render_callback()` for the sake of subclasses overriding this method.
...
Fixes a strict standards notice regarding the method signature needing to be compatible.
See #27355 .
Built from https://develop.svn.wordpress.org/trunk@36801
git-svn-id: http://core.svn.wordpress.org/trunk@36768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 06:09:26 +00:00
Sergey Biryukov
ef7a559e2e
Docs: Correct filter reference in `pre_get_avatar` filter description.
...
Props henry.wright.
Fixes #36031 .
Built from https://develop.svn.wordpress.org/trunk@36800
git-svn-id: http://core.svn.wordpress.org/trunk@36767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 03:41:28 +00:00
Andrew Ozz
bd161f342d
TinyMCE: fix the close button position in the paste in text mode warning.
...
See #36035 .
Built from https://develop.svn.wordpress.org/trunk@36799
git-svn-id: http://core.svn.wordpress.org/trunk@36766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-02 01:15:27 +00:00
Andrew Ozz
4c59ced046
TinyMCE: update to 4.3.6. Changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #36035 .
Built from https://develop.svn.wordpress.org/trunk@36798
git-svn-id: http://core.svn.wordpress.org/trunk@36765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-01 23:13:31 +00:00
Weston Ruter
f78775a6db
Customize: Use selective refresh to preview changes to site title and tagline in core themes.
...
Fixes issue where `wptexturize` and other filters fail to apply when previewing changes via `postMessage` transport.
See #27355 .
Fixes #33738 .
Built from https://develop.svn.wordpress.org/trunk@36797
git-svn-id: http://core.svn.wordpress.org/trunk@36764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-01 22:18:26 +00:00
Weston Ruter
94b59e7f0d
Customize: Ensure autofocus deep-linking applies for dynamically-created panels, sections, and controls.
...
Removes overly-zealous filtering of autofocus panels, sections, and controls which are unrecognized or for which the user doesn't have the capability to focus (in which case it would no-op anyway). Also defers autofocus logic until instances are created, even after initial `ready` event. This ensures that autofocus can apply for any panels, sections, or controls that get created via the loaded preview.
See #28650 .
Fixes #36018 .
Built from https://develop.svn.wordpress.org/trunk@36796
git-svn-id: http://core.svn.wordpress.org/trunk@36763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-01 22:04:27 +00:00
Pascal Birchler
dfadc557b6
Tests: Add unit tests for `number_format_i18n()`.
...
Props pbearne for initial patch.
Fixes #36029 .
Built from https://develop.svn.wordpress.org/trunk@36795
git-svn-id: http://core.svn.wordpress.org/trunk@36762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-01 21:20:29 +00:00
Sergey Biryukov
5a7a3bb924
I18N: Move the `aria-label` text in `comment_form()` to a separate string for easier translation.
...
Add translator comments.
Props ramiy.
Fixes #36014 .
Built from https://develop.svn.wordpress.org/trunk@36794
git-svn-id: http://core.svn.wordpress.org/trunk@36761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-01 02:14:25 +00:00
Sergey Biryukov
5ed4b4ed7b
I18N: Remove HTML tags from translatable string in `wp-admin/includes/dashboard.php`.
...
Props ramiy, SergeyBiryukov.
Fixes #36013 .
Built from https://develop.svn.wordpress.org/trunk@36793
git-svn-id: http://core.svn.wordpress.org/trunk@36760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-01 01:39:27 +00:00
Andrea Fercia
cc58c4a940
Link Manager: Fix usage of translation functions after [35998].
...
Uses `printf()` instead, adds translator comment.
Fixes #35135 .
Built from https://develop.svn.wordpress.org/trunk@36792
git-svn-id: http://core.svn.wordpress.org/trunk@36759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 23:26:26 +00:00
Boone Gorges
cb9ee7e993
Use `markTestSkipped()` to skip a multisite-only test.
...
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36791
git-svn-id: http://core.svn.wordpress.org/trunk@36758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 22:56:27 +00:00
Boone Gorges
7daae5937c
Ensure that user `__unset()` tests make assertions.
...
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36790
git-svn-id: http://core.svn.wordpress.org/trunk@36757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 22:50:25 +00:00
Boone Gorges
e93ff3f036
Remove erroneous `return` in `date_query` test.
...
Introduced in [34989].
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36789
git-svn-id: http://core.svn.wordpress.org/trunk@36756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 22:41:25 +00:00
Boone Gorges
a4881a9c2c
mbstring.func_overload test should be skipped properly.
...
This avoids PHPUnit notices related to "risky" tests.
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36788
git-svn-id: http://core.svn.wordpress.org/trunk@36755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 22:38:26 +00:00
Boone Gorges
dd07c927da
Remove tests related to `wp_*_post_meta()` functions.
...
These tests functions were introduced as part of the attempt to straighten out
metadata slashing. See [23416]. The functions were later pulled out [23554],
but the tests were not removed at the same time. Since that point, they've
done nothing, so they can safely be removed.
See #21767 . See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36787
git-svn-id: http://core.svn.wordpress.org/trunk@36754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 22:14:26 +00:00
Boone Gorges
32ee9cc085
Tests: Make sure that `test_wp_mail_break_it()` makes an assertion.
...
Let's make what is possibly the oddest test in WordPress even a bit odder.
See https://core.trac.wordpress.org/ticket/28909#comment:47 for backstory on
the test.
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36786
git-svn-id: http://core.svn.wordpress.org/trunk@36753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 22:05:26 +00:00
Boone Gorges
dadda0794e
Tests: `setExpectedDeprecated` and `setExpectedIncorrectUsage` tests should make assertions.
...
Introduced in [31306].
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36785
git-svn-id: http://core.svn.wordpress.org/trunk@36752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 21:56:26 +00:00
Boone Gorges
7136d00cc5
More specific test for a bad callback in `WP_Customize_Partial` test.
...
The 'render_callback' passed to `WP_Customize_Partial` must either echo or
return a result - not both. When it's detected that the callback echoes and
returns a value, the return value takes precedence. This is now reflected in
the corresponding unit test.
Introduced in [36586].
See #27355 . See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36784
git-svn-id: http://core.svn.wordpress.org/trunk@36751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 21:54:25 +00:00
Dominik Schilling
dc6a3284e8
Media: JSHint for `wp-playlist.js`.
...
File was added to the watchlist in [36780].
See #35984 .
Built from https://develop.svn.wordpress.org/trunk@36783
git-svn-id: http://core.svn.wordpress.org/trunk@36750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 21:50:27 +00:00
Boone Gorges
41f15f3c2c
Remove test related to deprecated Customizer `export_preview_data()` method.
...
The method was gutted and deprecated in [36586], so there's no reason to keep
the test.
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36782
git-svn-id: http://core.svn.wordpress.org/trunk@36749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 21:07:27 +00:00
Dominik Schilling
f4d773424a
i18n tools: In `StringExtractor` don't strip slashes from URLs.
...
Props SergeyBiryukov, ocean90.
Fixes #36015 .
Built from https://develop.svn.wordpress.org/trunk@36781
git-svn-id: http://core.svn.wordpress.org/trunk@36748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 20:45:26 +00:00
Dominik Schilling
7bd910b30d
Media: Add support for minified versions of wp-playlist.js, wp-mediaelement.js and wp-mediaelement.css.
...
Fixes #35984 .
Built from https://develop.svn.wordpress.org/trunk@36780
git-svn-id: http://core.svn.wordpress.org/trunk@36747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 20:43:26 +00:00
Boone Gorges
340b8ff6b8
Put an assertion in `test_nonexistent_array()` test.
...
The point of the test is to demonstrate that PHP doesn't throw a notice when
calling `unset()` on an undefined array key. To placate PHPUnit's useless test
detection, we add a redundant assertion.
Introduced in [25240].
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36779
git-svn-id: http://core.svn.wordpress.org/trunk@36746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 20:35:27 +00:00
Boone Gorges
1c2b81f493
Make sure an assertion takes place in 'visited' test for `get_category_parents()`.
...
See #36016 .
Built from https://develop.svn.wordpress.org/trunk@36778
git-svn-id: http://core.svn.wordpress.org/trunk@36745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 20:31:25 +00:00
Andrew Ozz
b8d5769726
TinyMCE, inline link:
...
- Fix running wpLink without tinymce.js and the TinyMCE plugin without wplink.js.
- Do not show the Advanced button in the inline link dialog when wpLink is not loaded.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36777
git-svn-id: http://core.svn.wordpress.org/trunk@36744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 19:38:27 +00:00
Weston Ruter
53493af312
Customize: Fix PHP notice when calling `WP_Customize_Control::json()` inside `content_template()` method.
...
A `temp` control is instantiated when `WP_Customize_Manager:: render_control_templates()` is called. This control needs to explicitly specify an empty settings array to avoid trying to use a `temp` setting which won't exist.
See #35926 .
See #29572 .
Built from https://develop.svn.wordpress.org/trunk@36776
git-svn-id: http://core.svn.wordpress.org/trunk@36743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 07:03:27 +00:00
Sergey Biryukov
d115144857
Formatting: In `sanitize_title_with_dashes()`, convert ` `, `&ndash`, and `&mdash` HTML entities to hyphens on save.
...
Props polevaultweb for initial patch.
Fixes #31790 .
Built from https://develop.svn.wordpress.org/trunk@36775
git-svn-id: http://core.svn.wordpress.org/trunk@36742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 04:42:27 +00:00
Sergey Biryukov
2099e388bb
Comments: Avoid extra AJAX requests when undoing Spam or Trash actions.
...
Props afercia.
Fixes #35904 .
Built from https://develop.svn.wordpress.org/trunk@36774
git-svn-id: http://core.svn.wordpress.org/trunk@36741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 03:20:26 +00:00
Sergey Biryukov
3cd78105dd
I18N: Remove `<code>` tags from translatable string in `wp-admin/network/site-new.php`.
...
Props ramiy.
Fixes #35994 .
Built from https://develop.svn.wordpress.org/trunk@36773
git-svn-id: http://core.svn.wordpress.org/trunk@36740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 03:17:26 +00:00
Sergey Biryukov
376f723485
I18N: Remove `<a>` tag from translatable string in `wp-includes/class-wp-customize-manager.php`.
...
Props ramiy.
Fixes #35992 .
Built from https://develop.svn.wordpress.org/trunk@36772
git-svn-id: http://core.svn.wordpress.org/trunk@36739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 03:14:26 +00:00
Sergey Biryukov
d986a84152
I18N: Remove `<code>` tag from translatable string in `wp-admin/network/site-new.php`.
...
Props ramiy.
Fixes #35989 .
Built from https://develop.svn.wordpress.org/trunk@36771
git-svn-id: http://core.svn.wordpress.org/trunk@36738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 02:44:26 +00:00
Sergey Biryukov
6cf7973221
I18N: Remove HTML tags from translatable strings in `wp-admin/network/themes.php`.
...
Props ramiy.
Fixes #35988 .
Built from https://develop.svn.wordpress.org/trunk@36770
git-svn-id: http://core.svn.wordpress.org/trunk@36737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 02:38:26 +00:00
Weston Ruter
0e5bb06cb8
Customize: Allow `button_labels` to be overridden in `$args` passed to `WP_Customize_Media_Control` and `WP_Customize_Image_Control`.
...
Props chetanchauhan, celloexpressions.
See #33755 .
Fixes #35542 .
Built from https://develop.svn.wordpress.org/trunk@36769
git-svn-id: http://core.svn.wordpress.org/trunk@36736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-29 00:40:26 +00:00
Drew Jaynes
5be4e67c8e
Posts: Add tests for the cascading fallback behavior of several 'public'-related arguments in `register_post_type()`.
...
Covers the 'exclude_from_search', 'publicly_queryable', 'show_ui', 'show_in_menu', 'show_in_nav_menus', and 'show_in_admin_bar' arguments, all of which eventually inherit from 'public' if not set.
Fixes #35985 .
Built from https://develop.svn.wordpress.org/trunk@36768
git-svn-id: http://core.svn.wordpress.org/trunk@36735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 22:59:27 +00:00
Andrea Fercia
9308ec9513
Comments: Add missing placeholder for `printf()` after [36683].
...
Fixes #35392 .
Built from https://develop.svn.wordpress.org/trunk@36767
git-svn-id: http://core.svn.wordpress.org/trunk@36734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 21:39:26 +00:00
Sergey Biryukov
52b54787d5
L10n: Add unit tests for `_n_noop()` and `_nx_noop()`.
...
Props realloc.
Fixes #35961 .
Built from https://develop.svn.wordpress.org/trunk@36766
git-svn-id: http://core.svn.wordpress.org/trunk@36733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 20:49:25 +00:00
Sergey Biryukov
bd4c250078
Docs: Correct `_n_noop()` and `_nx_noop()` descriptions to use third-person singular verbs.
...
Props realloc.
See #35961 .
Built from https://develop.svn.wordpress.org/trunk@36765
git-svn-id: http://core.svn.wordpress.org/trunk@36732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 20:43:26 +00:00
Sergey Biryukov
696d8382f0
Ad a unit test for `bool_from_yn()`.
...
Props borgesbruno.
Fixes #35972 .
Built from https://develop.svn.wordpress.org/trunk@36764
git-svn-id: http://core.svn.wordpress.org/trunk@36731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 19:56:25 +00:00
Drew Jaynes
bd3a1d74d9
Docs: Improve a variety of DocBlocks in wp-includes/deprecated.php.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36763
git-svn-id: http://core.svn.wordpress.org/trunk@36730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 19:32:25 +00:00
Andrew Ozz
fdc538940d
TinyMCE textpattern: `Horizontal line` is translated, `Horizontal rule` is not.
...
See #33300 .
Built from https://develop.svn.wordpress.org/trunk@36762
git-svn-id: http://core.svn.wordpress.org/trunk@36729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 19:18:26 +00:00
Andrew Ozz
d0b708fcb9
TinyMCE textpattern:
...
- Add description of the new patterns to the Shortcuts help modal.
- Fix the layout a bit and make the patterns in two columns.
- Disable the `textpatterns` plugin in IE < 9.
See #33300 .
Built from https://develop.svn.wordpress.org/trunk@36761
git-svn-id: http://core.svn.wordpress.org/trunk@36728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 19:00:27 +00:00
Drew Jaynes
f976c0a6c8
Docs: Add missing parameter and return descriptions to the DocBlock for the deprecated `default_topic_count_text()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36760
git-svn-id: http://core.svn.wordpress.org/trunk@36727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:36:27 +00:00
Drew Jaynes
b09aa14358
Docs: Add missing parameter and return documentation to the DocBlock for the deprecated `_search_terms_tidy()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36759
git-svn-id: http://core.svn.wordpress.org/trunk@36726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:35:26 +00:00
Drew Jaynes
49c0c2b7aa
Docs: Add missing documentation for the `&$post` parameter in the DocBlock for the deprecated `_get_post_ancestors()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36758
git-svn-id: http://core.svn.wordpress.org/trunk@36725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:33:25 +00:00
Drew Jaynes
e92ed036cc
Docs: Add missing documentation for the `$fp` parameter to the DocBlock for the deprecated `debug_fclose()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36757
git-svn-id: http://core.svn.wordpress.org/trunk@36724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:31:26 +00:00
Drew Jaynes
85efc3675a
Docs: Add missing parameter documentation to the DocBlock for the deprecated `debug_fwrite()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36756
git-svn-id: http://core.svn.wordpress.org/trunk@36723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:30:27 +00:00
Drew Jaynes
b878338b1d
Docs: Add missing parameter and return documentation to the DocBlock for the deprecated `debug_fopen()`.
...
Fixes #32246 .
Built from https://develop.svn.wordpress.org/trunk@36755
git-svn-id: http://core.svn.wordpress.org/trunk@36722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:20:26 +00:00
Drew Jaynes
d48cd1cb28
Docs: Add missing documentation for the `$wp_admin_bar` parameter in the DocBlock for the deprecated `wp_admin_bar_dashboard_view_site_menu()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36754
git-svn-id: http://core.svn.wordpress.org/trunk@36721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:18:28 +00:00
Drew Jaynes
268d09070e
Docs: Add missing documentation for the `$title` parameter in the DocBlock for the deprecated `parent_post_rel_link()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36753
git-svn-id: http://core.svn.wordpress.org/trunk@36720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 18:16:26 +00:00
Dominik Schilling
d276b540e4
i18n tools: Sync makepot.php with i18n.svn.
...
Changes: https://i18n.trac.wordpress.org/log/tools/trunk/makepot.php?rev=40331&stop_rev=24749
Fixes #34910 , #34749 .
Built from https://develop.svn.wordpress.org/trunk@36752
git-svn-id: http://core.svn.wordpress.org/trunk@36719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 10:34:27 +00:00
John Blackbourn
393ef889c0
Editor: Remove an unused JavaScript variable so the JS lint tests pass.
...
See #33301
Built from https://develop.svn.wordpress.org/trunk@36751
git-svn-id: http://core.svn.wordpress.org/trunk@36718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 02:19:25 +00:00
John Blackbourn
f7101e6cbf
Rewrite Rules: Ensure `url_to_postid()` operates as expected when it's used in the context of another site within a Multisite network that uses mixed URL schemes.
...
Fixes #35531
Built from https://develop.svn.wordpress.org/trunk@36750
git-svn-id: http://core.svn.wordpress.org/trunk@36717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 02:13:25 +00:00
John Blackbourn
5edba14d1a
HTTP API: Add the missing `1xx` HTTP response codes as constants of the `WP_Http` class, and add tests to ensure all available response codes are covered.
...
Fixes #36294
Built from https://develop.svn.wordpress.org/trunk@36749
git-svn-id: http://core.svn.wordpress.org/trunk@36716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-28 01:46:26 +00:00
Drew Jaynes
b64819d3a0
Docs: Remove a duplicate parameter notation in the DocBlock for the deprecated `the_editor()` function.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36748
git-svn-id: http://core.svn.wordpress.org/trunk@36715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-27 21:41:26 +00:00
Andrew Ozz
32ac4bf58a
TinyMCE, inline link:
...
- Fix in IE (again). Remove setting/getting placeholders, pass the link node instead.
- In the inline dialog: when the selected text looks like URL or email, pre-fill the URL field with it (same as in the modal).
- Fix setting the name of the main button in the modal: Add Link or Update.
- In the modal when clicking Update remove the link if the URL field is empty. That matches the inline dialog behaviour. Otherwise the modal remains open, nothing happens when clicking the Update button there.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36747
git-svn-id: http://core.svn.wordpress.org/trunk@36714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-27 21:33:26 +00:00
Drew Jaynes
b926f7803e
Docs: Update the `@deprecated` tag comment for wp-includes/embed-template.php to reference the correct file path following [36693].
...
See #34561 .
Built from https://develop.svn.wordpress.org/trunk@36746
git-svn-id: http://core.svn.wordpress.org/trunk@36713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-27 21:22:25 +00:00
Drew Jaynes
e0cd5f9dba
Docs: Add a missing summary, `@access` tag, and parameter documentation to the DocBlock for `WP_Customize_Filter_Setting::update()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36745
git-svn-id: http://core.svn.wordpress.org/trunk@36712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-27 21:17:25 +00:00
Dominik Schilling
820c9e2fca
Docs: Improve inline docs for `WP_Dependencies`, `WP_Styles`, and `WP_Scripts`.
...
Also, make them and related files part of WordPress.
See #35964 .
Built from https://develop.svn.wordpress.org/trunk@36744
git-svn-id: http://core.svn.wordpress.org/trunk@36711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-27 20:34:29 +00:00
Andrew Ozz
1f4b40b9c3
TinyMCE, inline link:
...
- Fix applying the changes when pressing the Enter key in Firefox. No longer inserts new paragraph in the editor.
- Fix empty check when getting text from the dialog.
- Always focus the URL field when opening the dialog.
- Add back the keydown events in the modal.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36743
git-svn-id: http://core.svn.wordpress.org/trunk@36710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-27 00:52:26 +00:00
Mike Schroder
f3afec6974
Media: Correct "Exception" typo in WP_Image_Editor_Imagick::strip_meta().
...
Exceptions are caught better if they're not excpeted.
Props joemcgill.
See #33642 .
Built from https://develop.svn.wordpress.org/trunk@36742
git-svn-id: http://core.svn.wordpress.org/trunk@36709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 21:58:26 +00:00
Boone Gorges
fd83d7eb9b
Tests: Don't modify global state before checking whether to skip `get_locale()` tests.
...
Introduced in [36740].
Props ocean90.
See #35965 .
Built from https://develop.svn.wordpress.org/trunk@36741
git-svn-id: http://core.svn.wordpress.org/trunk@36708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 20:29:26 +00:00
Boone Gorges
d4d0235222
Add tests for `get_locale()`.
...
Props realloc.
Fixes #35965 .
Built from https://develop.svn.wordpress.org/trunk@36740
git-svn-id: http://core.svn.wordpress.org/trunk@36707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 20:22:27 +00:00
Drew Jaynes
3f3659cd80
Docs: Fix two typos in return descriptions for `WP_Theme` private `usort()` methods.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36739
git-svn-id: http://core.svn.wordpress.org/trunk@36706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 17:23:26 +00:00
Drew Jaynes
24a301e06e
Docs: Add missing parameter and return notations in the DocBlock for `WP_Theme::_name_sort_i18n()`, a private `usort()` helper.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36738
git-svn-id: http://core.svn.wordpress.org/trunk@36705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 17:21:25 +00:00
Drew Jaynes
3851bc0c56
Docs: Add missing parameter and return notations in the DocBlock for `WP_Theme::_name_sort()`, a private `usort()` helper.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36737
git-svn-id: http://core.svn.wordpress.org/trunk@36704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 17:19:25 +00:00
Drew Jaynes
22ad478325
Docs: Add a missing description for the `&$themes` parameter in the DocBlock for `WP_Theme::sort_by_name()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36736
git-svn-id: http://core.svn.wordpress.org/trunk@36703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 17:12:26 +00:00
Drew Jaynes
4caa9e474c
Docs: Correctly document parameters in the hook doc for the `get_meta_sql` filter as individual parameters rather than an array.
...
When an array of parameters is passed to `do_action|apply_filters_ref_array`, parameters should be documented as individuals instead of as part of the whole.
Props sudar.
Fixes #35962 .
Built from https://develop.svn.wordpress.org/trunk@36735
git-svn-id: http://core.svn.wordpress.org/trunk@36702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 17:10:26 +00:00
Drew Jaynes
c8b530f088
Docs: Add missing parameter and return descriptions to the DocBlock for `WP_Theme::__isset()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36734
git-svn-id: http://core.svn.wordpress.org/trunk@36701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 17:04:27 +00:00
Dominik Schilling
d81ebb08fb
Docs: Add missing `@since` tags to `WP_Styles` properties/methods.
...
See #35964 .
Built from https://develop.svn.wordpress.org/trunk@36733
git-svn-id: http://core.svn.wordpress.org/trunk@36700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 14:39:26 +00:00
Dominik Schilling
a09799fa40
Docs: In `WP_Dependencies` add a changelog entry for the `$group` parameter.
...
See #35964 .
Built from https://develop.svn.wordpress.org/trunk@36732
git-svn-id: http://core.svn.wordpress.org/trunk@36699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 13:50:25 +00:00
Dominik Schilling
c8923e5710
Docs: In `WP_Dependencies` add a changelog entry to methods which were moved from `WP_Scripts` to `WP_Dependencies`.
...
See #35964 .
Built from https://develop.svn.wordpress.org/trunk@36731
git-svn-id: http://core.svn.wordpress.org/trunk@36698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 13:23:25 +00:00
Dominik Schilling
167aae554f
Docs: Document properties of `WP_Scripts` and add missing `@since` tags.
...
See #35964 .
Built from https://develop.svn.wordpress.org/trunk@36730
git-svn-id: http://core.svn.wordpress.org/trunk@36697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 13:05:26 +00:00
Dominik Schilling
23ffb773aa
Docs: Use correct `@since` tags for script enqueue functions.
...
See [4968], [3788].
See #35964 .
Built from https://develop.svn.wordpress.org/trunk@36729
git-svn-id: http://core.svn.wordpress.org/trunk@36696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 12:50:28 +00:00
Drew Jaynes
484d9ec6a6
Docs: Add missing `@param` and `@return` notations to the DocBlock for `WP_Feed_Cache_Transient::save()`.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36728
git-svn-id: http://core.svn.wordpress.org/trunk@36695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 09:27:26 +00:00
Drew Jaynes
2846e3aaef
Docs: Use the correct variable name for the `$post_ID` parameter in the DocBlock for `wp_add_trashed_suffix_to_post_name_for_trashed_posts()`.
...
See #11863 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36727
git-svn-id: http://core.svn.wordpress.org/trunk@36694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 09:25:26 +00:00
Drew Jaynes
1b9a705394
Docs: Standardize summaries for two new internal functions used to handle suffixing trashed posts.
...
Also adds a notation of private access to each.
See #11863 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36726
git-svn-id: http://core.svn.wordpress.org/trunk@36693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 09:23:25 +00:00
Drew Jaynes
38a6262e46
Docs: Add some missing `@param` notations to various DocBlocks in wp-includes/ms-deprecated.php.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36725
git-svn-id: http://core.svn.wordpress.org/trunk@36692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 09:16:26 +00:00
Drew Jaynes
5937e2b23e
Docs: Add a missing `@param` entry for the `$user_login` parameter in the DocBlock for the deprecated `is_site_admin()` function.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36724
git-svn-id: http://core.svn.wordpress.org/trunk@36691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 08:56:26 +00:00
Drew Jaynes
0f27954363
Docs: Add a missing `@param` entry for the `$len` parameter in the DocBlock for the deprecated `generate_random_password()` function.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36723
git-svn-id: http://core.svn.wordpress.org/trunk@36690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 08:54:26 +00:00
John Blackbourn
e3f4059742
Refactor some janky URL tests into data providers for clarity and better error reporting.
...
See #35954
Built from https://develop.svn.wordpress.org/trunk@36722
git-svn-id: http://core.svn.wordpress.org/trunk@36689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 02:11:26 +00:00
John Blackbourn
c4a88a5905
Remove (or at least reduce) the need to reset common `$_SERVER` variables before assertions or between tests, by introducing a method which automatically resets them during test setup.
...
See #35954
Built from https://develop.svn.wordpress.org/trunk@36721
git-svn-id: http://core.svn.wordpress.org/trunk@36688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 02:09:26 +00:00
Andrew Ozz
a2a82e6683
TinyMCE textpattern: fix error when inserting `<hr>` if the new paragraph is not direct child of the body.
...
See #33300 .
Built from https://develop.svn.wordpress.org/trunk@36720
git-svn-id: http://core.svn.wordpress.org/trunk@36687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 01:56:25 +00:00
Ella Iseulde Van Dorpe
84bd9c24ed
TinyMCE: textpattern: clean up
...
* Use editor.once instead of storing into variables.
* Add pattern for hr.
See #33300 .
Built from https://develop.svn.wordpress.org/trunk@36719
git-svn-id: http://core.svn.wordpress.org/trunk@36686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 00:51:26 +00:00
Sergey Biryukov
a375e08d24
L10n: Add test for `get_available_languages()`.
...
Props realloc.
Fixes #35950 .
Built from https://develop.svn.wordpress.org/trunk@36718
git-svn-id: http://core.svn.wordpress.org/trunk@36685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 00:39:25 +00:00
John Blackbourn
f3a52278b8
Correct some more tests which were using `example.org` instead of `WP_TESTS_DOMAIN`.
...
See #34000
Built from https://develop.svn.wordpress.org/trunk@36717
git-svn-id: http://core.svn.wordpress.org/trunk@36684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 00:26:26 +00:00
Andrew Ozz
2bb20c33fa
TinyMCE, inline link:
...
- Make sure the inline dialog is not showing under the advanced modal.
- Fix checking if the link node contains text.
- Fix undo levels so all actions can be undone and redone.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36716
git-svn-id: http://core.svn.wordpress.org/trunk@36683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-26 00:21:26 +00:00
John Blackbourn
df7ac5ab3f
Unify the initialisation of `$_SERVER` variables during test bootstrap. This abstracts the (re-)initialisation into a function that can be used inside of tests too, before assertions are performed.
...
See #35954
Built from https://develop.svn.wordpress.org/trunk@36715
git-svn-id: http://core.svn.wordpress.org/trunk@36682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 22:00:27 +00:00
John Blackbourn
0c16114b06
Canonical: Improve the method names and inline docs for canonical redirect tests.
...
Built from https://develop.svn.wordpress.org/trunk@36714
git-svn-id: http://core.svn.wordpress.org/trunk@36681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 21:56:25 +00:00
John Blackbourn
cfc503e921
Docs: Correct the possible return types for `WP_Dependencies::query()`.
...
See #32246
Built from https://develop.svn.wordpress.org/trunk@36713
git-svn-id: http://core.svn.wordpress.org/trunk@36680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 21:26:26 +00:00
John Blackbourn
d0044e1644
Docs: Improve the description of the `get_object_taxonomies()` function. Uncertainty has no place in documentation.
...
See #32246
Built from https://develop.svn.wordpress.org/trunk@36712
git-svn-id: http://core.svn.wordpress.org/trunk@36679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 21:25:25 +00:00
John Blackbourn
f3abe1e9be
Move some assertions in HTTPS related tests, so failures that occur before the environment reset don't result in a contaminated test environment.
...
See #35954
Built from https://develop.svn.wordpress.org/trunk@36711
git-svn-id: http://core.svn.wordpress.org/trunk@36678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 21:18:28 +00:00
Dominik Schilling
a1bbd5d763
L10n: Add test for `wp_get_pomo_file_data()`.
...
Props realloc.
See #35284 .
Built from https://develop.svn.wordpress.org/trunk@36710
git-svn-id: http://core.svn.wordpress.org/trunk@36677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 15:02:25 +00:00
Dominik Schilling
e5ea82d81a
Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective).
...
Props obrienlabs, thewanderingbrit.
Fixes #34887 .
Built from https://develop.svn.wordpress.org/trunk@36709
git-svn-id: http://core.svn.wordpress.org/trunk@36676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 12:53:27 +00:00
Pascal Birchler
0425e01d21
Embeds: Use a more accessible way to initially hide the iframe.
...
This fixes a bug in Firefox where assets inside the iframe aren't being displayed because they have no computed style.
See #35894 .
Built from https://develop.svn.wordpress.org/trunk@36708
git-svn-id: http://core.svn.wordpress.org/trunk@36675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 10:23:27 +00:00
Drew Jaynes
ae4cf5079d
Docs: Use a third-person singular verb in the DocBlock summary for `wp_add_inline_script()`, introduced in [36633].
...
See #14853 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36707
git-svn-id: http://core.svn.wordpress.org/trunk@36674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 05:14:25 +00:00
Drew Jaynes
8cd541daed
Docs: Standardize DocBlocks for two new `WP_Scripts` methods, `add_inline_script()` and `print_inline_script()`, introduced in [36633].
...
See #14853 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36706
git-svn-id: http://core.svn.wordpress.org/trunk@36673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 05:11:26 +00:00
Drew Jaynes
f5ea3e5dac
Docs: Make a few syntactical improvements to the DocBlock for `_wp_get_current_user()`, introduced in [36651].
...
Includes a cross reference from the DocBlock for `wp_get_current_user()`, which itself is pluggable, but the new internal function is not.
See #19615 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36705
git-svn-id: http://core.svn.wordpress.org/trunk@36672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 05:07:26 +00:00
Drew Jaynes
4c3c2b315f
Posts: Rename the `$args` parameter in `get_post_types_by_support()` to `$feature` for better self-documentation.
...
See #34010 . See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36704
git-svn-id: http://core.svn.wordpress.org/trunk@36671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 04:55:25 +00:00
Andrew Ozz
611acc2193
TinyMCE, inline link dialog:
...
- Reset the inline dialog when canceling the advanced modal. If there is a link it should be on the first stage: follow/preview link.
- Fix tabbing in the inline edit dialog.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36703
git-svn-id: http://core.svn.wordpress.org/trunk@36670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 03:48:26 +00:00
Mike Schroder
ac0e119cad
Post 4.5-beta1 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@36702
git-svn-id: http://core.svn.wordpress.org/trunk@36669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 03:35:25 +00:00
Mike Schroder
0794cac793
4.5-beta1
...
Built from https://develop.svn.wordpress.org/trunk@36701
git-svn-id: http://core.svn.wordpress.org/trunk@36668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 01:49:27 +00:00
Mike Schroder
2656dff5ad
Media: Optimize Imagick settings for quality and filesize
...
- Resamples and sharpens larger images before resize.
- Uses imagick::FILTER_TRIANGLE for a smoother resize.
- Introduces `WP_Image_Editor_Imagick::thumbnail_image()` protected method to efficiently resize images. Similar to the functionality of Imagick's `thumbnailImage()`.
- Introduces `WP_Image_Editor_Imagick::strip_meta()` protected method and `image_strip_meta` filter that, by default, strip image profiles to reduce file size, while leaving color profiles intact.
See: #33642 , #30402 , #28634 .
Props: joemcgill, dnewton, mikeschroder.
Built from https://develop.svn.wordpress.org/trunk@36700
git-svn-id: http://core.svn.wordpress.org/trunk@36667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 22:51:26 +00:00
Aaron Jorbin
5ec9a2aeb4
Revert r36696
...
This broke embeds. Needs a better solution to also make sure all queries from the REST API aren't broken.
see #35907 .
Built from https://develop.svn.wordpress.org/trunk@36699
git-svn-id: http://core.svn.wordpress.org/trunk@36666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 22:12:25 +00:00
Konstantin Obenland
237f6a0e58
Customize: Introduce Logo support for themes.
...
Allows a common theme feature to have a common implementation provided by core and available in a consistent location for users.
See https://make.wordpress.org/core/2016/02/24/theme-logo-support/
Props kwight, enejb, jeherve, bhubbard, samhotchkiss, zinigor, eliorivero, adamsilverstein, melchoyce, ryan, mikeschroder, westonruter, pento, karmatosed, celloexpressions, obenland.
See #33755 .
Built from https://develop.svn.wordpress.org/trunk@36698
git-svn-id: http://core.svn.wordpress.org/trunk@36665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 22:10:26 +00:00
Dominik Schilling
024ffe4980
I18N: Fix placeholders and add translator comments after [36695].
...
See #35705 .
Built from https://develop.svn.wordpress.org/trunk@36697
git-svn-id: http://core.svn.wordpress.org/trunk@36664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 21:49:26 +00:00
Aaron Jorbin
ae9e63805d
Permit sticky posts to affect the query in REST_REQUEST
...
Needed for https://github.com/WP-API/WP-API/issues/2210
Props danielbachhuber.
Fixes #35907 .
Built from https://develop.svn.wordpress.org/trunk@36696
git-svn-id: http://core.svn.wordpress.org/trunk@36663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 21:44:26 +00:00
Jeremy Felt
b4ab399def
Multisite: Provide an "Edit user" link after adding a new user
...
Props codex-m, jeremyfelt.
Fixes #35705 .
Built from https://develop.svn.wordpress.org/trunk@36695
git-svn-id: http://core.svn.wordpress.org/trunk@36662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 21:43:25 +00:00
Drew Jaynes
c9b6bdef7f
Embeds: Update embed template paths and messages in tests, missed in [36693].
...
Props ocean90
See #34561 .
Built from https://develop.svn.wordpress.org/trunk@36694
git-svn-id: http://core.svn.wordpress.org/trunk@36661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 21:21:26 +00:00
Drew Jaynes
0fc00feec3
Embeds: Introduce embed templates into the template hierarchy via theme-compat.
...
Splits wp-includes/embed-template.php, introduced in 4.4, into five new templates that can be individually overridden by themes:
* embed.php
* embed-404.php
* embed-content.php
* header-embed.php
* footer-embed.php
Also introduces a new template tag for outputting the site title, `the_embed_site_title()`.
The five new templates live in theme-compat, allowing for graceful fallbacks should themes prefer not to override any or all of them.
Props swissspidy, imath, ocean90, DrewAPicture.
See #34561 .
Built from https://develop.svn.wordpress.org/trunk@36693
git-svn-id: http://core.svn.wordpress.org/trunk@36660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 20:57:26 +00:00
Andrew Ozz
f3b2eacf33
TinyMCE: remove the iframe expansion CSS fix for iOS Safari. Not needed in iOS 9.x. Fixes visual glitches with the caret.
...
Fixes #35939 .
Built from https://develop.svn.wordpress.org/trunk@36692
git-svn-id: http://core.svn.wordpress.org/trunk@36659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 19:26:26 +00:00
Boone Gorges
b694240cd9
Improve 'offset' calculation when querying for hierarchical terms.
...
When querying for terms in hierarchical taxonomies, `get_terms()` initially
queries for all matching terms, and then trims the located results based on the
`$number` and `$offset` arguments passed to the function. See #8832 . However,
a flaw in the original logic meant that results were failing to be trimmed
properly in cases where `$offset` exceeds the total number of matching terms;
in these cases, we should force an empty array.
Props danielbachhuber.
Fixes #35935 .
Built from https://develop.svn.wordpress.org/trunk@36691
git-svn-id: http://core.svn.wordpress.org/trunk@36658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 19:13:26 +00:00
Sergey Biryukov
6f2fbfb28b
I18N: Move the "Caution:" prefix to a separate string in `wp-admin/includes/network.php`.
...
Props ramiy.
Fixes #35674 .
Built from https://develop.svn.wordpress.org/trunk@36690
git-svn-id: http://core.svn.wordpress.org/trunk@36657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 18:40:26 +00:00
Weston Ruter
2214f69e43
Customize: Allow controls to be registered without any associated settings.
...
* Improves parity between partials and controls. A partial or control can be settingless if instantiated with `settings` param as empty array (otherwise, if null, then the partial/control ID is used).
* Eliminate need to create dummy settings that serve no purpose except to place a control in the UI.
* Removes dummy settings for `create_new_menu` and `new_menu_name`.
* Introduces `WP_Customize_Control::$capability` and `WP_Customize_Partial::$capability`, and if set checks them in the respective `check_capabilities()` methods.
* Prevents PHP fatal error from happening when non-existing settings are provided to control: "Call to a member function `check_capabilities()` on a non-object".
* Fixes issue where nav menu items and widgets were no longer working with selective refresh because cap check was failing.
See #27355 .
Fixes #35926 .
Built from https://develop.svn.wordpress.org/trunk@36689
git-svn-id: http://core.svn.wordpress.org/trunk@36656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 18:28:28 +00:00
Sergey Biryukov
f170058209
Mail: Correct `compact()` usage in `wp_mail()`.
...
Props Ankit K Gupta, maweder.
Fixes #35781 for trunk.
Built from https://develop.svn.wordpress.org/trunk@36688
git-svn-id: http://core.svn.wordpress.org/trunk@36655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 17:38:27 +00:00
Drew Jaynes
15482d5d80
Docs: Add an inline `@see` tag to link up the `plugins_loaded` hook in the description for the `customize_loaded_components` filter.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36687
git-svn-id: http://core.svn.wordpress.org/trunk@36654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 16:44:26 +00:00
Dominik Schilling
c38daf6a7e
Upgrade: Bump db version for `upgrade_450()` in `upgrade_all()`.
...
See #23358 .
Built from https://develop.svn.wordpress.org/trunk@36686
git-svn-id: http://core.svn.wordpress.org/trunk@36653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 16:34:25 +00:00
Mel Choyce
0cafc9abe7
Forms: Swap "Submit" button label for "Enter" on password-protected pages.
...
Props karmatosed, SergeyBiryukov
See #35042 .
Built from https://develop.svn.wordpress.org/trunk@36685
git-svn-id: http://core.svn.wordpress.org/trunk@36652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 16:25:25 +00:00
Jeremy Felt
89771acf96
Multisite: Use "Site Address (URL)" in site-new.php.
...
This uses the same string as single site and `site-info.php` when editing a site in multisite.
Fixes #35934 .
Built from https://develop.svn.wordpress.org/trunk@36684
git-svn-id: http://core.svn.wordpress.org/trunk@36651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 16:14:27 +00:00
Andrea Fercia
43b722b8fc
Accessibility: improve accessibility of the Dashboard "Recent Comments" widget.
...
- Makes the list of comments a list
- Always displays the title of the post the comment relates to, linked to the post itself and no more to the Edit screen
- Headings: changes the visible one in "Recent Comments" and adds a hidden "View more comments" heading before the views links
- Adds the pending status indicator to Pingbacks and Trackbacks
Props rachelbaker, afercia.
Fixes #35392 .
Built from https://develop.svn.wordpress.org/trunk@36683
git-svn-id: http://core.svn.wordpress.org/trunk@36650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 16:07:26 +00:00
Jeremy Felt
fc8691778c
Multisite: Show the main site's domain and path in site-info.php
...
* Use the domain and path combination from `wp_blogs` when displaying the site address for the main site.\
* Update the text from "Site URL" to "Site Address (URL)" for all sites in `site-info.php` to better align with how we refer to this in single site.
Props flixos90, rachelbaker.
Fixes #35632 .
Built from https://develop.svn.wordpress.org/trunk@36682
git-svn-id: http://core.svn.wordpress.org/trunk@36649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 16:06:26 +00:00
Dominik Schilling
34331fc574
Media: Fix broken delete/trash functionality in the library after [36546].
...
Props imath.
See #34350 .
Built from https://develop.svn.wordpress.org/trunk@36681
git-svn-id: http://core.svn.wordpress.org/trunk@36648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 16:03:26 +00:00
Dominik Schilling
d90a013437
External Libraries: Update jQuery to 1.12.1.
...
Release post: http://blog.jquery.com/2016/02/22/jquery-1-12-1-and-2-2-1-released/
Changelog: https://github.com/jquery/jquery/compare/1.12.0...1.12.1
Fixes #35380 .
Built from https://develop.svn.wordpress.org/trunk@36680
git-svn-id: http://core.svn.wordpress.org/trunk@36647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 15:44:26 +00:00
Dominik Schilling
86690daf0b
Multisite: Switch to a usermeta key for email confirmation.
...
To prevent inconsistent data across sites in a network the new email address is now stored in usermeta. Adds visual feedback for the case when an update has failed.
All existing options will be removed on a database upgrade.
Props MikeHansenMe, kovshenin, jeremyfelt, ocean90.
Fixes #23358 .
Built from https://develop.svn.wordpress.org/trunk@36679
git-svn-id: http://core.svn.wordpress.org/trunk@36646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 15:34:28 +00:00
Ryan McCue
21b22c0fb6
REST API: Fix error in Request tests.
...
On the 21st of November, 2014, I committed tests for WP_REST_Request
to the API plugin. Although I didn't realise at the time, I was
causing my future self to go through hours of sufferring.
Unfortunately, I forgot to call parent::setUp() which would break
the tests in subtle ways in the future and would ruin the good part
of my day.
Let this be a warning to all of you who write future unit tests.
See f0396be17e
for the original commit.
Built from https://develop.svn.wordpress.org/trunk@36678
git-svn-id: http://core.svn.wordpress.org/trunk@36645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 08:29:26 +00:00
Andrew Ozz
771cfe22ba
TinyMCE, inline link dialog:
...
- Remove the bottom half of the (old) modal and add autocomplete on the URL field.
- Disable the inline edit dialog in old IE (7, 8 and 9). Use only the modal there.
- Fix in IE10 and 11.
- Fix (most?) remaining edge cases.
- Fix focusing the inline dialog, the modal and the editor.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36677
git-svn-id: http://core.svn.wordpress.org/trunk@36644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 06:20:26 +00:00
Weston Ruter
061cbfadba
Customize: Introduce `customize_nav_menu_searched_items` filter for modifying results of nav menu item searches.
...
This new filter can be used in conjunction with the `customize_nav_menu_available_items` and `customize_nav_menu_available_item_types` filters.
Props TimothyBlynJacobs, westonruter.
Fixes #34947 .
Built from https://develop.svn.wordpress.org/trunk@36676
git-svn-id: http://core.svn.wordpress.org/trunk@36643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 05:57:26 +00:00
Weston Ruter
5ed6b0d31c
Customize: Fix nav menu item search after Backbone update.
...
Fixes regression introduced in [36546].
See #34350 .
Built from https://develop.svn.wordpress.org/trunk@36675
git-svn-id: http://core.svn.wordpress.org/trunk@36642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 05:38:28 +00:00
Ryan McCue
937b0c3241
REST API: Use WP_REST_Request::from_url() when embedding.
...
See #35803 .
Built from https://develop.svn.wordpress.org/trunk@36674
git-svn-id: http://core.svn.wordpress.org/trunk@36641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 04:20:25 +00:00
Ryan McCue
0b7e133054
REST API: Add WP_REST_Request::from_url()
...
Allows converting a REST URL into a Request object.
Props danielbachhuber.
Fixes #35803 .
Built from https://develop.svn.wordpress.org/trunk@36673
git-svn-id: http://core.svn.wordpress.org/trunk@36640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 04:01:26 +00:00
Aaron Jorbin
5c9d92b7f8
Add Additional filters to Press This
...
3 new filters that aim to improve the extensibility of Press This:
1) `press_this_save_post_content` - Applied right after the side_load_images in order to allow potential side loads of other types of media.
Example use case: side load non-image media, such as audio or video.
2) `press_this_useful_html_elements`
Allows filtering of currently hard coded array of HTML elements allowed in fetch_source_html step for special cases where additional HTML elements need to be kept.
Example use case: HTML5 elements, such as amp-img, that someone wants to pull in.
3) `press_this_suggested_content`
A filter for the content right before it's passed to the editor and presented to the user.
Example use case is when someone stored posts in a different, non-HTML format, such as Markdown, this is essential.
Fixes #34455 .
Props cadeyrn, kraftbj
Built from https://develop.svn.wordpress.org/trunk@36672
git-svn-id: http://core.svn.wordpress.org/trunk@36639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 03:56:24 +00:00
Aaron Jorbin
e4dc3d1232
Make Custom Taxonomy Feeds Auto-discoverable
...
This helps improve the parity between custom taxonomies and built in taxonomies. It is one small step to #makeCustomTaxonomyFeedsGreatAgain.
Fixes #23677
Props mdgl, stevenkword
Built from https://develop.svn.wordpress.org/trunk@36671
git-svn-id: http://core.svn.wordpress.org/trunk@36638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 02:36:25 +00:00
Sergey Biryukov
aff11cdc9f
I18N: Remove `<code>` tag from translatable string in `wp-admin/includes/class-wp-filesystem-ssh2.php`.
...
Props ramiy.
Fixes #35741 .
Built from https://develop.svn.wordpress.org/trunk@36670
git-svn-id: http://core.svn.wordpress.org/trunk@36637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 02:11:28 +00:00
Sergey Biryukov
4a2676ab8b
I18N: Add translator comments and context to "New Site Created" email notification strings.
...
Props ramiy.
Fixes #35716 .
Built from https://develop.svn.wordpress.org/trunk@36669
git-svn-id: http://core.svn.wordpress.org/trunk@36636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 02:04:28 +00:00
Sergey Biryukov
37d3add855
I18N: Replace hardcoded URL in a translatable string with a placeholder in `wp-admin/upload.php`.
...
Props ramiy.
Fixes #35743 .
Built from https://develop.svn.wordpress.org/trunk@36668
git-svn-id: http://core.svn.wordpress.org/trunk@36635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 01:48:27 +00:00
Sergey Biryukov
54b8932923
Widgets: Avoid a PHP notice in `is_dynamic_sidebar()` is a sidebar is registered but does not yet have an index in the `sidebars_widgets` option.
...
Props dlh.
Fixes #35928 .
Built from https://develop.svn.wordpress.org/trunk@36667
git-svn-id: http://core.svn.wordpress.org/trunk@36634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 01:37:26 +00:00
Sergey Biryukov
d0863ec901
I18N: Remove `<code>` tag from translatable string in `wp-admin/theme-install.php`.
...
Props ramiy.
Fixes #35739 .
Built from https://develop.svn.wordpress.org/trunk@36666
git-svn-id: http://core.svn.wordpress.org/trunk@36633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 01:30:25 +00:00
Sergey Biryukov
969ccec7d2
I18N: Remove `<code>` tags from translatable strings in `wp-admin/install.php`.
...
Props ramiy.
Fixes #35738 .
Built from https://develop.svn.wordpress.org/trunk@36665
git-svn-id: http://core.svn.wordpress.org/trunk@36632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 01:22:26 +00:00
Sergey Biryukov
f606d335f8
I18N: Add missing periods to two strings in `wp-admin/network/sites.php`
...
Props ramiy.
Fixes #35720 .
Built from https://develop.svn.wordpress.org/trunk@36664
git-svn-id: http://core.svn.wordpress.org/trunk@36631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 01:09:25 +00:00
Sergey Biryukov
95bd9f37ca
I18N: Remove `<em>` tag from translatable string in `wp-admin/includes/class-wp-ms-sites-list-table.php`.
...
Props ramiy.
Fixes #35676 .
Built from https://develop.svn.wordpress.org/trunk@36663
git-svn-id: http://core.svn.wordpress.org/trunk@36630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 01:06:26 +00:00
Sergey Biryukov
519cde5a18
I18N: Remove HTML tags from translatable strings in `wp-admin/plugins.php`.
...
Props ramiy.
Fixes #35679 .
Built from https://develop.svn.wordpress.org/trunk@36662
git-svn-id: http://core.svn.wordpress.org/trunk@36629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 01:02:25 +00:00
Sergey Biryukov
7c66e0648a
Comments: In `wp_xmlrpc_server::pingback_ping()`:
...
* Rename `$linea` to `$remote_source` for clarity.
* Add `remote_source` to comment data, so it's available to `preprocess_comment` and `comment_post` filters.
* Pass the original (unfiltered) response source to the filters too (as `remote_source_original` in comment data).
Props dshanske for the original patch.
Fixes #34141 .
Built from https://develop.svn.wordpress.org/trunk@36661
git-svn-id: http://core.svn.wordpress.org/trunk@36628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 00:55:26 +00:00
Sergey Biryukov
74f707ff6b
Comments: Pass comment data to the `comment_post` filter.
...
Props dshanske.
See #34141 .
Built from https://develop.svn.wordpress.org/trunk@36660
git-svn-id: http://core.svn.wordpress.org/trunk@36627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 00:49:26 +00:00
Sergey Biryukov
ab0eb71d21
Revisions: Clean up `_wp_post_revision_fields()`:
...
* Move the array processing to a new function, `_wp_post_revision_data()`.
* Make both functions accept a post array or a `WP_Post` object.
* Always apply the `_wp_post_revision_fields` filter and pass the post data to it.
Fixes #13382 .
Built from https://develop.svn.wordpress.org/trunk@36659
git-svn-id: http://core.svn.wordpress.org/trunk@36626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-24 00:44:59 +00:00
Sergey Biryukov
f9a4120299
I18N: Remove `<strong>` tags from translatable strings in `wp-admin/custom-header.php`.
...
Add translator comments.
Props ramiy.
Fixes #35675 .
Built from https://develop.svn.wordpress.org/trunk@36658
git-svn-id: http://core.svn.wordpress.org/trunk@36625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 23:43:26 +00:00
Sergey Biryukov
9cb7cab875
I18N: Remove `<a>` tags from translatable strings in `wp-admin/themes.php`.
...
Props ramiy.
Fixes #35745 .
Built from https://develop.svn.wordpress.org/trunk@36657
git-svn-id: http://core.svn.wordpress.org/trunk@36624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 23:39:25 +00:00
Sergey Biryukov
5ca5900587
I18N: Remove `<a>` tag from translatable string in `wp-admin/options-general.php`.
...
Add translator comment.
Props ramiy.
Fixes #35673 .
Built from https://develop.svn.wordpress.org/trunk@36656
git-svn-id: http://core.svn.wordpress.org/trunk@36623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 23:28:25 +00:00
Sergey Biryukov
a7008072db
I18N: Remove `<a>` tag from translatable string in `wp-admin/user-edit.php`.
...
Add translator comment.
Props ramiy.
Fixes #35672 .
Built from https://develop.svn.wordpress.org/trunk@36655
git-svn-id: http://core.svn.wordpress.org/trunk@36622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 23:27:25 +00:00
Dominik Schilling
cf5df5a7ce
Schema: Add an index to `wp_users.user_email`.
...
Improves lookup of an email address on large user tables.
See #9568 .
Fixes #33376 .
Built from https://develop.svn.wordpress.org/trunk@36654
git-svn-id: http://core.svn.wordpress.org/trunk@36621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 23:21:26 +00:00
Sergey Biryukov
f69045c9a6
I18N: Remove `<strong>` tag from translatable string in `wp-admin/import.php`.
...
Add translator comment.
Props ramiy.
Fixes #35671 .
Built from https://develop.svn.wordpress.org/trunk@36653
git-svn-id: http://core.svn.wordpress.org/trunk@36620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 23:09:26 +00:00
Pascal Birchler
8725644d40
Posts: Introduce `get_post_types_by_support()`.
...
Similar to `get_post_types()`, this new function returns a list of post type names that support a specific feature.
Props wpsmith, barryceelen, swissspidy.
Fixes #34010 .
Built from https://develop.svn.wordpress.org/trunk@36652
git-svn-id: http://core.svn.wordpress.org/trunk@36619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 22:50:26 +00:00
Pascal Birchler
9612c26db3
Users: Introduce `_wp_get_current_user()` for improved backward compatibility.
...
This new helper function is used by the pluggable functions `wp_get_current_user()` and `get_currentuserinfo()`, which was previously being called by the former before [36311]. Without it, infinite loops could be caused when plugins implement these functions, as they are now called the other way around.
Fixes #19615 .
Built from https://develop.svn.wordpress.org/trunk@36651
git-svn-id: http://core.svn.wordpress.org/trunk@36618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 22:26:28 +00:00
Weston Ruter
fa3032b076
Customize: Fix and extend broken ajax unit tests to account for partials being skipped from rendering.
...
Fixes regression introduced in [36643].
See #35914 .
Built from https://develop.svn.wordpress.org/trunk@36650
git-svn-id: http://core.svn.wordpress.org/trunk@36617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 21:46:27 +00:00
Dominik Schilling
57aec38add
Styles: Clarify the allowed values for the `$media` parameter of `wp_register_style()`/`wp_enqueue_style()`.
...
Adds unit test.
Fixes #35921 .
Built from https://develop.svn.wordpress.org/trunk@36649
git-svn-id: http://core.svn.wordpress.org/trunk@36616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 20:41:26 +00:00
Pascal Birchler
383c422527
Embeds: Only display an iframe when it was successfully loaded.
...
This prevents showing a blank iframe by first checking if a message was successfully received from it.
Fixes #35894 .
Built from https://develop.svn.wordpress.org/trunk@36648
git-svn-id: http://core.svn.wordpress.org/trunk@36615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 20:23:25 +00:00
Boone Gorges
6d8a3f3612
Query: Search should match `post_excerpt` in addition to title and content.
...
When ordering search results, exact matches in the post excerpt are weighted
above those in post content, but below those in the post title.
Props swissspidy, sebastian.pisula.
FIxes #35762 .
Built from https://develop.svn.wordpress.org/trunk@36647
git-svn-id: http://core.svn.wordpress.org/trunk@36614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 20:14:26 +00:00
Boone Gorges
8b786f3d1c
Make `$taxonomy` parameter optional in `get_edit_term_link()`.
...
Props nicdford, sc0ttkclark.
Fixes #35922 .
Built from https://develop.svn.wordpress.org/trunk@36646
git-svn-id: http://core.svn.wordpress.org/trunk@36613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 20:07:28 +00:00
Weston Ruter
87a9bf2b37
Docs: Use markdown instead of HTML for `code` formatting.
...
Fixes phpdoc usage in [36622], [36608], [35724], [35307].
See #35898 .
See #35869 .
See #34738 .
See #33552 .
Built from https://develop.svn.wordpress.org/trunk@36645
git-svn-id: http://core.svn.wordpress.org/trunk@36612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 19:18:27 +00:00
Sergey Biryukov
613cd1b020
Docs: Correct `$number` type in `number_format_i18n()`.
...
Props salcode.
Fixes #35893 .
Built from https://develop.svn.wordpress.org/trunk@36644
git-svn-id: http://core.svn.wordpress.org/trunk@36611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 18:44:26 +00:00
Weston Ruter
aa2db425d8
Customize: Skip exporting partials to client and handling rendering requests if user can't modify associated settings.
...
Introduces `WP_Customize_Partial::check_capabilities()` for parity with `WP_Customize_Control::check_capabilities()`.
See #27355 .
Fixes #35914 .
Built from https://develop.svn.wordpress.org/trunk@36643
git-svn-id: http://core.svn.wordpress.org/trunk@36610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 18:14:26 +00:00
Drew Jaynes
e66a510e0c
Docs: Update the type for `$callback` parameters to `callable` in DocBlocks for `add_settings_section()` and `add_settings_field()`.
...
Props aidanlane.
Fixes #35772 .
Built from https://develop.svn.wordpress.org/trunk@36642
git-svn-id: http://core.svn.wordpress.org/trunk@36609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 18:05:27 +00:00
Dominik Schilling
410ed6d615
Customizer: Add visual feedback to reorder buttons.
...
Props coreymcollins, melchoyce.
Fixes #35041 .
Built from https://develop.svn.wordpress.org/trunk@36641
git-svn-id: http://core.svn.wordpress.org/trunk@36608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 17:54:26 +00:00
Drew Jaynes
54ab5fa68c
Users: Pass the array of user IDs being deleted to the `delete_user_form` action hook in two places.
...
Also updates documentation for the first parameter, `$current_user`, to clarify that it holds the `WP_User` object for the _current_ user, not the one being deleted.
Props usermrpapa.
Fixes #35063 .
Built from https://develop.svn.wordpress.org/trunk@36640
git-svn-id: http://core.svn.wordpress.org/trunk@36607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 17:42:27 +00:00
Dominik Schilling
0485352508
Customizer: Contain "No image set/selected" in dashed border.
...
Props Ankit K Gupta, chris_dev.
Fixes #35826 .
Built from https://develop.svn.wordpress.org/trunk@36639
git-svn-id: http://core.svn.wordpress.org/trunk@36606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 17:27:26 +00:00
Pascal Birchler
81e9462ca3
Themes: Improve error messages for broken themes.
...
Props mayukojpn for initial patch.
Fixes #35286 .
Built from https://develop.svn.wordpress.org/trunk@36638
git-svn-id: http://core.svn.wordpress.org/trunk@36605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 17:20:27 +00:00
Pascal Birchler
0c242d0666
Embeds: Make the click event handler work for dynamically added links.
...
Props JamesDiGioia.
Fixes #35630 .
Built from https://develop.svn.wordpress.org/trunk@36637
git-svn-id: http://core.svn.wordpress.org/trunk@36604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 17:16:26 +00:00
Drew Jaynes
a0aa608970
Docs: Improve documentation for `WP_REST_Request` to highlight a caveat of ArrayAccess when it comes to passing similar arguments for multiple request methods.
...
Props danielbachhuber, DrewAPicture.
Fixes #35799 .
Built from https://develop.svn.wordpress.org/trunk@36636
git-svn-id: http://core.svn.wordpress.org/trunk@36603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:57:26 +00:00
Pascal Birchler
33048247c8
Embeds: Load the default site icon from the `wp-includes` directory.
...
Files inside the `wp-admin` directory may not be publicly available. This copies the blue WordPress logo to `wp-includes/images`.
Props thewanderingbrit.
Fixes #35322 .
Built from https://develop.svn.wordpress.org/trunk@36635
git-svn-id: http://core.svn.wordpress.org/trunk@36602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:55:27 +00:00
Boone Gorges
c5b77145a8
Docs: Improve description of `get_term()` return value.
...
Props sebastian.pisula.
Fixes #35919 .
Built from https://develop.svn.wordpress.org/trunk@36634
git-svn-id: http://core.svn.wordpress.org/trunk@36601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:48:25 +00:00
Pascal Birchler
b47a3831ee
Script Loader: Introduce `wp_add_inline_script()`.
...
This new function can be used to add inline JavaScript before and after enqueued scripts, just like `wp_add_inline_style()` works for CSS.
Props atimmer, abiralneupane, ocean90, swissspidy.
Fixes #14853 .
Built from https://develop.svn.wordpress.org/trunk@36633
git-svn-id: http://core.svn.wordpress.org/trunk@36600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:44:26 +00:00
Boone Gorges
ba5cc4e776
Query: Allow a seed value to be passed when using 'rand' `$orderby`.
...
`WP_Query` allows random ordering; `'orderby' => 'rand'` translates to
`ORDER BY RAND()`. This syntax results in random ordering that is not
consistent from request to request. MySQL supports the passing of a seed value
to random sorts, such as `ORDER BY RAND(3)`, which will return the same
random value each time it's called. `WP_Query` now supports this syntax, by
passing `RAND(3)` (or whatever integer seed value you'd like) as the value
of `'orderby'`.
Props hlashbrooke.
Fixes #35692 .
Built from https://develop.svn.wordpress.org/trunk@36632
git-svn-id: http://core.svn.wordpress.org/trunk@36599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:40:26 +00:00
Dominik Schilling
710be9d2ba
L10n: Add test for `wp_dropdown_languages()`.
...
Props realloc.
Fixes #35294 .
Built from https://develop.svn.wordpress.org/trunk@36631
git-svn-id: http://core.svn.wordpress.org/trunk@36598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:28:26 +00:00
Dominik Schilling
f6b632983f
Updates: Pass locales of all available languages to the themes/plugins update API.
...
This ensures that language packs for all languages in a Multisite install are updated.
Fixes #34937 .
Built from https://develop.svn.wordpress.org/trunk@36630
git-svn-id: http://core.svn.wordpress.org/trunk@36597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:17:26 +00:00
Dominik Schilling
724ccb492f
In `WP::handle_404()` introduce a filter `pre_handle_404` to short-circuit default header status handling.
...
This comes handy if you use WordPress without posts, means `$wp_query` contains no results.
Props prettyboymp, hakre, prettyboymp, Denis-de-Bernardy, ethitter, ocean90.
Fixes #10722 .
Built from https://develop.svn.wordpress.org/trunk@36629
git-svn-id: http://core.svn.wordpress.org/trunk@36596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 16:08:25 +00:00
Andrew Ozz
d7b56a13d9
In `wp_upload_dir()` do not cache error from `wp_mkdir_p()` when a directory cannot be created. Keep trying to create the dirs. This happens mostly in file upload context.
...
See #34359 .
Built from https://develop.svn.wordpress.org/trunk@36628
git-svn-id: http://core.svn.wordpress.org/trunk@36595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 15:58:28 +00:00
Ella Iseulde Van Dorpe
3d68488ff6
TinyMCE: inline text patterns
...
First run.
See #33300 .
Built from https://develop.svn.wordpress.org/trunk@36627
git-svn-id: http://core.svn.wordpress.org/trunk@36594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 08:33:27 +00:00
Boone Gorges
b23b89c8a9
Docs: Correct `param` types on some filters in `wp_filter_comment()`.
...
Introduced in [26491].
Props meitar, netweb.
Fixes #35908 .
Built from https://develop.svn.wordpress.org/trunk@36626
git-svn-id: http://core.svn.wordpress.org/trunk@36593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 03:06:26 +00:00
Boone Gorges
072c791df0
Query: `is_*( $int )` should not falsely match strings starting with "$int".
...
Another chapter in the Storied Annals of Weird `in_array()` Behavior:
`in_array( 4, array( "4-cool-dudes" ) );` resolves to `true`, such that
`is_page( 4 )` was returning true for posts with the name `'4-cool-dudes'`.
We work around this behavior by ensuring that values passed to the `is_`
methods are cast to strings before the `in_array()` checks. ID checks still
work as expected; see #24674 .
Props mikejolley, swissspidy, boonebgorges.
Fixes #35902 .
Built from https://develop.svn.wordpress.org/trunk@36625
git-svn-id: http://core.svn.wordpress.org/trunk@36592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 02:21:25 +00:00
Weston Ruter
53e0315242
Customize: Let `WP_Customize_Selective_Refresh` class be `final` to match manager and other component classes.
...
This class is not intended to be extended.
See #27355 .
Built from https://develop.svn.wordpress.org/trunk@36624
git-svn-id: http://core.svn.wordpress.org/trunk@36591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 01:28:25 +00:00
Weston Ruter
49c7012a7e
Customize: Ensure `dynamic_sidebar()` finishes with removing the sidebar ID from the `current_dynamic_sidebar_id_stack`.
...
This ensures that widgets appearing after a nested sidebar will continue to be selective refreshable.
See #27355 .
Built from https://develop.svn.wordpress.org/trunk@36623
git-svn-id: http://core.svn.wordpress.org/trunk@36590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 01:22:26 +00:00
Weston Ruter
aa9ef96a52
Customize: Prevent dropping backslashes from input on general settings and settings for nav menus and some widgets.
...
Ensures that intentional backslashes (e.g. "\o/") can be used in:
* Site title
* Site description
* Nav menu name
* Custom Menu widget title
* Tag Cloud widget title
* Text widget body if can't `unfiltered_html`
The latter three are also fixed on the widgets admin page.
Fixes #35898 .
Built from https://develop.svn.wordpress.org/trunk@36622
git-svn-id: http://core.svn.wordpress.org/trunk@36589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 01:02:26 +00:00
Dominik Schilling
e512f158df
Add translators comments to wp-admin/users.php.
...
Props ramiy.
Fixes #35885 .
Built from https://develop.svn.wordpress.org/trunk@36621
git-svn-id: http://core.svn.wordpress.org/trunk@36588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-23 00:05:28 +00:00
Dominik Schilling
13f76b11d1
Template: Update label for the username field in `wp_login_form()` after [36617].
...
See #9568 .
Built from https://develop.svn.wordpress.org/trunk@36620
git-svn-id: http://core.svn.wordpress.org/trunk@36587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 23:38:27 +00:00
Andrea Fercia
fcb3e5ec2f
Accessibility: Improve the color contrast ratio for the input placeholders.
...
Also, cleans up a bit the CSS removing rules for elements that don't use
placeholders any more.
Fixes #35777 .
Built from https://develop.svn.wordpress.org/trunk@36619
git-svn-id: http://core.svn.wordpress.org/trunk@36586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 23:29:26 +00:00
Andrea Fercia
f96653c2b5
Accessibility: Remove title attributes from the Plugin details modal.
...
Also, improves accessibility of the star rating reviews links.
Fixes #35111 .
Built from https://develop.svn.wordpress.org/trunk@36618
git-svn-id: http://core.svn.wordpress.org/trunk@36585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 23:18:29 +00:00
Dominik Schilling
7ebe2c1e7a
Authentication: Allow users to log in using their email address.
...
Introduces `wp_authenticate_email_password()` which is hooked into `authenticate` after `wp_authenticate_username_password()`.
Props Denis-de-Bernardy, ericlewis, vhomenko, MikeHansenMe, swissspidy, ocean90.
Fixes #9568 .
Built from https://develop.svn.wordpress.org/trunk@36617
git-svn-id: http://core.svn.wordpress.org/trunk@36584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 23:15:27 +00:00
Mike Schroder
83d147c29d
Media: Update unit tests after change to default image quality.
...
Updates unit tests to reflect new default quality setting of '82' after [36615].
See #33642 .
Built from https://develop.svn.wordpress.org/trunk@36616
git-svn-id: http://core.svn.wordpress.org/trunk@36583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 23:14:26 +00:00
Mike Schroder
55cc876141
Media: Reduce default image compression quality to '82'.
...
Changes default image compression quality from '90' to '82'.
This reduces generated image file sizes by ~25% while
keeping DSSIM < 0.0023, with both Imagick and GD.
Props @joemcgill, @dnewton.
See #33642 .
Built from https://develop.svn.wordpress.org/trunk@36615
git-svn-id: http://core.svn.wordpress.org/trunk@36582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 22:19:26 +00:00
Boone Gorges
3f7441d674
Allow `get_terms()` to fetch terms regardless of taxonomy.
...
`get_terms()` has historically required that a taxonomy be specified when
querying terms. This requirement is related to the fact that terms could
formerly be shared between taxonomies, making `$taxonomies` critical for
disambiguation. Since terms can no longer be shared as of 4.4, it'
s desirable to be able to query for terms regardless of what taxonomy they're in.
Because it's now optional to pass taxonomies, it's no longer necessary to have
`$taxonomies` as the first (and required) parameter for `get_terms()`. The new
function signature is `get_terms( $args )`, where 'taxonomy' can (optionally) be
passed as part of the `$args` array. This syntax is more consistent with
functions like `get_users()` and `get_posts()`.
We've maintained backward compatibility by always giving precedence to the old
argument format. If a second parameter is detected, or if it's detected that
the first parameter is a list of taxonomy names rather than an `$args` array,
`get_terms()` will parse the function arguments in the legacy fashion.
Props flixos90, swissspidy, DrewAPicture, boonebgorges.
Fixes #35495 .
Built from https://develop.svn.wordpress.org/trunk@36614
git-svn-id: http://core.svn.wordpress.org/trunk@36581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 22:17:26 +00:00
Eric Lewis
360a30d55e
Menus: Ensure backslashes are saved in menu item fields.
...
This was a regression introduced in [36510] which caused menu item fields to not save field content with backslashes in them.
Props westonruter.
See #14134 .
Built from https://develop.svn.wordpress.org/trunk@36613
git-svn-id: http://core.svn.wordpress.org/trunk@36580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 19:55:28 +00:00
Andrea Fercia
eba32e3b6f
Accessibility: Remove the revisions limit warning from the Publish box.
...
After [36053] don't show a warning about something users can't change
because there's no control exposed in the UI for that. The Revisions
screen is probably a better place to show a more complete information.
Fixes #35029 .
Built from https://develop.svn.wordpress.org/trunk@36612
git-svn-id: http://core.svn.wordpress.org/trunk@36579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 16:23:26 +00:00
Weston Ruter
ae2657dd32
Customize: Prevent PHP notice and JS error caused by widgets and nav menus components if user only has `customize` capability.
...
Short-circuits components from initializing their hooks needlessly if current user lacks required capability.
Fixes #35895 .
Built from https://develop.svn.wordpress.org/trunk@36611
git-svn-id: http://core.svn.wordpress.org/trunk@36578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 05:31:27 +00:00
Weston Ruter
5228a99e97
Customize: Update unit test for `WP_Customize_Nav_Menu_Item_Setting::value_as_wp_post_nav_menu_item()` to account for slashing if user can't `unfiltered_html`.
...
Fixes unit tests which broke under multisite config after [36608].
Fixes #35869 .
Built from https://develop.svn.wordpress.org/trunk@36610
git-svn-id: http://core.svn.wordpress.org/trunk@36577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 05:10:27 +00:00
Boone Gorges
68f3ee8f64
Docs: `WP_Meta_Query` accepts 'EXISTS' or 'NOT EXISTS' for `$compare`.
...
Props apaliku, jdgrimes.
Fixes #35891 .
Built from https://develop.svn.wordpress.org/trunk@36609
git-svn-id: http://core.svn.wordpress.org/trunk@36576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 03:56:27 +00:00
Weston Ruter
b206327acb
Customize: Fix previewing and updating of nav menu items containing slashed/slashable characters.
...
Prevents slashes from being added when a user without `unfiltered_html` previews a nav menu item containing an apostrophe or some other slashable character, and prevents the loss of an intentional slash (e.g. "\o/") when saving a nav menu item, regardless of capability.
Fixes #35869 .
Built from https://develop.svn.wordpress.org/trunk@36608
git-svn-id: http://core.svn.wordpress.org/trunk@36575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-22 00:14:25 +00:00
Eric Lewis
04da8bb63a
Posts: Non-trashed posts should take slug priority over trashed posts.
...
When determining a unique post slug, trashed posts are taken into account. Previously, new posts would add suffixes to their slugs (e.g. `about-2`) when a post in the trash had the desired slug (e.g. `about`).
To avoid this behavior, when a post is trashed its slug (i.e. `post_name`) is now suffixed with `-%trashed%`. The post's pre-trash slug is stored as post meta, and if the post is restored from trash, its desired slug is reapplied.
For existing trashed posts which don't have the `-%trashed%` suffix, the suffix is added when a post with its desired slug is created.
Props ocean90, boonebgorges, ryan, SergeyBiryukov, coffee2code, helen, williamsba1.
See #11863 .
Built from https://develop.svn.wordpress.org/trunk@36607
git-svn-id: http://core.svn.wordpress.org/trunk@36574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-21 21:45:28 +00:00
Weston Ruter
b3d6f127eb
Customize: Fix "Loading..." message from persisting in panel title when user does not have `manage_options` cap to edit `blogname`.
...
Reverts part of [36388].
Fixes #35579 .
Built from https://develop.svn.wordpress.org/trunk@36606
git-svn-id: http://core.svn.wordpress.org/trunk@36573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-21 06:15:28 +00:00
Dominik Schilling
141b4dbd91
JSHint for [36602].
...
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36605
git-svn-id: http://core.svn.wordpress.org/trunk@36572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 22:14:27 +00:00
Dominik Schilling
826e2d8ea1
Script Loader: Fix missing script output when the groups of dependencies are different.
...
Aka: Don't lose the grandchild.
Props gitlost, ocean90.
Fixes #35873 .
Built from https://develop.svn.wordpress.org/trunk@36604
git-svn-id: http://core.svn.wordpress.org/trunk@36571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 22:11:25 +00:00
Dominik Schilling
a40a04ef42
i18n-tools: Respect the coding standards when adding textdomains with add-textdomain.php.
...
Props GaryJ, groovecoder.
Fixes #21616 .
Built from https://develop.svn.wordpress.org/trunk@36603
git-svn-id: http://core.svn.wordpress.org/trunk@36570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 21:44:25 +00:00
Andrew Ozz
30feff9c99
TinyMCE, inline link dialog:
...
- Fix passing values to the (old) modal on open when non-linked text is selected and Advanced is clicked before pasting an URL.
- When the user has selected text partially including a link and opens the editing dialog, auto-select the link only. Helps when a linked word is selected by double-clicking.
- Remove all placeholders on saving.
- Do not add undo level on inserting link placeholder.
- Remove the placeholder when canceling from the modal.
See #33301 .
Built from https://develop.svn.wordpress.org/trunk@36602
git-svn-id: http://core.svn.wordpress.org/trunk@36569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 21:36:25 +00:00
Drew Jaynes
f636747fa4
Docs: Fix two incorrect notations of the `$show_admin_bar` global to specify a boolean type, not `WP_Admin_Bar`.
...
See [36491]. Fixes #35686 .
Built from https://develop.svn.wordpress.org/trunk@36601
git-svn-id: http://core.svn.wordpress.org/trunk@36568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 21:27:26 +00:00
Dominik Schilling
0307aadf0f
i18n-tools: Add the ability to parse a whole directory with add-textdomain.php.
...
Props iamntz.
Fixes #35499 .
Built from https://develop.svn.wordpress.org/trunk@36600
git-svn-id: http://core.svn.wordpress.org/trunk@36567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 21:03:25 +00:00
Dominik Schilling
c57946c3f2
i18n-tools: Remove PHP4 constructor from add-textdomain.php.
...
`_deprecated_constructor()` isn't available in non-WordPress context.
See #31982 .
Built from https://develop.svn.wordpress.org/trunk@36599
git-svn-id: http://core.svn.wordpress.org/trunk@36566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 20:34:25 +00:00
Boone Gorges
fce93c4771
In `get_terms()`, assemble `WHERE` conditions in an array instead of concatenating.
...
This method is more reliable when adding new `WHERE` conditions.
See #35495 .
Built from https://develop.svn.wordpress.org/trunk@36598
git-svn-id: http://core.svn.wordpress.org/trunk@36565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 20:04:26 +00:00
Andrew Ozz
acb6cb1d74
TinyMCE: fix the regex that removes spaces from empty paragraphs. Was causing problems when wpautop is disabled and there are many U+00A0 chars between the opening `<p>` and an inline tag. These chars are inserted by the browsers to maintain consecutive spaces typed by the users in contentEditable.
...
Fixes #35890 .
Built from https://develop.svn.wordpress.org/trunk@36597
git-svn-id: http://core.svn.wordpress.org/trunk@36564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 19:56:27 +00:00
Dominik Schilling
24cfa6a40a
Tests: Test that jQuery can be moved into footer after [36550].
...
Props gitlost.
See #25247 .
Built from https://develop.svn.wordpress.org/trunk@36596
git-svn-id: http://core.svn.wordpress.org/trunk@36563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 16:17:25 +00:00
Dominik Schilling
21b9965613
Theme Compat: Replace the custom comment form with `comment_form()` and reduce number of links.
...
`comment_form()` has nearly the same markup as the custom form but also includes the latest enhancements like improved a11y and more filters.
Add translators comments, props ramiy.
Fixes #35888 .
Built from https://develop.svn.wordpress.org/trunk@36595
git-svn-id: http://core.svn.wordpress.org/trunk@36562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 14:41:27 +00:00
Boone Gorges
26955c8507
Tests: Add decorators to PHPMailer mock object.
...
The new `get_recipient()` and `get_sent()` methods greatly simplify the
syntax required when writing tests for `wp_mail()`.
Props welcher.
Fixes #34161 .
Built from https://develop.svn.wordpress.org/trunk@36594
git-svn-id: http://core.svn.wordpress.org/trunk@36561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-20 03:41:27 +00:00
Rachel Baker
9fdb970ceb
Docs: Add missing @since and @access tags to `get_curies` method and filter from r36533
...
See #34729 , #32246 .
Built from https://develop.svn.wordpress.org/trunk@36593
git-svn-id: http://core.svn.wordpress.org/trunk@36560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 23:42:27 +00:00
Dominik Schilling
a04b869652
Styles: Pass the media attribute as an argument to the `style_loader_tag` filter.
...
Props sebastian.pisula.
Fixes #34765 .
Built from https://develop.svn.wordpress.org/trunk@36592
git-svn-id: http://core.svn.wordpress.org/trunk@36559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 21:05:26 +00:00
Dominik Schilling
0285fd946d
Script Loader: Don't parse `$src` if the current color scheme isn't registered.
...
Avoids a `parse_url()` call on each request if the default colors scheme is in use.
Fixes #35882 .
Built from https://develop.svn.wordpress.org/trunk@36591
git-svn-id: http://core.svn.wordpress.org/trunk@36558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 20:44:26 +00:00
Dominik Schilling
9d8204467c
Styles: Bail if `WP_Styles::_css_href()` returns an empty value.
...
The style `colors` gets registered with `true` as the source value which gets handled later by `wp_style_loader_src()`, a callback for the `style_loader_src` filter in `WP_Styles::_css_href()`. `wp_style_loader_src()` may return false, for example for the default color scheme.
This was removed in [36550].
See #35229 .
Built from https://develop.svn.wordpress.org/trunk@36590
git-svn-id: http://core.svn.wordpress.org/trunk@36557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 20:34:26 +00:00
Andrew Ozz
edceb0173c
TinyMCE: update to 4.3.4. Changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #35876 .
Built from https://develop.svn.wordpress.org/trunk@36589
git-svn-id: http://core.svn.wordpress.org/trunk@36556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 19:19:26 +00:00
Rachel Baker
06225cc394
Comments: Refresh the Moderate Comment screen for a friendlier experience with email moderation actions.
...
Brings some love to this neglected screen:
* format `comment_content`, instead of escaping in one massive block of text
* only wrap the comment date in a link if the comment permalink exists
* include link to the Edit Comment screen at the bottom of the comment_content
* update the message styles to match other screens
* append `#wpbody-content` to the comment email message links for accessibility
Props johnbillion, rachelbaker, afercia, melchoyce, karmatosed.
Fixes #34133
Built from https://develop.svn.wordpress.org/trunk@36588
git-svn-id: http://core.svn.wordpress.org/trunk@36555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 19:14:26 +00:00
Andrea Fercia
30866ceb5d
Accessibility: Improve color contrast updating any `#999` gray used for text or icons to a darker gray.
...
Fixes #35660 .
Built from https://develop.svn.wordpress.org/trunk@36587
git-svn-id: http://core.svn.wordpress.org/trunk@36554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 18:44:27 +00:00
Weston Ruter
6b775d4afe
Customize: Add selective refresh framework with implementation for widgets and re-implementation for nav menus.
...
See https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/ .
Props westonruter, valendesigns, DrewAPicture, ocean90.
Fixes #27355 .
Built from https://develop.svn.wordpress.org/trunk@36586
git-svn-id: http://core.svn.wordpress.org/trunk@36553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 18:41:28 +00:00
Andrea Fercia
0f88dbfee0
Accessibility: Fix displaying of Universal time and Local time info on the General Settings screen.
...
In [36263] they were mistakenly moved within a conditional check.
Fixes #35064 .
Built from https://develop.svn.wordpress.org/trunk@36585
git-svn-id: http://core.svn.wordpress.org/trunk@36552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 16:09:26 +00:00
Andrea Fercia
08510d2e5d
Accessibility: after [36000] conditionally print out the `aria-describedby` attribute on the Featured Image postbox.
...
Fixes #35076 .
Built from https://develop.svn.wordpress.org/trunk@36584
git-svn-id: http://core.svn.wordpress.org/trunk@36551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 15:10:28 +00:00
Weston Ruter
34010353cc
Customize: Prevent consecutive `refresh` requests from preview from causing JS error.
...
Fixes "Uncaught TypeError: this.targetWindow is not a function".
See #27355 .
Fixes #35866 .
Built from https://develop.svn.wordpress.org/trunk@36583
git-svn-id: http://core.svn.wordpress.org/trunk@36550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-19 03:47:27 +00:00
Andrea Fercia
77dbab1e1b
Accessibility: Reduce the WordPress shades of grey, Episode 2.
...
See #35783 .
Built from https://develop.svn.wordpress.org/trunk@36582
git-svn-id: http://core.svn.wordpress.org/trunk@36549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 22:30:27 +00:00
Andrea Fercia
ecdcae565e
Plugins: Remove an unused variable after [35953].
...
Fixes #35050 .
Built from https://develop.svn.wordpress.org/trunk@36581
git-svn-id: http://core.svn.wordpress.org/trunk@36548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 21:33:25 +00:00
Dominik Schilling
6f2a56bf3e
Themes: After [36546] restore theme search functionality.
...
* Correct several incorrect uses of `_.union`. Since Underscore 1.7.0 `_.union` supports only arrays and not variadic args.
* Use a namespaced event `themes:update`. Backbone 1.2 added a built in `update` event that triggers after any amount of models are added or removed from a collection.
Props adamsilverstein.
See #34350 .
Built from https://develop.svn.wordpress.org/trunk@36580
git-svn-id: http://core.svn.wordpress.org/trunk@36547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 21:21:26 +00:00
Dominik Schilling
284f88e35a
Themes: Fix flickering of the theme screenshot on hover in WebKit browsers.
...
Props JoeFusco.
Fixes #35787 .
Built from https://develop.svn.wordpress.org/trunk@36579
git-svn-id: http://core.svn.wordpress.org/trunk@36546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 21:11:27 +00:00
Dominik Schilling
529a53e903
Formatting: Avoid a PHP warning when `wptexturize()` is called with a trailing less-than symbol.
...
Props westonruter.
Fixes #35864 .
Built from https://develop.svn.wordpress.org/trunk@36578
git-svn-id: http://core.svn.wordpress.org/trunk@36545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 20:31:27 +00:00
Drew Jaynes
cc1261f7fd
Docs: Add an explanation for the dynamic portion of the `{$taxonomy}_term_edit_form_top` hook, introduced in [36526].
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36577
git-svn-id: http://core.svn.wordpress.org/trunk@36544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 18:19:26 +00:00
Drew Jaynes
e020ccd081
Docs: Add formatting to a changelog entry in the hook doc for the `rest_dispatch_request` filter.
...
See [36534]. See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36576
git-svn-id: http://core.svn.wordpress.org/trunk@36543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 18:18:25 +00:00
Dominik Schilling
71b735974b
Media Library: After [36546] restore the "Add new" functionality.
...
Rework handling of the `'toggle:upload:attachment'` event using `.on` vs `.listenTo` for better compatibility with the current version of Backbone.
Props adamsilverstein.
See #34350 .
Fixes #35853 .
Built from https://develop.svn.wordpress.org/trunk@36575
git-svn-id: http://core.svn.wordpress.org/trunk@36542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 17:50:26 +00:00
Dominik Schilling
d499011145
Add missing test changes for [36573].
...
See #34755 .
Built from https://develop.svn.wordpress.org/trunk@36574
git-svn-id: http://core.svn.wordpress.org/trunk@36541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 17:44:26 +00:00
Dominik Schilling
658d825ea9
Customizer: In nav menus show the location name instead of slug.
...
Props ryankienstra.
Fixes #34755 .
Built from https://develop.svn.wordpress.org/trunk@36573
git-svn-id: http://core.svn.wordpress.org/trunk@36540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 17:16:27 +00:00
Jeremy Felt
7ee69ca8d1
Remove extra spaces between function names and brackets
...
These were introduced when making list table view modes sticky.
See #16774 , #34365 .
Built from https://develop.svn.wordpress.org/trunk@36572
git-svn-id: http://core.svn.wordpress.org/trunk@36539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 16:51:27 +00:00
Dominik Schilling
956627ff83
Don't display errors during Ajax requests.
...
See #34915 for REST and #23811 for XML-RPC.
Props pento.
Fixes #26262 .
Built from https://develop.svn.wordpress.org/trunk@36571
git-svn-id: http://core.svn.wordpress.org/trunk@36538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 16:43:27 +00:00
Dion Hulse
04ad9e674d
HTTP API: Certificate bundle: Attempt to move a certificate lower in the file to allow older OpenSSL versions to parse it & communicate with WordPress.org securely again.
...
The OpenSSL version which was failing in this case was `OpenSSL 0.9.8e 23 Feb 2007`.
See #35637 #30434 #25007
Built from https://develop.svn.wordpress.org/trunk@36570
git-svn-id: http://core.svn.wordpress.org/trunk@36537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 08:21:28 +00:00
Andrew Ozz
2d94e025a2
Replace `wp_upload_dir()` with the new `wp_get_upload_dir()` in all cases where a file is not being uploaded. Deprecate `_wp_upload_dir_baseurl()`, and replace it with `wp_get_upload_dir()`.
...
See #34359 .
Built from https://develop.svn.wordpress.org/trunk@36569
git-svn-id: http://core.svn.wordpress.org/trunk@36536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 00:24:27 +00:00
Drew Jaynes
c6ee6246ef
Docs: Remove a duplicate `@static` tag from the `WP_Customize_Panel->instance_count` property DocBlock.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@36568
git-svn-id: http://core.svn.wordpress.org/trunk@36535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-18 00:14:26 +00:00
Boone Gorges
d9945e5bd4
Reintroduce term meta unit test accidentally removed in [36566].
...
Built from https://develop.svn.wordpress.org/trunk@36567
git-svn-id: http://core.svn.wordpress.org/trunk@36534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-17 23:02:25 +00:00
Boone Gorges
571e14f897
More performance improvements to metadata lazyloading.
...
Comment and term meta lazyloading for `WP_Query` loops, introduced in 4.4,
depended on filter callback methods belonging to `WP_Query` objects. This meant
storing `WP_Query` objects in the `$wp_filter` global (via `add_filter()`),
requiring that PHP retain the objects in memory, even when the local variables
would typically be expunged during normal garbage collection. In cases where a
large number of `WP_Query` objects were instantiated on a single pageload,
and/or where the contents of the `WP_Query` objects were quite large, serious
performance issues could result.
We skirt this problem by moving metadata lazyloading out of `WP_Query`. The
new `WP_Metadata_Lazyloader` class acts as a lazyload queue. Query instances
register items whose metadata should be lazyloaded - such as post terms, or
comments - and a `WP_Metadata_Lazyloader` method will intercept comment and
term meta requests to perform the cache priming. Since `WP_Metadata_Lazyloader`
instances are far smaller than `WP_Query` (containing only object IDs), and
clean up after themselves far better than the previous `WP_Query` methods (bp
only running their callbacks a single time for a given set of queued objects),
the resource use is decreased dramatically.
See [36525] for an earlier step in this direction.
Props lpawlik, stevegrunwell, boonebgorges.
Fixes #35816 .
Built from https://develop.svn.wordpress.org/trunk@36566
git-svn-id: http://core.svn.wordpress.org/trunk@36533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-17 22:58:26 +00:00
Andrew Ozz
da5b3a55c4
Improve the performance of `wp_upload_dir()`:
...
- Cache the output in non-persistent cache.
- Cache the result from `wp_mkdir_p()` in persistent cache (when present).
- Introduce `wp_get_upload_dir()` for use when not uploading files. It is equivalent to `wp_upload_dir()` but does not check for the existence or create the upload directory.
- Change tests to use the non-cached `_wp_upload_dir()`. They change options on the fly (should never be used in production) to simulate different environments.
- Introduce `_upload_dir_no_subdir()` and `_upload_dir_https()` to facilitate testing. These use the proper `upload_dir` filter to simulate different environments.
Props kovshenin, azaozz.
See #34359 .
Built from https://develop.svn.wordpress.org/trunk@36565
git-svn-id: http://core.svn.wordpress.org/trunk@36532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-17 22:51:26 +00:00
Boone Gorges
84350eb6b6
Add changelog entry for `publicly_queryable` argument in `register_taxonomy()`.
...
Missed in [36525].
Fixes #34491 .
Built from https://develop.svn.wordpress.org/trunk@36564
git-svn-id: http://core.svn.wordpress.org/trunk@36531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-17 22:04:32 +00:00
Dominik Schilling
ca6726f331
Tests: Add test for `wp_get_installed_translations()`.
...
Introduces language files in /tests/phpunit/data/language. Each file includes the header and 5 translations.
Props realloc for initial patch.
Fixes #35284 .
Built from https://develop.svn.wordpress.org/trunk@36563
git-svn-id: http://core.svn.wordpress.org/trunk@36530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-17 22:02:26 +00:00
Jeremy Felt
3e14571132
Multisite: Make view mode sticky for network users and sites list tables.
...
Fixes #34365 .
Built from https://develop.svn.wordpress.org/trunk@36562
git-svn-id: http://core.svn.wordpress.org/trunk@36529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-17 22:00:27 +00:00
Jeremy Felt
e7a7f08c8b
Multisite: Avoid a PHP Notice when saving a site address without a path.
...
Props kjbenk.
Fixes #35631 .
Built from https://develop.svn.wordpress.org/trunk@36561
git-svn-id: http://core.svn.wordpress.org/trunk@36528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-17 20:50:27 +00:00