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