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
Drew Jaynes
70b3ee52e4
Docs: Add missing parameter and return documentation to the DocBlock for the deprecated debug_fopen()
.
...
Fixes #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36755 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:19:39 +00:00
Drew Jaynes
bf937da2f6
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36754 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:17:16 +00:00
Drew Jaynes
f1e7a42756
Docs: Add missing documentation for the $title
parameter in the DocBlock for the deprecated parent_post_rel_link()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36753 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 18:15:42 +00:00
Dominik Schilling (ocean90)
388d20fa50
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36752 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 10:33:15 +00:00
John Blackbourn
0436a2c2c6
Editor: Remove an unused JavaScript variable so the JS lint tests pass.
...
See #33301
git-svn-id: https://develop.svn.wordpress.org/trunk@36751 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 02:18:22 +00:00
John Blackbourn
54adcce28d
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
git-svn-id: https://develop.svn.wordpress.org/trunk@36750 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 02:12:13 +00:00
John Blackbourn
717c1c4041
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
git-svn-id: https://develop.svn.wordpress.org/trunk@36749 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-28 01:45:24 +00:00
Drew Jaynes
c51647b0b2
Docs: Remove a duplicate parameter notation in the DocBlock for the deprecated the_editor()
function.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36748 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-27 21:40:12 +00:00
azaozz
70b1601fc4
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36747 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-27 21:32:02 +00:00
Drew Jaynes
a7a822ec8e
Docs: Update the @deprecated
tag comment for wp-includes/embed-template.php to reference the correct file path following [36693].
...
See #34561 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36746 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-27 21:21:12 +00:00
Drew Jaynes
180fd6bad4
Docs: Add a missing summary, @access
tag, and parameter documentation to the DocBlock for WP_Customize_Filter_Setting::update()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36745 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-27 21:16:37 +00:00
Dominik Schilling (ocean90)
592da58d26
Docs: Improve inline docs for WP_Dependencies
, WP_Styles
, and WP_Scripts
.
...
Also, make them and related files part of WordPress.
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36744 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-27 20:33:57 +00:00
Andrew Ozz
d8c52aba85
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36743 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-27 00:51:41 +00:00
Mike Schroder
be3ba15eec
Media: Correct "Exception" typo in WP_Image_Editor_Imagick::strip_meta().
...
Exceptions are caught better if they're not excpeted.
Props joemcgill.
See #33642 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36742 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 21:57:26 +00:00
Boone Gorges
3d8cade8c8
Tests: Don't modify global state before checking whether to skip get_locale()
tests.
...
Introduced in [36740].
Props ocean90.
See #35965 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36741 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 20:28:07 +00:00
Boone Gorges
da128bc5e3
Add tests for get_locale()
.
...
Props realloc.
Fixes #35965 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36740 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 20:21:11 +00:00
Drew Jaynes
f9d01cc7de
Docs: Fix two typos in return descriptions for WP_Theme
private usort()
methods.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36739 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:22:30 +00:00
Drew Jaynes
9c0f474a5b
Docs: Add missing parameter and return notations in the DocBlock for WP_Theme::_name_sort_i18n()
, a private usort()
helper.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36738 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:20:59 +00:00
Drew Jaynes
135ec99ab5
Docs: Add missing parameter and return notations in the DocBlock for WP_Theme::_name_sort()
, a private usort()
helper.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36737 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:18:52 +00:00
Drew Jaynes
06eced0604
Docs: Add a missing description for the &$themes
parameter in the DocBlock for WP_Theme::sort_by_name()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36736 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:11:56 +00:00
Drew Jaynes
223b94a039
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36735 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:09:23 +00:00
Drew Jaynes
75451f7b59
Docs: Add missing parameter and return descriptions to the DocBlock for WP_Theme::__isset()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36734 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 17:03:41 +00:00
Dominik Schilling (ocean90)
6a9e3bca79
Docs: Add missing @since
tags to WP_Styles
properties/methods.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36733 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 14:38:55 +00:00
Dominik Schilling (ocean90)
1385200e86
Docs: In WP_Dependencies
add a changelog entry for the $group
parameter.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36732 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 13:49:55 +00:00
Dominik Schilling (ocean90)
a57a6ac60c
Docs: In WP_Dependencies
add a changelog entry to methods which were moved from WP_Scripts
to WP_Dependencies
.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36731 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 13:22:57 +00:00
Dominik Schilling (ocean90)
02c6565269
Docs: Document properties of WP_Scripts
and add missing @since
tags.
...
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36730 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 13:04:51 +00:00
Dominik Schilling (ocean90)
276635f8a3
Docs: Use correct @since
tags for script enqueue functions.
...
See [4968], [3788].
See #35964 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36729 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 12:49:37 +00:00
Drew Jaynes
c160fdddd3
Docs: Add missing @param
and @return
notations to the DocBlock for WP_Feed_Cache_Transient::save()
.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36728 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:26:17 +00:00
Drew Jaynes
9b231ff3f8
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36727 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:24:03 +00:00
Drew Jaynes
aed2535da9
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36726 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:22:08 +00:00
Drew Jaynes
15f3acfbf5
Docs: Add some missing @param
notations to various DocBlocks in wp-includes/ms-deprecated.php.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36725 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 09:15:45 +00:00
Drew Jaynes
39af9db8a5
Docs: Add a missing @param
entry for the $user_login
parameter in the DocBlock for the deprecated is_site_admin()
function.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36724 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 08:55:50 +00:00
Drew Jaynes
02c41c25e9
Docs: Add a missing @param
entry for the $len
parameter in the DocBlock for the deprecated generate_random_password()
function.
...
See #32246 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36723 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 08:53:22 +00:00
John Blackbourn
48aa555ced
Refactor some janky URL tests into data providers for clarity and better error reporting.
...
See #35954
git-svn-id: https://develop.svn.wordpress.org/trunk@36722 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 02:10:32 +00:00
John Blackbourn
1ebe4658f1
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
git-svn-id: https://develop.svn.wordpress.org/trunk@36721 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 02:08:47 +00:00
Andrew Ozz
825e2e45fe
TinyMCE textpattern: fix error when inserting <hr>
if the new paragraph is not direct child of the body.
...
See #33300 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36720 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 01:55:33 +00:00
Ella Iseulde Van Dorpe
37fda5a8b9
TinyMCE: textpattern: clean up
...
* Use editor.once instead of storing into variables.
* Add pattern for hr.
See #33300 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36719 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:51:01 +00:00
Sergey Biryukov
918da6f8c2
L10n: Add test for get_available_languages()
.
...
Props realloc.
Fixes #35950 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36718 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:38:25 +00:00
John Blackbourn
701f639e30
Correct some more tests which were using example.org
instead of WP_TESTS_DOMAIN
.
...
See #34000
git-svn-id: https://develop.svn.wordpress.org/trunk@36717 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:25:10 +00:00
Andrew Ozz
1cfdb05750
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@36716 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-26 00:20:54 +00:00
John Blackbourn
6cf0caf13e
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
git-svn-id: https://develop.svn.wordpress.org/trunk@36715 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 21:59:56 +00:00
John Blackbourn
fd03f6ec19
Canonical: Improve the method names and inline docs for canonical redirect tests.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@36714 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-25 21:55:57 +00:00