Commit Graph

29940 Commits

Author SHA1 Message Date
Scott Taylor
5e44938537 Add missing doc blocks to post-thumbnail-template.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32618 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-27 16:28:37 +00:00
Scott Taylor
a3f9ed1494 Add missing doc blocks to post-template.php.
Correct some types for `@param` and `@return`.
`is_page_template()` can return the conditional instead of if/else true/false.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32617 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-27 16:25:17 +00:00
Scott Taylor
0c2421bff2 Add missing doc blocks to post-formats.php.
Correct some types for `@param` and `@return`.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32616 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-27 16:05:33 +00:00
Scott Taylor
a35e24fba5 Add missing doc blocks to plugin.php.
`has_filter()` can use strict comparison when checking `$has` internally.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32615 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-27 15:55:35 +00:00
Scott Taylor
932af17935 Add missing doc blocks for pluggable.php.
Correct some `@return` values.
`is_user_logged_in()` can simply return the `->exists()` call instead of if/else'ing true/false.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32614 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-27 15:31:46 +00:00
Scott Taylor
9a5af9d3d2 Fix doc blocks for option.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32613 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 22:16:15 +00:00
Scott Taylor
a418d57c5a Fix doc blocks for nav-menu*.php files.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32612 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 22:09:26 +00:00
Scott Taylor
85e3befce9 Fix doc blocks for ms-*.php files.
A few functions can return a conditional instead of an `if`/`else` of `true`/`false`.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32611 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 21:50:13 +00:00
Scott Taylor
58f8af684d Fix doc blocks for meta.php
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32610 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 19:32:55 +00:00
Scott Taylor
0a892c11c8 Fix doc blocks for media*.php
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32609 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 19:22:12 +00:00
Scott Taylor
c7e87544a7 Add missing doc blocks to locale.php
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32608 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 18:58:20 +00:00
Scott Taylor
9de5c2b22d Add missing doc blocks to load.php
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32607 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 18:52:03 +00:00
Scott Taylor
22ba68ccb8 Fix doc blocks to link-template.php
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32606 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 18:43:48 +00:00
Scott Taylor
cb1cf9e1ac Add missing doc blocks to l10n.php
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32605 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 18:12:15 +00:00
Boone Gorges
d10ec28b01 Improve unit tests for wp_unique_post_slug().
See #5305.

git-svn-id: https://develop.svn.wordpress.org/trunk@32604 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 18:07:17 +00:00
Scott Taylor
f9cd0dac60 Add missing doc blocks to kses.php - also fix some unfortunate whitespace issues in related funcs.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32603 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 18:05:22 +00:00
westonruter
6d34b6e075 Add support for WP_Widget::get_settings() returning ArrayIterator/ArrayObject instances.
Plugins can use `pre_option_widget_{$id_base}` filters to return `ArrayIterator`/`ArrayObject` instances instead of primitive arrays. This makes possible for widget instance data to be drawn from somewhere else than `wp_options`, such as a custom post type.

Add unit tests for widgets.

Fixes #32474.



git-svn-id: https://develop.svn.wordpress.org/trunk@32602 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-26 16:50:03 +00:00
Weston Ruter
e95740d7d0 Fix wp_send_json_error() response for update-widget Ajax request, to return error code instead of error message, as the WP_Error objects are instantiated with codes and the messages are empty.
Fixes #32496.



git-svn-id: https://develop.svn.wordpress.org/trunk@32601 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 22:08:08 +00:00
Scott Taylor
bd06ad2725 get_comments() can return int, so a few places need to check if the return value is traversable before passing what is assumed to be an array.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32600 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 17:58:52 +00:00
Scott Taylor
768115d353 Cleanup doc blocks in http.php.
In the few functions that used `$objFetchSite` instead of `$http`: use the `$http` naming, which is more civilized.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32599 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 17:31:02 +00:00
Scott Taylor
14706868d2 Cleanup doc blocks in general-template.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32598 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 17:17:23 +00:00
Scott Taylor
bac34e9daa Cleanup the use of $wp_styles global in functions.wp-styles.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32597 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 16:34:38 +00:00
Scott Taylor
bc164ef635 Cleanup the use of $wp_scripts global in functions.wp-scripts.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32596 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 16:23:46 +00:00
Scott Taylor
531e31b598 Add missing doc blocks to wp-includes/functions.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32595 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 16:10:59 +00:00
Boone Gorges
abb1cef395 Pass the original $user_id variable to the filter in get_the_author_meta().
Props dlh, chriscct7.
Fixes #32481.

git-svn-id: https://develop.svn.wordpress.org/trunk@32594 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 13:05:21 +00:00
Ella Iseulde Van Dorpe
f639366590 Link modal: reset search results appropriately
Reset the search results when the input field is emptied with the
browser's "clear" button inside that field.

Fixes #32174.


git-svn-id: https://develop.svn.wordpress.org/trunk@32593 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 06:40:27 +00:00
Ella Iseulde Van Dorpe
1e6be9cd89 TinyMCE: wpeditimage: trim class
Don't add extra spaces to classes. It causes some tests in the TinyMCE QUnit test suite to fail.

Fixes #31764.


