Commit Graph

33814 Commits

Author SHA1 Message Date
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
Boone Gorges
2b19ef7b76 mbstring.func_overload test should be skipped properly.
This avoids PHPUnit notices related to "risky" tests.

See #36016.

git-svn-id: https://develop.svn.wordpress.org/trunk@36788 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 22:37:42 +00:00
Boone Gorges
7e55710025 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36787 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 22:13:28 +00:00
Boone Gorges
0a1e0cd7d6 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36786 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 22:04:32 +00:00
Boone Gorges
7505593ab8 Tests: setExpectedDeprecated and setExpectedIncorrectUsage tests should make assertions.
Introduced in [31306].

See #36016.

git-svn-id: https://develop.svn.wordpress.org/trunk@36785 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 21:55:41 +00:00
Boone Gorges
603fee5749 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36784 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 21:53:18 +00:00
Dominik Schilling (ocean90)
f35fa3e58d Media: JSHint for wp-playlist.js.
File was added to the watchlist in [36780].

See #35984.

git-svn-id: https://develop.svn.wordpress.org/trunk@36783 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 21:49:36 +00:00
Boone Gorges
8b7fdc982f 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36782 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 21:07:00 +00:00
Dominik Schilling (ocean90)
f8af8cdc6c i18n tools: In StringExtractor don't strip slashes from URLs.
Props SergeyBiryukov, ocean90.
Fixes #36015.

git-svn-id: https://develop.svn.wordpress.org/trunk@36781 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 20:44:31 +00:00
Dominik Schilling (ocean90)
5f808bd8fc Media: Add support for minified versions of wp-playlist.js, wp-mediaelement.js and wp-mediaelement.css.
Fixes #35984.

git-svn-id: https://develop.svn.wordpress.org/trunk@36780 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 20:42:10 +00:00
Boone Gorges
070b8a6154 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36779 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 20:34:48 +00:00
Boone Gorges
60b307b941 Make sure an assertion takes place in 'visited' test for get_category_parents().
See #36016.

git-svn-id: https://develop.svn.wordpress.org/trunk@36778 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 20:30:04 +00:00
Andrew Ozz
259b343c36 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36777 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 19:37:42 +00:00
Weston Ruter
8ce52f3926 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@36776 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 07:02:24 +00:00
Sergey Biryukov
13e409ac15 Formatting: In sanitize_title_with_dashes(), convert &nbsp, &ndash, and &mdash HTML entities to hyphens on save.
Props polevaultweb for initial patch.
Fixes #31790.

git-svn-id: https://develop.svn.wordpress.org/trunk@36775 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 04:41:03 +00:00
Sergey Biryukov
f188597025 Comments: Avoid extra AJAX requests when undoing Spam or Trash actions.
Props afercia.
Fixes #35904.

git-svn-id: https://develop.svn.wordpress.org/trunk@36774 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 03:19:48 +00:00
Sergey Biryukov
ea2d437b6b I18N: Remove <code> tags from translatable string in wp-admin/network/site-new.php.
Props ramiy.
Fixes #35994.

git-svn-id: https://develop.svn.wordpress.org/trunk@36773 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 03:16:45 +00:00
Sergey Biryukov
e3e6cd356a I18N: Remove <a> tag from translatable string in wp-includes/class-wp-customize-manager.php.
Props ramiy.
Fixes #35992.

git-svn-id: https://develop.svn.wordpress.org/trunk@36772 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 03:13:18 +00:00
Sergey Biryukov
0814a33464 I18N: Remove <code> tag from translatable string in wp-admin/network/site-new.php.
Props ramiy.
Fixes #35989.

git-svn-id: https://develop.svn.wordpress.org/trunk@36771 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 02:43:47 +00:00
Sergey Biryukov
cc35c82c16 I18N: Remove HTML tags from translatable strings in wp-admin/network/themes.php.
Props ramiy.
Fixes #35988.

git-svn-id: https://develop.svn.wordpress.org/trunk@36770 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 02:37:22 +00:00
Weston Ruter
f60e7fd99d 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@36769 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-29 00:39:33 +00:00
Drew Jaynes
92dbe29078 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@36768 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 22:58:45 +00:00
Andrea Fercia
a19426f36a Comments: Add missing placeholder for printf() after [36683].
Fixes #35392.

git-svn-id: https://develop.svn.wordpress.org/trunk@36767 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 21:38:33 +00:00
Sergey Biryukov
4f91aae382 L10n: Add unit tests for _n_noop() and _nx_noop().
Props realloc.
Fixes #35961.

git-svn-id: https://develop.svn.wordpress.org/trunk@36766 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 20:48:58 +00:00
Sergey Biryukov
5108255d19 Docs: Correct _n_noop() and _nx_noop() descriptions to use third-person singular verbs.
Props realloc.
See #35961.

git-svn-id: https://develop.svn.wordpress.org/trunk@36765 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 20:42:40 +00:00
Sergey Biryukov
a18e7ae7c3 Ad a unit test for bool_from_yn().
Props borgesbruno.
Fixes #35972.

git-svn-id: https://develop.svn.wordpress.org/trunk@36764 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 19:55:48 +00:00
Drew Jaynes
f344da1aa6 Docs: Improve a variety of DocBlocks in wp-includes/deprecated.php.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36763 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 19:31:31 +00:00
Andrew Ozz
3a43def820 TinyMCE textpattern: Horizontal line is translated, Horizontal rule is not.
See #33300.

git-svn-id: https://develop.svn.wordpress.org/trunk@36762 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 19:17:21 +00:00
Andrew Ozz
392942e603 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@36761 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:59:25 +00:00
Drew Jaynes
5ca05ea8c8 Docs: Add missing parameter and return descriptions to the DocBlock for the deprecated default_topic_count_text().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36760 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:35:25 +00:00
Drew Jaynes
c7ad9afc25 Docs: Add missing parameter and return documentation to the DocBlock for the deprecated _search_terms_tidy().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36759 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:34:10 +00:00
Drew Jaynes
2ecf2c2b13 Docs: Add missing documentation for the &$post parameter in the DocBlock for the deprecated _get_post_ancestors().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36758 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:32:41 +00:00
Drew Jaynes
28e63d3162 Docs: Add missing documentation for the $fp parameter to the DocBlock for the deprecated debug_fclose().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36757 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:30:31 +00:00
Drew Jaynes
fd3810c7b4 Docs: Add missing parameter documentation to the DocBlock for the deprecated debug_fwrite().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@36756 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:29:44 +00:00