Changeset 32964
- Timestamp:
- 06/27/2015 01:02:12 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r32730 r32964 320 320 * @param bool $return_me 321 321 * @param string $meta_key 322 * @return bool ean322 * @return bool 323 323 */ 324 324 function wxr_filter_postmeta( $return_me, $meta_key ) { -
trunk/src/wp-admin/includes/file.php
r32642 r32964 838 838 * @param string|false $context Optional. Context for get_filesystem_method(). Default false. 839 839 * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false. 840 * @return null|bool eanfalse on failure, true on success.840 * @return null|bool false on failure, true on success. 841 841 */ 842 842 function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { … … 997 997 * @todo Properly mark optional arguments as such 998 998 * 999 * @param string $form_post the URL to post the form to1000 * @param string $type the chosen Filesystem method in use1001 * @param bool ean $errorif the current request has failed to connect1002 * @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method()1003 * @param array $extra_fields Extra POST fields which should be checked for to be included in the post.1004 * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable.1005 * @return bool eanFalse on failure. True on success.999 * @param string $form_post the URL to post the form to 1000 * @param string $type the chosen Filesystem method in use 1001 * @param bool $error if the current request has failed to connect 1002 * @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method() 1003 * @param array $extra_fields Extra POST fields which should be checked for to be included in the post. 1004 * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable. 1005 * @return bool False on failure. True on success. 1006 1006 */ 1007 1007 function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false, $extra_fields = null, $allow_relaxed_file_ownership = false ) { -
trunk/src/wp-admin/includes/image-edit.php
r32642 r32964 209 209 * @param string $mime_type 210 210 * @param int $post_id 211 * @return bool ean211 * @return bool 212 212 */ 213 213 function wp_stream_image( $image, $mime_type, $post_id ) { … … 265 265 * @param string $mime_type 266 266 * @param int $post_id 267 * @return bool ean267 * @return bool 268 268 */ 269 269 function wp_save_image_file( $filename, $image, $mime_type, $post_id ) { … … 553 553 * 554 554 * @param int $post_id 555 * @return bool ean555 * @return bool 556 556 */ 557 557 function stream_preview_image( $post_id ) { -
trunk/src/wp-admin/includes/media.php
r32673 r32964 1494 1494 if ( 'image' == $type && $calling_post_id && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) ) 1495 1495 && post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' ) && get_post_thumbnail_id( $calling_post_id ) != $attachment_id ) { 1496 1496 1497 1497 $calling_post = get_post( $calling_post_id ); 1498 1498 $calling_post_type_object = get_post_type_object( $calling_post->post_type ); … … 1744 1744 $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 1745 1745 1746 if ( ! empty( $post_id ) ) { 1747 $post_type = get_post_type( $post_id ); 1746 if ( ! empty( $post_id ) ) { 1747 $post_type = get_post_type( $post_id ); 1748 1748 } else { 1749 $post_type = ''; 1750 } 1749 $post_type = ''; 1750 } 1751 1751 1752 1752 echo '<script type="text/javascript">post_id = ' . $post_id . ';post_type = ' . $post_type . ';</script>'; … … 3025 3025 * 3026 3026 * @param string $file Path to file. 3027 * @return array|bool eanReturns array of metadata, if found.3027 * @return array|bool Returns array of metadata, if found. 3028 3028 */ 3029 3029 function wp_read_audio_metadata( $file ) { -
trunk/src/wp-admin/includes/template.php
r32945 r32964 1483 1483 * @since 3.0.0 1484 1484 * 1485 * @param string $setting Optional slug title of a specific setting who's errors you want.1486 * @param bool ean $sanitizeWhether to re-sanitize the setting value before returning errors.1487 * @param bool ean$hide_on_update If set to true errors will not be shown if the settings page has already been submitted.1485 * @param string $setting Optional slug title of a specific setting who's errors you want. 1486 * @param bool $sanitize Whether to re-sanitize the setting value before returning errors. 1487 * @param bool $hide_on_update If set to true errors will not be shown if the settings page has already been submitted. 1488 1488 */ 1489 1489 function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) { -
trunk/src/wp-includes/class-IXR.php
r31004 r32964 153 153 * 154 154 * @param array $array 155 * @return bool ean155 * @return bool 156 156 */ 157 157 function isStruct($array) -
trunk/src/wp-includes/class-http.php
r32712 r32964 1256 1256 * @since 3.7.0 Combined with the fsockopen transport and switched to stream_socket_client(). 1257 1257 * 1258 * @return bool eanFalse means this class can not be used, true means it can.1258 * @return bool False means this class can not be used, true means it can. 1259 1259 */ 1260 1260 public static function test( $args = array() ) { … … 1635 1635 * @since 2.7.0 1636 1636 * 1637 * @return bool eanFalse means this class can not be used, true means it can.1637 * @return bool False means this class can not be used, true means it can. 1638 1638 */ 1639 1639 public static function test( $args = array() ) { … … 2010 2010 * 2011 2011 * @param string $url URL you intend to send this cookie to 2012 * @return bool eantrue if allowed, false otherwise.2012 * @return bool true if allowed, false otherwise. 2013 2013 */ 2014 2014 public function test( $url ) { -
trunk/src/wp-includes/class-wp-customize-manager.php
r32806 r32964 39 39 * Whether this is a Customizer pageload. 40 40 * 41 * @var bool ean41 * @var bool 42 42 */ 43 43 protected $previewing = false; -
trunk/src/wp-includes/class-wp-customize-widgets.php
r32874 r32964 1432 1432 * 1433 1433 * @param string $option_name Option name. 1434 * @return bool eanWhether the option capture is ignored.1434 * @return bool Whether the option capture is ignored. 1435 1435 */ 1436 1436 protected function is_option_capture_ignored( $option_name ) { -
trunk/src/wp-includes/class-wp-image-editor-gd.php
r32650 r32964 88 88 * @access protected 89 89 * 90 * @return bool ean|WP_Error True if loaded successfully; WP_Error on failure.90 * @return bool|WP_Error True if loaded successfully; WP_Error on failure. 91 91 */ 92 92 public function load() { … … 161 161 * @param int|null $max_w Image width. 162 162 * @param int|null $max_h Image height. 163 * @param bool ean$crop163 * @param bool $crop 164 164 * @return true|WP_Error 165 165 */ … … 273 273 * @access public 274 274 * 275 * @param int $src_xThe start x position to crop from.276 * @param int $src_yThe start y position to crop from.277 * @param int $src_wThe width to crop.278 * @param int $src_hThe height to crop.279 * @param int $dst_wOptional. The destination width.280 * @param int $dst_hOptional. The destination height.281 * @param bool ean$src_abs Optional. If the source crop points are absolute.282 * @return bool ean|WP_Error275 * @param int $src_x The start x position to crop from. 276 * @param int $src_y The start y position to crop from. 277 * @param int $src_w The width to crop. 278 * @param int $src_h The height to crop. 279 * @param int $dst_w Optional. The destination width. 280 * @param int $dst_h Optional. The destination height. 281 * @param bool $src_abs Optional. If the source crop points are absolute. 282 * @return bool|WP_Error 283 283 */ 284 284 public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) { … … 345 345 * @access public 346 346 * 347 * @param bool ean$horz Flip along Horizontal Axis348 * @param bool ean$vert Flip along Vertical Axis347 * @param bool $horz Flip along Horizontal Axis 348 * @param bool $vert Flip along Vertical Axis 349 349 * @returns true|WP_Error 350 350 */ … … 477 477 * @param callable $function 478 478 * @param array $arguments 479 * @return bool ean479 * @return bool 480 480 */ 481 481 protected function make_image( $filename, $function, $arguments ) { -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r32800 r32964 44 44 * 45 45 * @param array $args 46 * @return bool ean46 * @return bool 47 47 */ 48 48 public static function test( $args = array() ) { … … 94 94 * 95 95 * @param string $mime_type 96 * @return bool ean96 * @return bool 97 97 */ 98 98 public static function supports_mime_type( $mime_type ) { … … 234 234 * @param int|null $max_w Image width. 235 235 * @param int|null $max_h Image height. 236 * @param bool ean$crop237 * @return bool ean|WP_Error236 * @param bool $crop 237 * @return bool|WP_Error 238 238 */ 239 239 public function resize( $max_w, $max_h, $crop = false ) { … … 339 339 * @access public 340 340 * 341 * @param int $src_x The start x position to crop from.342 * @param int $src_y The start y position to crop from.343 * @param int $src_w The width to crop.344 * @param int $src_h The height to crop.345 * @param int $dst_w Optional. The destination width.346 * @param int $dst_h Optional. The destination height.347 * @param bool ean$src_abs Optional. If the source crop points are absolute.348 * @return bool ean|WP_Error341 * @param int $src_x The start x position to crop from. 342 * @param int $src_y The start y position to crop from. 343 * @param int $src_w The width to crop. 344 * @param int $src_h The height to crop. 345 * @param int $dst_w Optional. The destination width. 346 * @param int $dst_h Optional. The destination height. 347 * @param bool $src_abs Optional. If the source crop points are absolute. 348 * @return bool|WP_Error 349 349 */ 350 350 public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) { … … 412 412 * @access public 413 413 * 414 * @param bool ean$horz Flip along Horizontal Axis415 * @param bool ean$vert Flip along Vertical Axis414 * @param bool $horz Flip along Horizontal Axis 415 * @param bool $vert Flip along Vertical Axis 416 416 * @returns true|WP_Error 417 417 */ -
trunk/src/wp-includes/class-wp-image-editor.php
r32800 r32964 38 38 * 39 39 * @param array $args 40 * @return bool ean40 * @return bool 41 41 */ 42 42 public static function test( $args = array() ) { … … 55 55 * 56 56 * @param string $mime_type 57 * @return bool ean57 * @return bool 58 58 */ 59 59 public static function supports_mime_type( $mime_type ) { … … 68 68 * @abstract 69 69 * 70 * @return bool ean|WP_Error True if loaded; WP_Error on failure.70 * @return bool|WP_Error True if loaded; WP_Error on failure. 71 71 */ 72 72 abstract public function load(); … … 98 98 * @param int|null $max_w Image width. 99 99 * @param int|null $max_h Image height. 100 * @param bool ean$crop101 * @return bool ean|WP_Error100 * @param bool $crop 101 * @return bool|WP_Error 102 102 */ 103 103 abstract public function resize( $max_w, $max_h, $crop = false ); … … 136 136 * @param int $dst_w Optional. The destination width. 137 137 * @param int $dst_h Optional. The destination height. 138 * @param bool ean$src_abs Optional. If the source crop points are absolute.139 * @return bool ean|WP_Error138 * @param bool $src_abs Optional. If the source crop points are absolute. 139 * @return bool|WP_Error 140 140 */ 141 141 abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ); … … 149 149 * 150 150 * @param float $angle 151 * @return bool ean|WP_Error151 * @return bool|WP_Error 152 152 */ 153 153 abstract public function rotate( $angle ); … … 160 160 * @abstract 161 161 * 162 * @param bool ean$horz Flip along Horizontal Axis163 * @param bool ean$vert Flip along Vertical Axis164 * @return bool ean|WP_Error162 * @param bool $horz Flip along Horizontal Axis 163 * @param bool $vert Flip along Vertical Axis 164 * @return bool|WP_Error 165 165 */ 166 166 abstract public function flip( $horz, $vert ); … … 174 174 * 175 175 * @param string $mime_type 176 * @return bool ean|WP_Error176 * @return bool|WP_Error 177 177 */ 178 178 abstract public function stream( $mime_type = null ); … … 411 411 * @param callable $function 412 412 * @param array $arguments 413 * @return bool ean413 * @return bool 414 414 */ 415 415 protected function make_image( $filename, $function, $arguments ) { -
trunk/src/wp-includes/class.wp-dependencies.php
r32483 r32964 332 332 * @param array $queue An array of queued _WP_Dependency handle objects. 333 333 * @param string $handle Name of the item. Should be unique. 334 * @return bool eanWhether the handle is found after recursively searching the dependency tree.334 * @return bool Whether the handle is found after recursively searching the dependency tree. 335 335 */ 336 336 protected function recurse_deps( $queue, $handle ) { -
trunk/src/wp-includes/comment.php
r32911 r32964 1494 1494 * 1495 1495 * @param array $comments Optional array of comment objects. Defaults to $wp_query->comments 1496 * @param int $per_page Optional comments per page.1497 * @param bool ean$threaded Optional control over flat or threaded comments.1496 * @param int $per_page Optional comments per page. 1497 * @param bool $threaded Optional control over flat or threaded comments. 1498 1498 * @return int Number of comment pages. 1499 1499 */ -
trunk/src/wp-includes/deprecated.php
r32899 r32964 2446 2446 * @deprecated Use add_theme_support( 'automatic-feed-links' ) 2447 2447 * 2448 * @param bool ean$add Optional, default is true. Add or remove links. Defaults to true.2448 * @param bool $add Optional, default is true. Add or remove links. Defaults to true. 2449 2449 */ 2450 2450 function automatic_feed_links( $add = true ) { -
trunk/src/wp-includes/link-template.php
r32954 r32964 2058 2058 * @since 0.71 2059 2059 * 2060 * @param int 2061 * @param bool ean$echo Optional. Echo or return;2060 * @param int $max_page Optional. Max pages. 2061 * @param bool $echo Optional. Echo or return; 2062 2062 * @return string|void The link URL for next posts page if `$echo = false`. 2063 2063 */ … … 2152 2152 * @since 0.71 2153 2153 * 2154 * @param bool ean$echo Optional. Echo or return;2154 * @param bool $echo Optional. Echo or return; 2155 2155 * @return string|void The previous posts page link if `$echo = false`. 2156 2156 */ -
trunk/src/wp-includes/plugin.php
r32829 r32964 616 616 * @param callback $function_to_remove The name of the function which should be removed. 617 617 * @param int $priority Optional. The priority of the function. Default 10. 618 * @return bool eanWhether the function is removed.618 * @return bool Whether the function is removed. 619 619 */ 620 620 function remove_action( $tag, $function_to_remove, $priority = 10 ) { -
trunk/src/wp-includes/theme.php
r32928 r32964 1160 1160 * 1161 1161 * @param string $type The random pool to use. any|default|uploaded 1162 * @return bool ean1162 * @return bool 1163 1163 */ 1164 1164 function is_random_header_image( $type = 'any' ) { -
trunk/src/wp-includes/wp-db.php
r32641 r32964 177 177 * @access private 178 178 * @see wpdb::check_safe_collation() 179 * @var bool ean179 * @var bool 180 180 */ 181 181 private $checking_collation = false; -
trunk/src/wp-signup.php
r32733 r32964 300 300 * @since MU 301 301 * 302 * @return null|bool eanTrue if blog signup was validated, false if error.303 * 302 * @return null|bool True if blog signup was validated, false if error. 303 * The function halts all execution if the user is not logged in. 304 304 */ 305 305 function validate_another_blog_signup() {
Note: See TracChangeset
for help on using the changeset viewer.