Changeset 30681
- Timestamp:
- 12/01/2014 01:33:34 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r30122 r30681 14 14 * @global wpdb $wpdb WordPress database abstraction object. 15 15 * 16 * @param mixed$bookmark16 * @param int|stdClass $bookmark 17 17 * @param string $output Optional. Either OBJECT, ARRAY_N, or ARRAY_A constant 18 18 * @param string $filter Optional, default is 'raw'. -
trunk/src/wp-includes/cache.php
r29454 r30681 665 665 * 666 666 * @access protected 667 * @param string $key 668 * @param string $group 669 * @return bool 667 670 */ 668 671 protected function _exists( $key, $group ) { -
trunk/src/wp-includes/canonical.php
r30122 r30681 493 493 * @access private 494 494 * 495 * @param string $query_string 496 * @param array $args_to_check 497 * @param string $url 495 498 * @return string The altered query string 496 499 */ -
trunk/src/wp-includes/capabilities.php
r30656 r30681 612 612 * 613 613 * @since 3.3.0 614 * @param string $key 615 * @return bool 614 616 */ 615 617 public function __isset( $key ) { … … 632 634 * 633 635 * @since 3.3.0 636 * @param string $key 637 * @return mixed 634 638 */ 635 639 public function __get( $key ) { -
trunk/src/wp-includes/category-template.php
r30656 r30681 459 459 * 460 460 * @param string|array $args Optional. Override default arguments. 461 * @return string HTML content only if 'echo' argument is 0.461 * @return false|null|string HTML content only if 'echo' argument is 0. 462 462 */ 463 463 function wp_list_categories( $args = '' ) { … … 587 587 * @since 2.3.0 588 588 * 589 * @param array|string $args Optional. Override default arguments.590 * @return arrayGenerated tag cloud, only if no failures and 'array' is set for the 'format' argument.589 * @param array|string|null $args Optional. Override default arguments. 590 * @return null|false Generated tag cloud, only if no failures and 'array' is set for the 'format' argument. 591 591 */ 592 592 function wp_tag_cloud( $args = '' ) { … … 1322 1322 * @param string $sep Optional. Separate items using this. 1323 1323 * @param string $after Optional. After list. 1324 * @return null|bool False on WordPress error. Returns null when displaying.1324 * @return false|null False on WordPress error. Returns null when displaying. 1325 1325 */ 1326 1326 function the_terms( $id, $taxonomy, $before = '', $sep = ', ', $after = '' ) { -
trunk/src/wp-includes/class-http.php
r30604 r30681 300 300 * @param string $url URL to Request 301 301 * 302 * @return string| boolClass name for the first transport that claims to support the request. False if no transport claims to support the request.302 * @return string|false Class name for the first transport that claims to support the request. False if no transport claims to support the request. 303 303 */ 304 304 public function _get_first_available_transport( $args, $url = null ) { … … 2081 2081 * @param int $level Optional, default is 9. Compression level, 9 is highest. 2082 2082 * @param string $supports Optional, not used. When implemented it will choose the right compression based on what the server supports. 2083 * @return string| boolFalse on failure.2083 * @return string|false False on failure. 2084 2084 */ 2085 2085 public static function compress( $raw, $level = 9, $supports = null ) { … … 2181 2181 * @since 2.8.0 2182 2182 * 2183 * @param string $url 2184 * @param array $args 2183 2185 * @return string Types of encoding to accept. 2184 2186 */ -
trunk/src/wp-includes/class-oembed.php
r30536 r30681 271 271 * @param string $url The URL to the content that should be attempted to be embedded. 272 272 * @param array $args Optional arguments. Usually passed from a shortcode. 273 * @return bool|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.273 * @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed. 274 274 */ 275 275 function get_html( $url, $args = '' ) { … … 497 497 * @param object $data A data object result from an oEmbed provider. 498 498 * @param string $url The URL to the content that is desired to be embedded. 499 * @return bool|string False on error, otherwise the HTML needed to embed.499 * @return false|string False on error, otherwise the HTML needed to embed. 500 500 */ 501 501 public function data2html( $data, $url ) { -
trunk/src/wp-includes/class-wp-editor.php
r30670 r30681 251 251 } 252 252 253 /** 254 * @param string $editor_id 255 * @param array $set 256 */ 253 257 public static function editor_settings($editor_id, $set) { 254 258 $first_run = false; … … 757 761 * @param string $mce_locale The locale used for the editor. 758 762 * @param bool $json_only optional Whether to include the Javascript calls to tinymce.addI18n() and tinymce.ScriptLoader.markDone(). 759 * @return The translation object, JSON encoded.763 * @return string Translation object, JSON encoded. 760 764 */ 761 765 public static function wp_mce_translation( $mce_locale = '', $json_only = false ) { … … 1329 1333 * 1330 1334 * @param array $args Optional. Accepts 'pagenum' and 's' (search) arguments. 1331 * @return array Results.1335 * @return false|array Results. 1332 1336 */ 1333 1337 public static function wp_link_query( $args = array() ) { -
trunk/src/wp-includes/class-wp-embed.php
r30537 r30681 335 335 * 336 336 * @param string $url URL to potentially be linked. 337 * @return string|boolLinked URL or the original URL. False if 'return_false_on_fail' is true.337 * @return false|string Linked URL or the original URL. False if 'return_false_on_fail' is true. 338 338 */ 339 339 public function maybe_make_link( $url ) { -
trunk/src/wp-includes/class-wp-error.php
r29854 r30681 243 243 $this->error_data[$code] = $data; 244 244 } 245 245 246 246 /** 247 247 * Removes the specified error. -
trunk/src/wp-includes/class-wp-http-ixr-client.php
r30179 r30681 14 14 public $error; 15 15 16 /** 17 * @param string $server 18 * @param string|bool $path 19 * @param int|bool $port 20 * @param int $timeout 21 */ 16 22 public function __construct($server, $path = false, $port = false, $timeout = 15) { 17 23 if ( ! $path ) { -
trunk/src/wp-includes/class-wp-image-editor-gd.php
r30180 r30681 256 256 * @access public 257 257 * 258 * @param string|int $src The source file or Attachment ID.259 258 * @param int $src_x The start x position to crop from. 260 259 * @param int $src_y The start y position to crop from. … … 356 355 * @access public 357 356 * 358 * @param string $destfilename359 * @param string $mime_type357 * @param string|null $filename 358 * @param string|null $mime_type 360 359 * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} 361 360 */ … … 371 370 } 372 371 372 /** 373 * @param resource $image 374 * @param string|null $filename 375 * @param string|null $mime_type 376 * @return WP_Error|array 377 */ 373 378 protected function _save( $image, $filename = null, $mime_type = null ) { 374 379 list( $filename, $extension, $mime_type ) = $this->get_output_format( $filename, $mime_type ); -
trunk/src/wp-includes/class-wp-theme.php
r30105 r30681 1034 1034 * @access public 1035 1035 * 1036 * @return True if the textdomain was successfully loaded or has already been loaded. False if1036 * @return bool If the textdomain was successfully loaded or has already been loaded. False if 1037 1037 * no textdomain was specified in the file headers, or if the domain could not be loaded. 1038 1038 */ -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r30181 r30681 4631 4631 } 4632 4632 4633 /** 4634 * @param integer $post_ID 4635 * @param array $enclosure 4636 */ 4633 4637 public function add_enclosure_if_new( $post_ID, $enclosure ) { 4634 4638 if ( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) { … … 5915 5919 } 5916 5920 5921 /** 5922 * @param integer $code 5923 * @param string $message 5924 */ 5917 5925 protected function pingback_error( $code, $message ) { 5918 5926 /** -
trunk/src/wp-includes/class.wp-styles.php
r29958 r30681 40 40 } 41 41 42 /** 43 * @param string $handle 44 * @return bool 45 */ 42 46 public function do_item( $handle ) { 43 47 if ( !parent::do_item($handle) ) … … 120 124 } 121 125 126 /** 127 * @param string $handle 128 * @param string $code 129 */ 122 130 public function add_inline_style( $handle, $code ) { 123 131 if ( ! $code ) { … … 135 143 } 136 144 145 /** 146 * @param string $handle 147 * @param bool $echo 148 * @return bool 149 */ 137 150 public function print_inline_style( $handle, $echo = true ) { 138 151 $output = $this->get_data( $handle, 'after' ); … … 153 166 } 154 167 168 /** 169 * @param mixed $handles 170 * @param bool $recursion 171 * @param mixed $group 172 * @return bool 173 */ 155 174 public function all_deps( $handles, $recursion = false, $group = false ) { 156 175 $r = parent::all_deps( $handles, $recursion ); … … 168 187 } 169 188 189 /** 190 * @param string $src 191 * @param string $ver 192 * @param string $handle 193 * @return string 194 */ 170 195 public function _css_href( $src, $ver, $handle ) { 171 196 if ( !is_bool($src) && !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { … … 188 213 } 189 214 215 /** 216 * @param string $src 217 * @return bool 218 */ 190 219 public function in_default_dir($src) { 191 220 if ( ! $this->default_dirs ) -
trunk/src/wp-includes/comment-template.php
r30656 r30681 708 708 * 709 709 * @param string $deprecated Not Used. 710 * @param bool$deprecated_2 Not Used.710 * @param string $deprecated_2 Not Used. 711 711 */ 712 712 function comments_link( $deprecated = '', $deprecated_2 = '' ) { … … 1354 1354 * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. 1355 1355 * Default current post. 1356 * @return mixedLink to show comment form, if successful. False, if comments are closed.1356 * @return null|false|string Link to show comment form, if successful. False, if comments are closed. 1357 1357 */ 1358 1358 function get_comment_reply_link( $args = array(), $comment = null, $post = null ) { … … 1467 1467 * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on. 1468 1468 * Default current post. 1469 * @return string|bool|nullLink to show comment form, if successful. False, if comments are closed.1469 * @return false|null|string Link to show comment form, if successful. False, if comments are closed. 1470 1470 */ 1471 1471 function get_post_reply_link($args = array(), $post = null) { -
trunk/src/wp-includes/comment.php
r30656 r30681 1746 1746 * 1747 1747 * @param int $comment_id Comment ID 1748 * @return string|boolStatus might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.1748 * @return false|string Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure. 1749 1749 */ 1750 1750 function wp_get_comment_status($comment_id) { … … 2299 2299 * @param int $post_id Post ID 2300 2300 * @param bool $do_deferred Whether to process previously deferred post comment counts 2301 * @return bool True on success, false on failure2301 * @return bool|null True on success, false on failure 2302 2302 */ 2303 2303 function wp_update_comment_count($post_id, $do_deferred=false) { … … 2377 2377 * @param string $url URL to ping. 2378 2378 * @param int $deprecated Not Used. 2379 * @return bool|string False on failure, string containing URI on success.2379 * @return false|string False on failure, string containing URI on success. 2380 2380 */ 2381 2381 function discover_pingback_server_uri( $url, $deprecated = '' ) { -
trunk/src/wp-includes/cron.php
r30537 r30681 67 67 * @param string $hook Action hook to execute when cron is run. 68 68 * @param array $args Optional. Arguments to pass to the hook's callback function. 69 * @return bool|null False on failure, null when complete with scheduling event.69 * @return false|null False on failure, null when complete with scheduling event. 70 70 */ 71 71 function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array()) { … … 100 100 * @param string $hook Action hook to execute when cron is run. 101 101 * @param array $args Optional. Arguments to pass to the hook's callback function. 102 * @return bool|null False on failure. Null when event is rescheduled.102 * @return false|null False on failure. Null when event is rescheduled. 103 103 */ 104 104 function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array() ) { -
trunk/src/wp-includes/date.php
r30612 r30681 186 186 * @access public 187 187 * 188 * @param array $query A tax_query query clause. 188 * @param array $queries 189 * @param array $parent_query 190 * 189 191 * @return array Sanitized queries. 190 192 */ … … 778 780 * @param string $compare The compare operator to use 779 781 * @param string|array $value The value 780 * @return string| int|falseThe value to be used in SQL or false on error.782 * @return string|false|int The value to be used in SQL or false on error. 781 783 */ 782 784 public function build_value( $compare, $value ) { -
trunk/src/wp-includes/deprecated.php
r30538 r30681 428 428 * @param string $category The category to use. 429 429 * @param string $args 430 * @return bool|null430 * @return string|null 431 431 */ 432 432 function wp_get_linksbyname($category, $args = '') { … … 579 579 * order which will return links in a random order. 580 580 * @param bool $show_description Whether to show the description if show_images=false/not defined. 581 * @param string$limit Limit to X entries. If not specified, all entries are shown.581 * @param int $limit Limit to X entries. If not specified, all entries are shown. 582 582 * @param int $show_updated Whether to show last updated timestamp 583 583 */ … … 628 628 * @param string $exclude 629 629 * @param bool $hierarchical 630 * @return string630 * @return false|null 631 631 */ 632 632 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, … … 647 647 * 648 648 * @param string|array $args 649 * @return string649 * @return false|null|string 650 650 */ 651 651 function wp_list_cats($args = '') { … … 1157 1157 * @param bool $echo 1158 1158 * @param int $cat_ID 1159 * @return string |null1159 * @return string 1160 1160 */ 1161 1161 function get_category_rss_link($echo = false, $cat_ID = 1) { … … 1179 1179 * @param bool $echo 1180 1180 * @param int $author_id 1181 * @return string |null1181 * @return string 1182 1182 */ 1183 1183 function get_author_rss_link($echo = false, $author_id = 1) { … … 1658 1658 * @see get_the_author_meta() 1659 1659 * 1660 * @return int The author's ID.1660 * @return string|int The author's ID. 1661 1661 */ 1662 1662 function get_the_author_ID() { … … 1702 1702 * 1703 1703 * @param string $more_link_text Optional. Text to display when more content is available but not displayed. 1704 * @param int |bool$stripteaser Optional. Default is 0.1704 * @param int $stripteaser Optional. Default is 0. 1705 1705 * @param string $more_file Optional. 1706 1706 * @param int $cut Optional. Amount of words to keep for the content. … … 1961 1961 * @param bool $fullsize Optional, default to false. Whether to have full size image. 1962 1962 * @param array $max_dims Optional. Dimensions of image. 1963 * @return string HTML content.1963 * @return false|string HTML content. 1964 1964 */ 1965 1965 function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { … … 2018 2018 * @param bool $fullsize Optional, default to false. Whether to have full size image. 2019 2019 * @param array $max_dims Optional. Dimensions of image. 2020 * @return string2020 * @return false|string 2021 2021 */ 2022 2022 function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) { … … 3042 3042 * @see remove_theme_support() 3043 3043 * 3044 * @return bool Whether support was removed.3044 * @return null|bool Whether support was removed. 3045 3045 */ 3046 3046 function remove_custom_image_header() { … … 3079 3079 * @see add_custom_background() 3080 3080 * 3081 * @return bool Whether support was removed.3081 * @return null|bool Whether support was removed. 3082 3082 */ 3083 3083 function remove_custom_background() { … … 3293 3293 * @param int $postid Post ID. 3294 3294 * @param string $mode How to return result, either OBJECT, ARRAY_N, or ARRAY_A. 3295 * @return object|arrayPost object or array holding post contents and information3295 * @return WP_Post|null Post object or array holding post contents and information 3296 3296 */ 3297 3297 function wp_get_single_post( $postid = 0, $mode = OBJECT ) { -
trunk/src/wp-includes/feed.php
r30105 r30681 277 277 * 278 278 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object. 279 * @return bool|string false on failure or guid for comment on success.279 * @return false|string false on failure or guid for comment on success. 280 280 */ 281 281 function get_comment_guid($comment_id = null) { -
trunk/src/wp-includes/formatting.php
r30575 r30681 578 578 * 579 579 * @param string $string The text which is to be encoded. 580 * @param mixed$quote_style Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES.580 * @param int $quote_style Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES. 581 581 * @param string $charset Optional. The character encoding of the string. Default is false. 582 582 * @param boolean $double_encode Optional. Whether to encode existing html entities. Default is false. … … 1318 1318 * 1319 1319 * @param string $orderby Order by string to be checked. 1320 * @return string|boolReturns the order by clause if it is a match, false otherwise.1320 * @return false|string Returns the order by clause if it is a match, false otherwise. 1321 1321 */ 1322 1322 function sanitize_sql_orderby( $orderby ){ … … 2220 2220 * 2221 2221 * @param array $match The preg_replace_callback matches array 2222 * @return arrayConverted chars2222 * @return string Converted chars 2223 2223 */ 2224 2224 function _wp_iso_convert( $match ) {
Note: See TracChangeset
for help on using the changeset viewer.