git-svn-id: https://develop.svn.wordpress.org/trunk@32592 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 06:34:27 +00:00
Drew Jaynes
7baa0296ad Fix inline documentation syntax in wp_xmlrpc_server.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32591 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 06:24:27 +00:00
Scott Taylor
928dc46a3b Add missing doc blocks to formatting.php.
Rehabilitate the spacing of various doc blocks.
Standardize some return values that are adjacent to similar functions.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32590 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-25 02:58:00 +00:00
Scott Taylor
09d6c51801 Add missing doc blocks to default-widgets.php.
Move `add_action()` for widgets to `default-filters.php` with its brethren.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32589 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 21:27:12 +00:00
Scott Taylor
8e3c811b64 Alter some @return doc blocks for cron.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32588 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 21:10:00 +00:00
Scott Taylor
19108352b9 Add missing doc blocks to comment.php.
See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32587 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 21:03:42 +00:00
Drew Jaynes
248b17974d Clarify that wp_xmlrpc_server->wp_getTaxonomies() returns an IXR_Error instance on failure.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32586 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 20:34:07 +00:00
Drew Jaynes
f336aab356 Add missing argument descriptions for the $args parameter in wp_xmlrpc_server->wp_getTaxonomies().
Also documents missing `$filter` and `$fields` arguments and associated descriptions, and clarifies the return description.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32585 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 20:32:09 +00:00
Drew Jaynes
9613dd3a84 Add missing argument descriptions for the $args parameter in wp_xmlrpc_server->wp_getTaxonomy().
Also clarifies the return description.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32584 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 20:14:49 +00:00
Drew Jaynes
4b7db61698 Add missing argument descriptions for the $args parameter in wp_xmlrpc_server->wp_getTerms().
Also clarifies the return description.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32583 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 20:10:27 +00:00
Drew Jaynes
7cafb17a5e Add missing $args parameter descriptions for wp_xmlrpc_server->wp_getTerm().
Also clarifies the return description.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32582 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 20:07:01 +00:00
Drew Jaynes
b5b9cda58d Convert the $args parameter documentation for wp_xmlrpc_server->wp_newPost() into a hash notation.
Also adds more in-depth documentation and a link for information on enclosures.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32581 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 19:58:54 +00:00
Drew Jaynes
eb60152449 Improve inline documentation for the cron lock behavior.
Props ericlewis.
Fixes #32478.


git-svn-id: https://develop.svn.wordpress.org/trunk@32580 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 17:25:52 +00:00
Drew Jaynes
2c32effa02 In most wp_xmlrpc_server methods that accept an array of arguments, the argument order is important.
With the converstion to hash notations from simple lists in the inline documentation, it's especially important to make that requirement clear.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32579 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 17:18:47 +00:00
Drew Jaynes
0474aa9374 Convert the $args parameter documentation in wp_xmlrpc_server->wp_deleteTerm() into a hash notation.
Also clarifies the return description.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32578 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 17:01:37 +00:00
Drew Jaynes
633677efb0 Convert the $args parameter documentation in wp_xmlrpc_server->wp_editTerm() to a hash notation.
Also clarifies the return description.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32577 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 16:59:26 +00:00
Drew Jaynes
d07e39be55 Convert the $args parameter documentation in wp_xmlrpc_server->wp_newTerm() into a hash notation.
Also clarifies the return description.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32576 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 16:55:38 +00:00
Drew Jaynes
e117da47eb Convert the $args parameter for wp_xmlrpc_server->wp_getPosts() into a hash notation.
Also considates documentation to the argument descriptions themselves.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32575 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 16:50:53 +00:00
Drew Jaynes
6548f58224 Define the default values for the $fields parameter in the xmlrpc_default_post_fields hook docs.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32574 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 16:45:53 +00:00
Drew Jaynes
2c2cf3b037 Convert the $args parameter documentation in wp_xmlrpc_server->wp_getPost() into a hash notation.
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32573 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 16:44:21 +00:00
Drew Jaynes
a52e959d8e Add missing argument descriptions in the DocBlock for wp_xmlrpc_server->wp_deletePost().
See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32572 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 16:40:23 +00:00
Dion Hulse
d8dc5d9f63 Updates: Correctly identify more failed update cases. This checks for a WP_Error being raised during an individual update, in addition to just the bootstrap error cases.
The error message in these cases is still not displayed in the UI.

See #32473, #32435


git-svn-id: https://develop.svn.wordpress.org/trunk@32571 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 08:44:09 +00:00
Dion Hulse
8d64dc4e6b Shiny Updates: Handle the case where the plugin is installed into a different directory than it previously existed in.
A good example of this is when the plugin being updated is currently installed as 'Plugin-Name' but the canonical directory is 'plugin-name', but it can also occur when the plugin is installed in 'super-cool-plugin' and it's canonical name is 'average-plugin'.

Fixes #32465 for trunk


git-svn-id: https://develop.svn.wordpress.org/trunk@32570 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 08:04:55 +00:00
Konstantin Obenland
065cdadce9 Improve description for link notification option.
Makes it clear that the option only applies to new articles.

Props chriscct7.
Fixes #22961.



git-svn-id: https://develop.svn.wordpress.org/trunk@32569 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-24 07:54:06 +00:00