Commit Graph

33897 Commits

Author SHA1 Message Date
Konstantin Obenland cf863ab2a8 Customize: Rename custom logo classes after [36837].
Fixes #35945.


git-svn-id: https://develop.svn.wordpress.org/trunk@36838 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 19:58:37 +00:00
Konstantin Obenland 43ff969765 Customize: Site logos are custom logos.
Brings the nomenclature closer to custom headers and backgrounds.

See https://wordpress.slack.com/archives/core/p1456955151003150
See #35945. 


git-svn-id: https://develop.svn.wordpress.org/trunk@36837 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 19:55:15 +00:00
Drew Jaynes 2d64d06594 Docs: Improve DocBlock syntax for `WP_Customize_Nav_Menus::customize_dynamic_partial_args()`, introduced in [36586].
See #27355. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36836 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 16:06:41 +00:00
Drew Jaynes 9c74b86880 Docs: Improve documentation for `WP_Customize_Nav_Menus::filter_nonces()`, introduced in [36414].
See #27355, #35617. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36835 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 16:04:43 +00:00
Drew Jaynes c4ab9aeda8 Docs: Standardize the changelog entry for the new `$author_url` argument, introduced in [36224].
See #35377. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36834 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 16:01:41 +00:00
Drew Jaynes 8424db5879 Docs: Improve the DocBlock summary and add a missing initial `@since` version for `WP_Admin_Bar::add_node()`.
See #32246. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36833 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 15:57:46 +00:00
Sergey Biryukov 95f12701fb Date/Time: Add a unit test for `mysql_to_rfc3339()`.
Props borgesbruno.
Fixes #36054.

git-svn-id: https://develop.svn.wordpress.org/trunk@36832 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 13:16:31 +00:00
Joe Hoyle fc0ed5e1ca REST API: Unit test for OPTIONS request should call rest_send_allow_header
In [36829] we moved this logic to rest_send_allow_header()

See #36829.


git-svn-id: https://develop.svn.wordpress.org/trunk@36831 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 11:37:48 +00:00
Sergey Biryukov 090e49fe74 Docs: Correct `$plugins` global type in `WP_Plugins_List_Table::prepare_items()`.
Props mt8.biz.
Fixes #36080.

git-svn-id: https://develop.svn.wordpress.org/trunk@36830 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 10:00:40 +00:00
Joe Hoyle b38ea44e9a OPTIONS requests to REST API should return Allow header.
An OPTIONS request was incorrectly returning an "Accept" header which
was a typo of "Allow". This meant Accept was showing "GET, POST" for example,
however it was also not running the permission checks on the endpoints.

Instead, the correct route needs to be set on the request object, which means
the normal handling for the Allow header will kick in. This technically
breaks backwards compatibility, however given the value of Accept was also wrong
then this should not be an issue.

Fixes #35975.


git-svn-id: https://develop.svn.wordpress.org/trunk@36829 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 09:54:32 +00:00
Pascal Birchler 1178047725 Docs: Move the hook doc for the `all_plugins` filter in `WP_Plugins_List_Table::prepare_items()` to directly precede the `apply_filters()` line.
See #35986.

git-svn-id: https://develop.svn.wordpress.org/trunk@36828 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 09:50:57 +00:00
Pascal Birchler 94b2ed9303 Docs: Improve documentation for the `update_welcome_user_email()` filter, introduced in [26538].
See #25598. See #35986.

