Commit Graph

28205 Commits

Author SHA1 Message Date
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
Sergey Biryukov
03cb69d8e2 When live-updating site title in toolbar, fall back to the site url if the title is empty.
props avryl.
see #28682.

git-svn-id: https://develop.svn.wordpress.org/trunk@30597 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 08:11:52 +00:00
Sergey Biryukov
980ca1471b Add missing periods to strings introduced in [30333].
props DrewAPicture.
see #30264.

git-svn-id: https://develop.svn.wordpress.org/trunk@30596 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 06:25:14 +00:00
Drew Jaynes (DrewAPicture)
bcb88058f9 Improve inline documentation in wp_ajax_destroy_sessions().
If the token is set (`$keep` is a string), this means the user is viewing their own profile-editing screen and destroying their own sessions (except the current one). If it isn't set (`$keep` is null), the user is editing another user's profile and destroying all of their sessions with no exceptions.

See #30264, #30469


git-svn-id: https://develop.svn.wordpress.org/trunk@30595 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 03:47:43 +00:00
Andrew Ozz
8206bceff6 Editor: move the DFW v2 transitions CSS from editor.css to wp-admin.css. They are needed only on the Edit Post screen.
See #30453.

git-svn-id: https://develop.svn.wordpress.org/trunk@30594 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 02:35:09 +00:00
Andrew Ozz
f078fc3e99 Editor: use the Alt+Shift+W keyboard shortcut for new DFW from both the Visual and Text editors. Props afercia, fixes #30450.
git-svn-id: https://develop.svn.wordpress.org/trunk@30593 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 01:43:56 +00:00
John Blackbourn
93eb8d6d45 Revert [30032] so appropriate PHP warnings aren't masked.
Fixes #28743


git-svn-id: https://develop.svn.wordpress.org/trunk@30592 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-28 01:28:28 +00:00
Andrew Ozz
8d578a1d1f Better error message when the admin is ssl and non-ssl oEmbed previews are not available in the editor. Props Japh, fixes #30533.
git-svn-id: https://develop.svn.wordpress.org/trunk@30591 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 22:36:48 +00:00
Ian Stewart
e2a69b73b5 Twenty Fifteen: better highlights for tapped links in iOS Safari.
Props iamtakashi, fixes #30524.




git-svn-id: https://develop.svn.wordpress.org/trunk@30590 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 20:40:13 +00:00
Ian Stewart
d6d93cbcf5 Twenty Fifteen: overflow hidden can hide focus outlines here so out it goes.
Props iamtakashi, fixes #30523.



git-svn-id: https://develop.svn.wordpress.org/trunk@30589 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 20:35:20 +00:00
Ian Stewart
cde500a7ad Twenty Fifteen: minor corrections to borders and post title colors in custom color schemes.
Props iamtakashi, fixes #30521.




git-svn-id: https://develop.svn.wordpress.org/trunk@30588 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 20:33:13 +00:00
Gary Pendergast
c00ba04e9c WPDB: Remove the addition of STRICT_ALL_TABLES, added in [30400]. This proved to be incompatible with too many plugins, as well as being incompatible with MySQL 5.7.
See #21212.


git-svn-id: https://develop.svn.wordpress.org/trunk@30587 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 10:59:10 +00:00
Andrew Ozz
19ed0a7c1a Editor: limit scrolling triggered when TinyMCE is auto-resized to 100px. Prevents auto-scrolling on page load. Fixes #30515.
git-svn-id: https://develop.svn.wordpress.org/trunk@30586 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 00:59:04 +00:00
Boone Gorges
fffff63fbe Revert shared taxonomy term splitting for 4.1.
This is a revert of [30494], [30492], [30347], and [30334]. The latter
changeset was a revert of [30336], which was a revert of [30241].

Watch for Term Splitting, Version III in version 4.2, coming soon to a
WordPress trunk near you.

See #30335, #5809.

git-svn-id: https://develop.svn.wordpress.org/trunk@30585 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-27 00:04:59 +00:00
Andrew Ozz
9fe0de6c42 Remove unused CSS and JS from wp-mce-help.php, see #30517.
git-svn-id: https://develop.svn.wordpress.org/trunk@30584 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 23:22:33 +00:00
Andrew Ozz
59350a85ad Editor: fix warnings in class-wp-editor.php, see #30453.
git-svn-id: https://develop.svn.wordpress.org/trunk@30583 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 23:03:16 +00:00
Mark Jaquith
3fb3ffbc78 Remove old DFW width adjustment help text.
fixes #30517

git-svn-id: https://develop.svn.wordpress.org/trunk@30582 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 22:29:57 +00:00
Dominik Schilling (ocean90)
94fad7cd07 Remove unbounded check for "install.php" in wp_not_installed().
The check is true for `wp-admin/plugin-install.php` and `wp-admin/theme-install.php` too. This will end in a redirect to `/wp-admin/upgrade.php` or a screen with a bunch of errors.
The `WP_INSTALLING` constant was added in WordPress 1.5.1 to `wp-admin/install.php` which makes the check for "install.php" redundant.

props joemcgill.
fixes #29694.

git-svn-id: https://develop.svn.wordpress.org/trunk@30581 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 20:55:19 +00:00
Drew Jaynes (DrewAPicture)
f534936cfe Fix DocBlock formatting for wp_generate_password().
Props stevegrunwell for the initial patch.
Fixes #30509.


git-svn-id: https://develop.svn.wordpress.org/trunk@30580 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 20:37:36 +00:00
Dominik Schilling (ocean90)
fb8588f115 Comments: Use proper HTTP response codes for validation errors.
props miqrogroove, solarissmoke, mackensen.
fixes #11286.

git-svn-id: https://develop.svn.wordpress.org/trunk@30579 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 20:16:47 +00:00
Dominik Schilling (ocean90)
17cefe0288 Network Admin: Improve width of input fields on Add New Site and Edit Site screens.
props honeysilvas.
fixes #16383.

git-svn-id: https://develop.svn.wordpress.org/trunk@30578 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-26 19:50:20 +00:00