Commit Graph

33685 Commits

Author SHA1 Message Date
Gary Pendergast 2c277e3952 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.


Built from https://develop.svn.wordpress.org/trunk@36816


git-svn-id: http://core.svn.wordpress.org/trunk@36783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-03 05:17:26 +00:00
Mike Schroder f1f2c682d6 Post 4.5-beta2 version bump.
Built from https://develop.svn.wordpress.org/trunk@36815


git-svn-id: http://core.svn.wordpress.org/trunk@36782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-03 04:59:25 +00:00
Mike Schroder b055c83c01 4.5-beta2
Built from https://develop.svn.wordpress.org/trunk@36814


git-svn-id: http://core.svn.wordpress.org/trunk@36781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-03 03:58:26 +00:00
John Blackbourn c69dfc5de4 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

Built from https://develop.svn.wordpress.org/trunk@36813


git-svn-id: http://core.svn.wordpress.org/trunk@36780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-03 03:25:26 +00:00
John Blackbourn 7150ec43c9 Revert r36811.
Built from https://develop.svn.wordpress.org/trunk@36812


git-svn-id: http://core.svn.wordpress.org/trunk@36779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-03 03:23:26 +00:00
John Blackbourn 0cd76839f1 Built from https://develop.svn.wordpress.org/trunk@36811
git-svn-id: http://core.svn.wordpress.org/trunk@36778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-03 03:17:26 +00:00
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 `&nbsp`, `&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