git-svn-id: https://develop.svn.wordpress.org/trunk@36827 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 09:11:34 +00:00
Drew Jaynes 0a17fdaf07 Docs: Minorly improve the hook doc summary for the `pre_network_site_new_created_user` action, introduced in [35786].
See #33631. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36826 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 09:02:46 +00:00
Drew Jaynes c6be176807 Docs: Improve documentation for `upgrade_450()`, introduced in [36180].
See #27772, #35323. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36825 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 09:00:58 +00:00
Drew Jaynes 7612a6f488 Docs: Minorly improve the hook doc summary for the `pre_uninstall_plugin` action, introduced in [36124].
See #34569. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36824 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 08:57:22 +00:00
Drew Jaynes d81a852b48 Docs: Add a more descriptive changelog entry to the hook doc for the `privacy_on_link_title` filter.
See #35049. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36823 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 08:55:06 +00:00
Drew Jaynes ecc7d4f1b3 Docs: Improve documentation for `WP_Upgrader::release_lock()`, introduced in [36349].
See #34878. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36822 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 07:10:58 +00:00
Drew Jaynes 5fc3cdb07e Docs: Improve documentation for `WP_Upgrader::create_lock()`, introduced in [36349].
See #34878. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36821 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 07:07:31 +00:00
Drew Jaynes 2bd631f227 Docs: Use third-person singular verbs in DocBlock summaries for the `WP_Site_Logo` class, introduced in [36698].
Also minorly improves various inline docs.

See #33755. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36820 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 07:03:23 +00:00
Drew Jaynes df578beaf7 Docs: Match the parameter name in the hook docs for the `press_this_useful_html_elements` filter, introduced in [36672].
See #34455. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36819 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 06:57:21 +00:00
Gary Pendergast 94a5b546d7 Emoji: Fix some jshint warnings introduced in [36816].
See #35300.



git-svn-id: https://develop.svn.wordpress.org/trunk@36818 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 05:47:55 +00:00
Gary Pendergast e736153adf Emoji: Add some extra IE11 compatibility.
IE 11's implementation of MutationObserver is buggy. It unnecessarily splits text nodes when it encounters a HTML template interpolation symbol ( "{{", for example ). So, we join the text nodes back together as a work-around.

Fixes #35977 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@36817 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 05:20:19 +00:00
Gary Pendergast 637ea44652 Emoji: Clean up the emoji browser support tests.
As new sets of emoji are added to Unicode, and browsers add support for them at random intervals, we'll inevitably need to add new tests to the emoji loader. This change makes it much easier to add new tests as they're needed.

Fixes #35300.



git-svn-id: https://develop.svn.wordpress.org/trunk@36816 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 05:16:53 +00:00
Mike Schroder fa4b1164c3 Post 4.5-beta2 version bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@36815 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 04:58:45 +00:00
Mike Schroder ecee08f639 4.5-beta2
git-svn-id: https://develop.svn.wordpress.org/trunk@36814 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 03:57:14 +00:00
John Blackbourn 81d90c0e44 Uploads: Remove an unnecessary static var from `wp_is_mobile()` to allow its direct and indirect use within unit tests. The static `$is_m
obile` var was only used to avoid a handful of calls to `strpos()`, which are exceptionally fast and result in no measurable increase in
processing time on each call to `wp_is_mobile()`.

See #35976, #20014


git-svn-id: https://develop.svn.wordpress.org/trunk@36813 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 03:24:02 +00:00
John Blackbourn 4b15b87299 Revert r36811.
git-svn-id: https://develop.svn.wordpress.org/trunk@36812 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 03:22:54 +00:00
John Blackbourn c94a2890fa git-svn-id: https://develop.svn.wordpress.org/trunk@36811 602fd350-edb4-49c9-b593-d223f7449a82 2016-03-03 03:16:55 +00:00
John Blackbourn dfb666f7cf Uploads: Add tests for device upload capabilities based on user agent.
Fixes #35976
Props borgesbruno


git-svn-id: https://develop.svn.wordpress.org/trunk@36810 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-03 02:00:06 +00:00
Dominik Schilling (ocean90) 4c8b3511a2 Customizer: Merge two translator comments.
git-svn-id: https://develop.svn.wordpress.org/trunk@36809 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 23:09:12 +00:00
Sergey Biryukov 1b91fc660f 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36808 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 22:13:14 +00:00
Andrew Ozz ecc0b97857 TinyMCE: then toggling the paste in plain text mode disable the warning message after the second time.
Fixes #28612.

