Changeset 46594
- Timestamp:
- 10/26/2019 08:42:00 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r46091 r46594 1320 1320 * @param string $title Optional. Title to override the post's current title when generating the post name. Default null. 1321 1321 * @param string $name Optional. Name to override the post name. Default null. 1322 * @return array Array containing the sample permalink with placeholder for the post name, and the post name. 1322 * @return array { 1323 * Array containing the sample permalink with placeholder for the post name, and the post name. 1324 * 1325 * @type string $0 The permalink with placeholder for the post name. 1326 * @type string $1 The post name. 1327 * } 1323 1328 */ 1324 1329 function get_sample_permalink( $id, $title = null, $name = null ) { … … 1384 1389 * @since 4.4.0 1385 1390 * 1386 * @param array $permalink Array containing the sample permalink with placeholder for the post name, and the post name. 1391 * @param array $permalink { 1392 * Array containing the sample permalink with placeholder for the post name, and the post name. 1393 * 1394 * @type string $0 The permalink with placeholder for the post name. 1395 * @type string $1 The post name. 1396 * } 1387 1397 * @param int $post_id Post ID. 1388 1398 * @param string $title Post title. … … 1638 1648 1639 1649 if ( $user ) { 1640 1641 1650 /** 1642 1651 * Filters whether to show the post locked dialog. 1643 1652 * 1644 * Returning a falsey value to the filter will short-circuit displaying the dialog.1653 * Returning false from the filter will prevent the dialog from being displayed. 1645 1654 * 1646 1655 * @since 3.6.0 1647 1656 * 1648 * @param bool 1649 * @param WP_Post 1650 * @param WP_User |bool $user WP_User object on success, false otherwise.1657 * @param bool $display Whether to display the dialog. Default true. 1658 * @param WP_Post $post Post object. 1659 * @param WP_User $user The user with the lock for the post. 1651 1660 */ 1652 1661 if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) { … … 1697 1706 * Filters whether to allow the post lock to be overridden. 1698 1707 * 1699 * Returning a falsey value tothe filter will disable the ability1708 * Returning false from the filter will disable the ability 1700 1709 * to override the post lock. 1701 1710 * 1702 1711 * @since 3.6.0 1703 1712 * 1704 * @param bool $override Whether to allow overriding post locks. Default true.1713 * @param bool $override Whether to allow the post lock to be overridden. Default true. 1705 1714 * @param WP_Post $post Post object. 1706 * @param WP_User $user User object.1715 * @param WP_User $user The user with the lock for the post. 1707 1716 */ 1708 1717 $override = apply_filters( 'override_post_lock', true, $post, $user ); -
trunk/src/wp-admin/user-new.php
r45932 r46594 106 106 * 107 107 * @param int $user_id The invited user's ID. 108 * @param array $role The role ofinvited user.108 * @param array $role Array containing role information for the invited user. 109 109 * @param string $newuser_key The key of the invitation. 110 110 */ -
trunk/src/wp-includes/class-wp-block-styles-registry.php
r46586 r46594 68 68 * 69 69 * @param string $block_name Block type name including namespace. 70 * @param array$block_style_name Block style name.70 * @param string $block_style_name Block style name. 71 71 * 72 72 * @return boolean True if the block style was unregistered with success and false otherwise. … … 91 91 * 92 92 * @param string $block_name Block type name including namespace. 93 * @param array$block_style_name Block style name.93 * @param string $block_style_name Block style name. 94 94 * 95 95 * @return array Registered block style properties. … … 136 136 * 137 137 * @param string $block_name Block type name including namespace. 138 * @param array$block_style_name Block style name.138 * @param string $block_style_name Block style name. 139 139 * 140 140 * @return bool True if the block style is registered, false otherwise. -
trunk/src/wp-includes/class-wp-image-editor-gd.php
r45892 r46594 246 246 * @since 5.3.0 247 247 * 248 * @param array $size_data Array of width, height, and whether to crop. 248 * @param array $size_data { 249 * Array of size data. 250 * 251 * @type int $width The maximum width in pixels. 252 * @type int $height The maximum height in pixels. 253 * @type bool $crop Whether to crop the image to exact dimensions. 254 * } 249 255 * @return WP_Error|array WP_Error on error, or the image data array for inclusion in the `sizes` array in the image meta. 250 256 */ -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r46238 r46594 454 454 * @since 5.3.0 455 455 * 456 * @param array $size_data Array of width, height, and whether to crop. 456 * @param array $size_data { 457 * Array of size data. 458 * 459 * @type int $width The maximum width in pixels. 460 * @type int $height The maximum height in pixels. 461 * @type bool $crop Whether to crop the image to exact dimensions. 462 * } 457 463 * @return WP_Error|array WP_Error on error, or the image data array for inclusion in the `sizes` array in the image meta. 458 464 */ -
trunk/src/wp-includes/functions.php
r46577 r46594 2858 2858 * 2859 2859 * @since 3.5.0 2860 * @since 4.2.0 Support was added for GIMP (xcf) files. 2860 * @since 4.2.0 Support was added for GIMP (.xcf) files. 2861 * @since 4.9.2 Support was added for Flac (.flac) files. 2862 * @since 4.9.6 Support was added for AAC (.aac) files. 2861 2863 * 2862 2864 * @return array Array of mime types keyed by the file extension regex corresponding to those types. … … 3043 3045 * @since 2.0.0 3044 3046 * 3045 * @param array $t Mime types keyed by the file extension regex corresponding to 3046 * those types. 'swf' and 'exe' removed from full list. 'htm|html' also 3047 * removed depending on '$user' capabilities. 3047 * @param array $t Mime types keyed by the file extension regex corresponding to those types. 3048 3048 * @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user). 3049 3049 */ -
trunk/src/wp-includes/media.php
r46418 r46594 39 39 * 40 40 * Finally, there is a filter named {@see 'editor_max_image_size'}, that will be 41 * called on the calculated array for width and height, respectively. The second 42 * parameter will be the value that was in the $size parameter. The returned 43 * type for the hook is an array with the width as the first element and the 44 * height as the second element. 41 * called on the calculated array for width and height, respectively. 45 42 * 46 43 * @since 2.5.0 … … 55 52 * @param string $context Optional. Could be 'display' (like in a theme) or 'edit' 56 53 * (like inserting into an editor). Default null. 57 * @return array Width and height of what the result image should resize to. 54 * @return int[] { 55 * An array of width and height values. 56 * 57 * @type int $0 The maximum width in pixels. 58 * @type int $1 The maximum height in pixels. 59 * } 58 60 */ 59 61 function image_constrain_size_for_editor( $width, $height, $size = 'medium', $context = null ) { … … 118 120 * @since 2.5.0 119 121 * 120 * @param array $max_image_size An array with the width as the first element, 121 * and the height as the second element. 122 * @param int[] $max_image_size { 123 * An array of width and height values. 124 * 125 * @type int $0 The maximum width in pixels. 126 * @type int $1 The maximum height in pixels. 127 * } 122 128 * @param string|array $size Size of what the result image should be. 123 129 * @param string $context The context the image is being resized for. … … 418 424 * @param int $max_width Optional. Max width in pixels to constrain to. Default 0. 419 425 * @param int $max_height Optional. Max height in pixels to constrain to. Default 0. 420 * @return array First item is the width, the second item is the height. 426 * @return int[] { 427 * An array of width and height values. 428 * 429 * @type int $0 The width in pixels. 430 * @type int $1 The height in pixels. 431 * } 421 432 */ 422 433 function wp_constrain_dimensions( $current_width, $current_height, $max_width = 0, $max_height = 0 ) { … … 475 486 * @since 4.1.0 476 487 * 477 * @param array $dimensions The image width and height. 488 * @param int[] $dimensions { 489 * An array of width and height values. 490 * 491 * @type int $0 The width in pixels. 492 * @type int $1 The height in pixels. 493 * } 478 494 * @param int $current_width The current width of the image. 479 495 * @param int $current_height The current height of the image. … … 1150 1166 * @since 4.4.0 1151 1167 * 1152 * @param array $size_array Array of width and height values in pixels (in that order). 1168 * @param int[] $size_array { 1169 * An array of width and height values. 1170 * 1171 * @type int $0 The width in pixels. 1172 * @type int $1 The height in pixels. 1173 * } 1153 1174 * @param string $image_src The 'src' of the image. 1154 1175 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. 1155 * @param int $attachment_id Optional. The image attachment ID to pass to the filter. Default 0.1176 * @param int $attachment_id Optional. The image attachment ID. Default 0. 1156 1177 * @return string|bool The 'srcset' attribute value. False on error or when only one source exists. 1157 1178 */ … … 1163 1184 * 1164 1185 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. 1165 * @param array $size_array Array of width and height values in pixels (in that order). 1186 * @param int[] $size_array { 1187 * An array of requested width and height values. 1188 * 1189 * @type int $0 The width in pixels. 1190 * @type int $1 The height in pixels. 1191 * } 1166 1192 * @param string $image_src The 'src' of the image. 1167 1193 * @param int $attachment_id The image attachment ID or 0 if not supplied. … … 1232 1258 * 1233 1259 * @param int $max_width The maximum image width to be included in the 'srcset'. Default '2048'. 1234 * @param array $size_array Array of width and height values in pixels (in that order). 1260 * @param int[] $size_array { 1261 * An array of requested width and height values. 1262 * 1263 * @type int $0 The width in pixels. 1264 * @type int $1 The height in pixels. 1265 * } 1235 1266 */ 1236 1267 $max_srcset_image_width = apply_filters( 'max_srcset_image_width', 2048, $size_array ); … … 1311 1342 * } 1312 1343 * } 1313 * @param array $size_array Array of width and height values in pixels (in that order). 1344 * @param array $size_array { 1345 * An array of requested width and height values. 1346 * 1347 * @type int $0 The width in pixels. 1348 * @type int $1 The height in pixels. 1349 * } 1314 1350 * @param string $image_src The 'src' of the image. 1315 1351 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. … … 2377 2413 2378 2414 /** 2379 * Returns a filtered list of WP-supported audio formats.2415 * Returns a filtered list of supported audio formats. 2380 2416 * 2381 2417 * @since 3.6.0 … … 2625 2661 2626 2662 /** 2627 * Returns a filtered list of WP-supported video formats.2663 * Returns a filtered list of supported video formats. 2628 2664 * 2629 2665 * @since 3.6.0 … … 4012 4048 * @since 3.6.0 4013 4049 * 4014 * @param array $args Post query arguments.4015 * @param string $type Mime type of the desired media.4016 * @param mixed $post Post ID orobject.4050 * @param array $args Post query arguments. 4051 * @param string $type Mime type of the desired media. 4052 * @param WP_Post $post Post object. 4017 4053 */ 4018 4054 $args = apply_filters( 'get_attached_media_args', $args, $type, $post ); … … 4025 4061 * @since 3.6.0 4026 4062 * 4027 * @param array $children Associative array of media attached to the given post.4028 * @param string $type Mime type of the media desired.4029 * @param mixed $post Post ID orobject.4063 * @param array $children Associative array of media attached to the given post. 4064 * @param string $type Mime type of the media desired. 4065 * @param WP_Post $post Post object. 4030 4066 */ 4031 4067 return (array) apply_filters( 'get_attached_media', $children, $type, $post ); … … 4033 4069 4034 4070 /** 4035 * Check the content blob for anaudio, video, object, embed, or iframe tags.4071 * Check the content HTML for a audio, video, object, embed, or iframe tags. 4036 4072 * 4037 4073 * @since 3.6.0 … … 4289 4325 4290 4326 /** 4291 * Registers the personal data exporter for media 4327 * Registers the personal data exporter for media. 4292 4328 * 4293 4329 * @param array $exporters An array of personal data exporters.
Note: See TracChangeset
for help on using the changeset viewer.