Drew Jaynes (DrewAPicture)
57ff8aff0a
Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/network/*.
...
Affects DocBlocks for the following hooks:
* `network_admin_edit_' . $_GET['action']`
* `network_sites_updated_message_' . $_GET['updated']`
See #30552 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30647 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 11:20:32 +00:00
Drew Jaynes (DrewAPicture)
1f66186c4a
Improve inline documentation for image_constrain_size_for_editor()
.
...
Includes:
* Proper formatting, plus adding a type for the `$context` parameter
* Inline `@see` tags in the description and backtick-escaping inline code
* Parameter, type, and description alignment
Props tillkruess for the initial patch.
Fixes #30508 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30646 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 10:05:26 +00:00
Drew Jaynes (DrewAPicture)
688b291312
Specify a type (array) for the $post_data
parameter in the DocBlock for wp_autosave()
.
...
Props tillkruess.
See #30508 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30645 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 10:00:56 +00:00
Drew Jaynes (DrewAPicture)
33418eeed5
Improve the inline documentation for image_edit_apply_changes()
.
...
Including:
* Add a correct type (array) for the `$changes` parameter
* Add the `@since` version
* Add proper descriptions for both parameters and the return value.
Props tillkruess for the initial patch.
See #30508 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30644 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 09:58:54 +00:00
Drew Jaynes (DrewAPicture)
c52dc42879
Add an entry to the changelog for the wp_editor_expand
hook denoting that the $post_type
parameter was added in 4.1.0.
...
See #30458 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30643 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 09:50:46 +00:00
Scott Taylor
7d95a91c5b
When creating audio and video MCE views, listen to the players within each iframe to capture the "play" event. When a player plays, pause the players in every other iframe sandbox.
...
Fixes #29384 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30642 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 08:44:21 +00:00
Andrew Ozz
8dabfb3b85
Editor: no pointer for DFW v2 when editor-scrolling is not used. Pass $post_type
in the wp_editor_expand
filter. See #30458 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30641 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 06:36:59 +00:00
Scott Taylor
a411918199
Adjust the RegEx in wp_check_filetype()
to be aware that query strings are thing that exist sometimes in URLs.
...
Adds unit tests.
Props voldemortensen.
Fixes #30377 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30640 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 06:32:16 +00:00
Scott Taylor
b59b9f466a
Fix edge-case in media cropping where selection and destination are the same size.
...
Adds unit tests.
Props mboynes.
Fixes #19793 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30639 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 06:26:26 +00:00
Scott Taylor
ac2c986831
When deleting media grid attachments, wait until the server responds before removing the model from its collection.
...
Props 5um17.
Fixes #30457 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30638 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 06:18:07 +00:00
Scott Taylor
8813419225
IETF language changes in MediaElement:
...
https://github.com/johndyer/mediaelement/pull/1270/
Reverts [28801].
Fixes #29182 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30637 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 06:11:19 +00:00
Scott Taylor
cb648b68e1
Ensure uniqueness when returning page lists in get_page_children()
. Fixes failing unit tests.
...
Props boonebgorges.
Reverts [30246].
Fixes #14477 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30636 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 06:04:31 +00:00
Drew Jaynes (DrewAPicture)
2afe26faa5
Remove an invalid parameter from the DocBlock for the gallery_style
hook.
...
Props keesiemeijer.
Fixes #30507 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30635 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 05:57:43 +00:00
Scott Taylor
6d7bbcbc04
Upgrade to MediaElement 2.16.2
...
https://github.com/johndyer/mediaelement/compare/2.15.1...2.16.2
Fixes #30281 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30634 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 05:57:25 +00:00
Drew Jaynes (DrewAPicture)
7c421791c2
Remove return descriptions from the DocBlocks for add_image_size()
and set_post_thumbnail_size()
as they don't return anything.
...
Also document the `$_wp_additional_image_sizes` global, leveraged in `add_image_size()`.
Props stevegrunwell.
Fixes #30511 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30633 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 05:48:03 +00:00
Drew Jaynes (DrewAPicture)
f864c2f871
Document the $user_id
parameter added to the 'admin_color_scheme_picker' hook in 3.8.1.
...
Props Ipstenu.
Fixes #30551 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30632 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 05:41:31 +00:00
Gary Pendergast
ea89b1c942
WPDB Unit Tests: Fix a fatal error that occurs in the test_strip_invalid_text()
test if the mbstring
extension isn't activated in PHP.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30631 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 05:35:00 +00:00
Drew Jaynes (DrewAPicture)
9d74e43a4b
Add missing DocBlocks for several functions in wp-admin/includes/ms.php.
...
Props dustyf.
See #30483 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30630 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 05:05:36 +00:00
John Blackbourn
76a9abd7a7
Check attachments as well as the current post type when checking for duplicate post slugs. This avoids creating a page with a slug which conflicts with an existing attachment (the inverse is already handled).
...
Updates the existing test for pages which should take priority over attachments in cases where an existing clash exists.
Fixes #18962
Props boonebgorges
git-svn-id: https://develop.svn.wordpress.org/trunk@30629 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 04:48:54 +00:00
Drew Jaynes (DrewAPicture)
c1d0555b32
Add missing return descriptions for a variety of functions in wp-includes/link-template.php.
...
Props colorful-tones, dustyf.
See #30406 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30628 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 04:43:44 +00:00
Drew Jaynes (DrewAPicture)
4c44e257b5
Use the correct type (integer) for the $menu_id
parameter in the wp_get_nav_menu_to_edit()
DocBlock.
...
Also properly mark the parameter as optional and specify the default value.
Props jaimieolmstead for the initial patch.
Fixes #30540 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30627 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 04:24:25 +00:00
Boone Gorges
11ef3c3ee6
In get_default_post_to_edit()
, let 'post_name' be passed to filter.
...
Previously, it was being overridden after the default post had been inserted
into the database, making it cumbersome to override with the 'wp_insert_post_data'
filter.
Props danielbachhuber.
Fixes #29847 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30626 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-29 19:25:36 +00:00
Andrew Ozz
a989ce280b
Editor: fix fading out on Escape in DFW v2. props adamsilverstein, fixes #30528 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@30625 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-29 02:44:37 +00:00
Drew Jaynes (DrewAPicture)
57f295484d
4.1 Docs Audit: Improve inline documentation for various wpdb
methods.
...
#30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30624 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:33:16 +00:00
Drew Jaynes (DrewAPicture)
a1af1437c3
4.1 Docs Audit: Fix formatting for changelog entries in count_user_posts()
and the get_usernumposts
hook.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30623 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:28:23 +00:00
Drew Jaynes (DrewAPicture)
f8d3ac117f
4.1 Docs Audit: Improve inline documentation in DocBlocks for various WP_Tax_Query
methods, the pre_delete_term
hook, and get_ancestors()
.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30622 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:26:00 +00:00
Drew Jaynes (DrewAPicture)
67322ab8f7
4.1 Docs Audit: Remove a duplicate word from a parameter description in the DocBlock for the wp_save_post_revision_post_has_changed
hook.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30621 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:18:49 +00:00
Drew Jaynes (DrewAPicture)
0960ef7484
4.1 Docs Audit: Improve inline documentation for the new WP_Query::setup_postdata()
method.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30620 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:17:27 +00:00
Drew Jaynes (DrewAPicture)
72d761f0b1
4.1 Docs Audit: Formatting, line-wrap, and other fixes for the wp_get_nav_menus()
DocBlock.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30619 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:14:30 +00:00
Drew Jaynes (DrewAPicture)
15bc7024c4
4.1 Docs Audit: Spell out HTML element names in DocBlock summaries for the nav_menu_css_class
, nav_menu_item_id
, and nav_menu_link_attributes
filters.
...
Due to a recent clarification in the core inline documentation standards, HTML tags are no longer allowed in DocBlock summaries as they wreak havoc on displaying pages in the official Code Reference. See #30473 .
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30618 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:11:15 +00:00
Drew Jaynes (DrewAPicture)
c664bd6a58
4.1 Docs Audit: Improve inline documentation for various WP_Meta_Query
methods introduced or modified in 4.1.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30617 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 12:01:21 +00:00
Drew Jaynes (DrewAPicture)
8c059c65a4
4.1 Docs Audit: Ensure optional arguments in get_the_post_navigation()
, the_post_navigation()
, get_the_posts_navigation()
, the_posts_navigation()
, get_the_pagination()
, and the_pagination()
are properly documented with defaults.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30616 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:56:20 +00:00
Drew Jaynes (DrewAPicture)
426d221772
Ensure the private function _wp_render_title_tag()
is marked for internal usage only.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30615 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:49:58 +00:00
Drew Jaynes (DrewAPicture)
f7e01d5331
Improve line-wrapping and formatting in the DocBlock for wp_send_json_error()
.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30614 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:38:59 +00:00
Drew Jaynes (DrewAPicture)
7bf6ff37e2
4.1 Docs Audit: Ensure optional arguments in wp_json_encode()
are properly documented as such.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30613 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:35:39 +00:00
Drew Jaynes (DrewAPicture)
0e0dca103b
Ensure only spaces are used instead of a mixture of tabs and spaces for alignment within the DocBlock for the date_query_valid_columns
hook. See [30611].
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30612 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:28:39 +00:00
Drew Jaynes (DrewAPicture)
541ba06411
4.1 Docs Audit: Improve inline documentation in various WP_Date_Query
methods modified in 4.1.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30611 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:26:00 +00:00
Drew Jaynes (DrewAPicture)
f240af96da
4.1 Docs Audit: Various formatting fixes for inline documentation in class-wp-list-table.php and comment-template.php.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30610 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:21:40 +00:00
Drew Jaynes (DrewAPicture)
1af1cc4792
4.1 Docs Audit: Fix DocBlock formatting for the customize_preview_{$this->type}
hook.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30609 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:12:46 +00:00
Drew Jaynes (DrewAPicture)
177c3e0c61
4.1 Docs Audit: Improve inline documentation for various properties and methods in the WP_Customize_Section
, WP_Customize_Section
, and WP_Customize_Sidebar_Section
classes.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30608 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:09:32 +00:00
Drew Jaynes (DrewAPicture)
28072f473a
4.1 Docs Audit: Improve inline documentation for various properties and methods in the WP_Customize_Panel
class.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30607 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 11:02:49 +00:00
Drew Jaynes (DrewAPicture)
91a0357fe0
4.1 Docs Audit: Improve inline documentation for various properties and methods in the WP_Customize_Manager
class.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30606 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 10:51:41 +00:00
Drew Jaynes (DrewAPicture)
5b30d9e1ac
4.1 Docs Audit: Improve inline documentation for various properties and methods in the WP_Customize_Control
and WP_Customize_Upload_Control
classes.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30605 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 09:19:06 +00:00
Drew Jaynes (DrewAPicture)
9832941b66
4.1 Docs Audit: Fix some line-wrapping in the DocBlock for WP_Http::parse_url()
.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30604 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 09:13:31 +00:00
Drew Jaynes (DrewAPicture)
403f4feb27
4.1 Docs Audit: Clarify the DocBlock summary for network_settings_add_js()
to specify that it's specific to the Network Settings screen.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30603 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 09:08:08 +00:00
Drew Jaynes (DrewAPicture)
ea329981d1
4.1 Docs Audit: Document the $post
global in the DocBlock for wp_print_revision_templates()
.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30602 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 09:04:35 +00:00
Drew Jaynes (DrewAPicture)
ea4da9e13c
4.1 Docs Audit: Fix a variety of issues with the DocBlock for the default_page_template_title
filter.
...
Includes hyphenating 'drop-down', ensuring the DocBlock itself is correctly indented, and wraps lines at an appropriate length.
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30601 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 08:59:45 +00:00
Drew Jaynes (DrewAPicture)
ba21c68c23
4.1 Docs Audit: Convert a hook reference to an inline @see
tag in the hook docs for the image_add_caption_text
filter.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30600 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 08:55:46 +00:00
Drew Jaynes (DrewAPicture)
e7fee524b6
4.1 Docs Audit: Clarify the DocBlock summary for the edit_form_before_permalink
hook.
...
See #30469 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30599 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 08:51:59 +00:00
Sergey Biryukov
95ffc6e562
Consistently handle an empty site title in Site and My Sites toolbar menus.
...
see #28682 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30598 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 08:12:13 +00:00