mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-07 08:07:16 +00:00
Docs: Various formatting improvements to inline docblocks.
See #49572 git-svn-id: https://develop.svn.wordpress.org/trunk@48574 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1299,8 +1299,8 @@ class WP_Debug_Data {
|
||||
*
|
||||
* @since 5.2.0
|
||||
*
|
||||
* @param array $info_array Information gathered from the `WP_Debug_Data::debug_data` function.
|
||||
* @param string $type The data type to return, either 'info' or 'debug'.
|
||||
* @param array $info_array Information gathered from the `WP_Debug_Data::debug_data` function.
|
||||
* @param string $type The data type to return, either 'info' or 'debug'.
|
||||
* @return string The formatted data.
|
||||
*/
|
||||
public static function format( $info_array, $type ) {
|
||||
|
||||
@@ -467,7 +467,7 @@ final class WP_Screen {
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @param WP_Screen $screen A screen object.
|
||||
* @param string $help Help text.
|
||||
* @param string $help Help text.
|
||||
*/
|
||||
public static function add_old_compat_help( $screen, $help ) {
|
||||
self::$_old_compat_help[ $screen->id ] = $help;
|
||||
@@ -496,8 +496,8 @@ final class WP_Screen {
|
||||
*
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @param string $option Option ID
|
||||
* @param mixed $args Option-dependent arguments.
|
||||
* @param string $option Option ID.
|
||||
* @param mixed $args Option-dependent arguments.
|
||||
*/
|
||||
public function add_option( $option, $args = array() ) {
|
||||
$this->_options[ $option ] = $args;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Crop an Image to a given size.
|
||||
* Crops an image to a given size.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
|
||||
@@ -70,7 +70,7 @@ function _get_list_table( $class, $args = array() ) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the
|
||||
* @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the
|
||||
* add_*_page() functions.
|
||||
* @param string[] $columns An array of columns with column IDs as the keys and translated column names as the values.
|
||||
*/
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
*
|
||||
* @global string $action
|
||||
*
|
||||
* @param WP_Post $post Current post object.
|
||||
* @param array $args {
|
||||
* @param WP_Post $post Current post object.
|
||||
* @param array $args {
|
||||
* Array of arguments for building the post submit meta box.
|
||||
*
|
||||
* @type string $id Meta box 'id' attribute.
|
||||
@@ -1185,7 +1185,7 @@ function link_target_meta_box( $link ) {
|
||||
*
|
||||
* @param string $class
|
||||
* @param string $value
|
||||
* @param mixed $deprecated Never used.
|
||||
* @param mixed $deprecated Never used.
|
||||
*/
|
||||
function xfn_check( $class, $value = '', $deprecated = '' ) {
|
||||
global $link;
|
||||
|
||||
@@ -1190,7 +1190,7 @@ function wp_refresh_post_nonces( $response, $data, $screen_id ) {
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param array $response The Heartbeat response.
|
||||
* @param array $response The Heartbeat response.
|
||||
* @return array The Heartbeat response.
|
||||
*/
|
||||
function wp_refresh_heartbeat_nonces( $response ) {
|
||||
|
||||
@@ -858,7 +858,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
||||
* @param string $redirect Redirect to page after successful activation.
|
||||
* @param bool $network_wide Whether to enable the plugin for all sites in the network.
|
||||
* Default false.
|
||||
* @param bool $silent Prevent calling activation hooks. Default false.
|
||||
* @param bool $silent Prevent calling activation hooks. Default false.
|
||||
* @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation.
|
||||
*/
|
||||
function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @param bool $update Are we updating a pre-existing post?
|
||||
* @param bool $update Are we updating a pre-existing post?
|
||||
* @param array $post_data Array of post data. Defaults to the contents of $_POST.
|
||||
* @return array|WP_Error Array of post data on success, WP_Error on failure.
|
||||
*/
|
||||
@@ -1505,13 +1505,13 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Output HTML for the post thumbnail meta-box.
|
||||
* Returns HTML for the post thumbnail meta box.
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param int $thumbnail_id ID of the attachment used for thumbnail
|
||||
* @param int|WP_Post $post Optional. The post ID or object associated with the thumbnail, defaults to global $post.
|
||||
* @return string html
|
||||
* @param int $thumbnail_id ID of the attachment used for thumbnail
|
||||
* @param int|WP_Post $post Optional. The post ID or object associated with the thumbnail, defaults to global $post.
|
||||
* @return string The post thumbnail HTML.
|
||||
*/
|
||||
function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) {
|
||||
$_wp_additional_image_sizes = wp_get_additional_image_sizes();
|
||||
|
||||
@@ -218,7 +218,7 @@ function _wp_personal_data_cleanup_requests() {
|
||||
* @since 4.9.6
|
||||
* @since 5.4.0 Added the `$group_id` and `$groups_count` parameters.
|
||||
*
|
||||
* @param array $group_data {
|
||||
* @param array $group_data {
|
||||
* The group data to render.
|
||||
*
|
||||
* @type string $group_label The user-facing heading for the group, e.g. 'Comments'.
|
||||
|
||||
@@ -197,7 +197,7 @@ function get_hidden_meta_boxes( $screen ) {
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param string $option An option name.
|
||||
* @param mixed $args Option-dependent arguments.
|
||||
* @param mixed $args Option-dependent arguments.
|
||||
*/
|
||||
function add_screen_option( $option, $args = array() ) {
|
||||
$current_screen = get_current_screen();
|
||||
|
||||
@@ -1795,8 +1795,8 @@ function add_settings_error( $setting, $code, $message, $type = 'error' ) {
|
||||
*
|
||||
* @global array $wp_settings_errors Storage array of errors registered during this pageload
|
||||
*
|
||||
* @param string $setting Optional slug title of a specific setting whose errors you want.
|
||||
* @param boolean $sanitize Whether to re-sanitize the setting value before returning errors.
|
||||
* @param string $setting Optional. Slug title of a specific setting whose errors you want.
|
||||
* @param bool $sanitize Optional. Whether to re-sanitize the setting value before returning errors.
|
||||
* @return array Array of settings errors.
|
||||
*/
|
||||
function get_settings_errors( $setting = '', $sanitize = false ) {
|
||||
|
||||
Reference in New Issue
Block a user