Ticket #32444: 32444.7.diff
File 32444.7.diff, 21.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/export.php
319 319 * 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 ) { 325 325 if ( '_edit_lock' == $meta_key ) -
src/wp-admin/includes/file.php
837 837 * the `WP_Filesystem_*()` classes. Default false. 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 ) { 843 843 global $wp_filesystem; … … 996 996 * 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 ) { 1008 1008 -
src/wp-admin/includes/image-edit.php
208 208 * @param WP_Image_Editor $image 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 ) { 214 214 if ( $image instanceof WP_Image_Editor ) { … … 264 264 * @param WP_Image_Editor $image 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 ) { 270 270 if ( $image instanceof WP_Image_Editor ) { … … 552 552 * in $_REQUEST['history'] 553 553 * 554 554 * @param int $post_id 555 * @return bool ean555 * @return bool 556 556 */ 557 557 function stream_preview_image( $post_id ) { 558 558 $post = get_post( $post_id ); -
src/wp-admin/includes/media.php
1493 1493 } 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 ); 1499 1499 … … 1743 1743 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>'; 1753 1753 if ( empty( $_GET['chromeless'] ) ) { … … 3024 3024 * @since 3.6.0 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 ) { 3030 3030 if ( ! file_exists( $file ) ) -
src/wp-admin/includes/template.php
1482 1482 * 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 ) { 1490 1490 -
src/wp-includes/class-IXR.php
152 152 * Checks whether or not the supplied array is a struct or not 153 153 * 154 154 * @param array $array 155 * @return bool ean155 * @return bool 156 156 */ 157 157 function isStruct($array) 158 158 { -
src/wp-includes/class-http.php
1255 1255 * @since 2.7.0 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() ) { 1261 1261 if ( ! function_exists( 'stream_socket_client' ) ) … … 1634 1634 * @static 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() ) { 1640 1640 if ( ! function_exists( 'curl_init' ) || ! function_exists( 'curl_exec' ) ) … … 2009 2009 * @since 2.8.0 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 ) { 2015 2015 if ( is_null( $this->name ) ) -
src/wp-includes/class-wp-customize-manager.php
38 38 /** 39 39 * Whether this is a Customizer pageload. 40 40 * 41 * @var bool ean41 * @var bool 42 42 */ 43 43 protected $previewing = false; 44 44 -
src/wp-includes/class-wp-customize-widgets.php
1431 1431 * @access protected 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 ) { 1437 1437 return ( 0 === strpos( $option_name, '_transient_' ) ); -
src/wp-includes/class-wp-image-editor-gd.php
87 87 * @since 3.5.0 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() { 93 93 if ( $this->image ) … … 160 160 * 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 */ 166 166 public function resize( $max_w, $max_h, $crop = false ) { … … 272 272 * @since 3.5.0 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 ) { 285 285 // If destination width/height isn't specified, use same as … … 344 344 * @since 3.5.0 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 */ 351 351 public function flip( $horz, $vert ) { … … 476 476 * @param string|stream $filename 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 ) { 482 482 if ( wp_is_stream( $filename ) ) -
src/wp-includes/class-wp-image-editor-imagick.php
43 43 * @access public 44 44 * 45 45 * @param array $args 46 * @return bool ean46 * @return bool 47 47 */ 48 48 public static function test( $args = array() ) { 49 49 … … 93 93 * @access public 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 ) { 99 99 $imagick_extension = strtoupper( self::get_extension( $mime_type ) ); … … 233 233 * 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 ) { 240 240 if ( ( $this->size['width'] == $max_w ) && ( $this->size['height'] == $max_h ) ) … … 338 338 * @since 3.5.0 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 ) { 351 351 if ( $src_abs ) { … … 411 411 * @since 3.5.0 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 */ 418 418 public function flip( $horz, $vert ) { -
src/wp-includes/class-wp-image-editor.php
37 37 * @abstract 38 38 * 39 39 * @param array $args 40 * @return bool ean40 * @return bool 41 41 */ 42 42 public static function test( $args = array() ) { 43 43 return false; … … 54 54 * @abstract 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 ) { 60 60 return false; … … 67 67 * @access protected 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(); 73 73 … … 97 97 * 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 ); 104 104 … … 135 135 * @param int $src_h The height to crop. 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 ); 142 142 … … 148 148 * @abstract 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 ); 154 154 … … 159 159 * @access public 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 ); 167 167 … … 173 173 * @abstract 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 ); 179 179 … … 410 410 * @param string|stream $filename 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 ) { 416 416 if ( $stream = wp_is_stream( $filename ) ) { -
src/wp-includes/class.wp-dependencies.php
331 331 * 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 ) { 337 337 foreach ( $queue as $queued ) { -
src/wp-includes/comment.php
1493 1493 * @global WP_Query $wp_query 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 */ 1500 1500 function get_comment_pages_count( $comments = null, $per_page = null, $threaded = null ) { -
src/wp-includes/deprecated.php
2445 2445 * @deprecated 3.0.0 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 ) { 2451 2451 _deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" ); -
src/wp-includes/link-template.php
2057 2057 * 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 */ 2064 2064 function next_posts( $max_page = 0, $echo = true ) { … … 2151 2151 * 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 */ 2157 2157 function previous_posts( $echo = true ) { -
src/wp-includes/plugin.php
615 615 * @param string $tag The action hook to which the function to be removed is hooked. 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 ) { 621 621 return remove_filter( $tag, $function_to_remove, $priority ); -
src/wp-includes/theme.php
1159 1159 * @since 3.2.0 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' ) { 1165 1165 $header_image_mod = get_theme_mod( 'header_image', get_theme_support( 'custom-header', 'default-image' ) ); -
src/wp-includes/wp-db.php
176 176 * @since 4.2.0 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; 182 182 -
src/wp-signup.php
299 299 * 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() { 306 306 global $wpdb, $blogname, $blog_title, $errors, $domain, $path;