Changeset 52249
- Timestamp:
- 11/25/2021 08:37:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r52145 r52249 8 8 9 9 /** 10 * Rename $_POST data from form names to DB post columns.10 * Renames $_POST data from form names to DB post columns. 11 11 * 12 12 * Manipulates $_POST directly. … … 14 14 * @since 2.6.0 15 15 * 16 * @param bool $update Are we updating a pre-existing post?16 * @param bool $update Whether the post already exists. 17 17 * @param array $post_data Array of post data. Defaults to the contents of $_POST. 18 18 * @return array|WP_Error Array of post data on success, WP_Error on failure. … … 205 205 206 206 /** 207 * Returns only allowed post data fields 207 * Returns only allowed post data fields. 208 208 * 209 209 * @since 5.0.1 … … 226 226 227 227 /** 228 * Update an existing post with values provided in $_POST.228 * Updates an existing post with values provided in $_POST. 229 229 * 230 230 * If post data is passed as an argument, it is treated as an array of data … … 453 453 454 454 /** 455 * Process the post data for the bulk editing of posts.455 * Processes the post data for the bulk editing of posts. 456 456 * 457 457 * Updates all bulk edited posts/pages, adding (but not removing) tags and … … 462 462 * @global wpdb $wpdb WordPress database abstraction object. 463 463 * 464 * @param array $post_data Optional , the array of post data to process if not provided will use $_POST superglobal.464 * @param array $post_data Optional. The array of post data to process if not provided will use $_POST superglobal. 465 465 * @return array 466 466 */ … … 662 662 663 663 /** 664 * Default post information to use when populating the "Write Post" form.664 * Returns default post information to use when populating the "Write Post" form. 665 665 * 666 666 * @since 2.0.0 … … 771 771 * 772 772 * @param string $title Post title. 773 * @param string $content Optional post content.774 * @param string $date Optional post date.775 * @param string $type Optional post type.776 * @param string $status Optional post status.773 * @param string $content Optional. Post content. 774 * @param string $date Optional. Post date. 775 * @param string $type Optional. Post type. 776 * @param string $status Optional. Post status. 777 777 * @return int Post ID if post exists, 0 otherwise. 778 778 */ … … 920 920 921 921 /** 922 * Add post meta data defined in $_POST superglobal for post with given ID.922 * Adds post meta data defined in $_POST superglobal for post with given ID. 923 923 * 924 924 * @since 1.2.0 … … 963 963 964 964 /** 965 * Delete post meta data by meta ID.965 * Deletes post meta data by meta ID. 966 966 * 967 967 * @since 1.2.0 … … 975 975 976 976 /** 977 * Geta list of previously defined keys.977 * Returns a list of previously defined keys. 978 978 * 979 979 * @since 1.2.0 … … 998 998 999 999 /** 1000 * Getpost meta data by meta ID.1000 * Returns post meta data by meta ID. 1001 1001 * 1002 1002 * @since 2.1.0 … … 1010 1010 1011 1011 /** 1012 * Getmeta data for the given post ID.1012 * Returns meta data for the given post ID. 1013 1013 * 1014 1014 * @since 1.2.0 … … 1045 1045 1046 1046 /** 1047 * Update post meta data by meta ID.1047 * Updates post meta data by meta ID. 1048 1048 * 1049 1049 * @since 1.2.0 1050 1050 * 1051 1051 * @param int $meta_id 1052 * @param string $meta_key Expect Slashed1053 * @param string $meta_value Expect Slashed 1052 * @param string $meta_key Expect Slashed. 1053 * @param string $meta_value Expect Slashed. 1054 1054 * @return bool 1055 1055 */ … … 1123 1123 1124 1124 /** 1125 * Get all the possible statuses for a post_type1125 * Returns all the possible statuses for a post_type. 1126 1126 * 1127 1127 * @since 2.5.0 … … 1137 1137 1138 1138 /** 1139 * Run the wp query to fetch the posts for listing on the edit posts page1139 * Runs the wp query to fetch the posts for listing on the edit posts page 1140 1140 * 1141 1141 * @since 2.5.0 … … 1238 1238 1239 1239 /** 1240 * Getthe query variables for the current attachments request.1240 * Returns the query variables for the current attachments request. 1241 1241 * 1242 1242 * @since 4.2.0 … … 1360 1360 1361 1361 /** 1362 * Get a sample permalink based off ofthe post name.1362 * Returns a sample permalink based on the post name. 1363 1363 * 1364 1364 * @since 2.5.0 … … 1442 1442 * @type string $1 The post name. 1443 1443 * } 1444 * @param int $post_id 1445 * @param string $title 1446 * @param string $name 1447 * @param WP_Post $post 1444 * @param int $post_id Post ID. 1445 * @param string $title Post title. 1446 * @param string $name Post name (slug). 1447 * @param WP_Post $post Post object. 1448 1448 */ 1449 1449 return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post ); … … 1610 1610 1611 1611 /** 1612 * Check to see ifthe post is currently being edited by another user.1612 * Determines whether the post is currently being edited by another user. 1613 1613 * 1614 1614 * @since 2.5.0 … … 1648 1648 1649 1649 /** 1650 * Mark the post as currently being edited by the current user1650 * Marks the post as currently being edited by the current user. 1651 1651 * 1652 1652 * @since 2.5.0 … … 1963 1963 1964 1964 /** 1965 * Save a post submitted with XHR1965 * Saves a post submitted with XHR. 1966 1966 * 1967 1967 * Intended for use with heartbeat and autosave.js … … 2014 2014 2015 2015 /** 2016 * Redirect to previous page.2016 * Redirects to previous page. 2017 2017 * 2018 2018 * @since 2.7.0 … … 2128 2128 2129 2129 /** 2130 * Return whether the post can be edited in the block editor.2130 * Returns whether the post can be edited in the block editor. 2131 2131 * 2132 2132 * @since 5.0.0 … … 2162 2162 2163 2163 /** 2164 * Return whether a post type is compatible with the block editor.2164 * Returns whether a post type is compatible with the block editor. 2165 2165 * 2166 2166 * The block editor depends on the REST API, and if the post type is not shown in the … … 2437 2437 2438 2438 /** 2439 * Add hidden input fields to the meta box save form.2439 * Adds hidden input fields to the meta box save form. 2440 2440 * 2441 2441 * Hook into this action to print `<input type="hidden" ... />` fields, which will be POSTed back to … … 2450 2450 2451 2451 /** 2452 * Disable block editor for wp_navigation type posts so they can be managed via the UI.2452 * Disables block editor for wp_navigation type posts so they can be managed via the UI. 2453 2453 * 2454 2454 * @since 5.9.0
Note: See TracChangeset
for help on using the changeset viewer.