git-svn-id: https://develop.svn.wordpress.org/trunk@36807 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 22:09:51 +00:00
Andrew Ozz bc41261ba4 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36806 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 20:05:04 +00:00
Weston Ruter ce773cbc6c Customize: Remove gap above section contained in panel when initially focusing on control.
Props mattwiebe.
Fixes #36050.


git-svn-id: https://develop.svn.wordpress.org/trunk@36805 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 18:36:26 +00:00
Weston Ruter fd8ed4e673 Customize: Fix visibility of preview in iOS.
Removes CSS rule added in [21014] that is now obsolete. 

Props adamsilverstein.
See #20805.
Fixes #35875.


git-svn-id: https://develop.svn.wordpress.org/trunk@36804 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 18:21:21 +00:00
azaozz c507baa261 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36803 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 18:12:02 +00:00
Dominik Schilling (ocean90) c119ce9ac2 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36802 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 16:10:00 +00:00
Weston Ruter 0c3716670a 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@36801 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 06:08:38 +00:00
Sergey Biryukov 711b9d9227 Docs: Correct filter reference in `pre_get_avatar` filter description.
Props henry.wright.
Fixes #36031.

git-svn-id: https://develop.svn.wordpress.org/trunk@36800 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 03:40:42 +00:00
Andrew Ozz 237146cac1 TinyMCE: fix the close button position in the paste in text mode warning.
See #36035.

git-svn-id: https://develop.svn.wordpress.org/trunk@36799 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-02 01:14:45 +00:00
Andrew Ozz b4db71a2f8 TinyMCE: update to 4.3.6. Changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt.
Fixes #36035.

git-svn-id: https://develop.svn.wordpress.org/trunk@36798 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-01 23:12:43 +00:00
Weston Ruter 84ecbb5e44 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@36797 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-01 22:17:20 +00:00
Weston Ruter 462a7c2c70 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@36796 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-01 22:03:27 +00:00
Pascal Birchler 4bad4cd246 Tests: Add unit tests for `number_format_i18n()`.
Props pbearne for initial patch.
Fixes #36029.

git-svn-id: https://develop.svn.wordpress.org/trunk@36795 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-01 21:19:20 +00:00
Sergey Biryukov 436a4adb60 I18N: Move the `aria-label` text in `comment_form()` to a separate string for easier translation.
Add translator comments.

Props ramiy.
Fixes #36014.

git-svn-id: https://develop.svn.wordpress.org/trunk@36794 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-01 02:13:48 +00:00
Sergey Biryukov 83b69ceb02 I18N: Remove HTML tags from translatable string in `wp-admin/includes/dashboard.php`.
Props ramiy, SergeyBiryukov.
Fixes #36013.

git-svn-id: https://develop.svn.wordpress.org/trunk@36793 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-01 01:38:28 +00:00
Andrea Fercia c6c9dcb8c6 Link Manager: Fix usage of translation functions after [35998].
Uses `printf()` instead, adds translator comment.

Fixes #35135.

git-svn-id: https://develop.svn.wordpress.org/trunk@36792 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 23:25:38 +00:00
Boone Gorges c67a463427 Use `markTestSkipped()` to skip a multisite-only test.
See #36016.

git-svn-id: https://develop.svn.wordpress.org/trunk@36791 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 22:55:56 +00:00
Boone Gorges 26a8cbdb44 Ensure that user `__unset()` tests make assertions.
See #36016.

git-svn-id: https://develop.svn.wordpress.org/trunk@36790 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 22:49:15 +00:00
Boone Gorges 1fb24d9e8d Remove erroneous `return` in `date_query` test.
Introduced in [34989].

See #36016.

git-svn-id: https://develop.svn.wordpress.org/trunk@36789 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 22:40:20 +00:00