Fill in the @param types for the args for functions missing them in wp-admin/includes/post.php.

See #30224.

Built from https://develop.svn.wordpress.org/trunk@30198


git-svn-id: http://core.svn.wordpress.org/trunk@30198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-11-03 05:55:22 +00:00
parent d9d825db72
commit 64167f0845
2 changed files with 17 additions and 17 deletions

View File

@ -724,8 +724,8 @@ function write_post() {
* *
* @since 1.2.0 * @since 1.2.0
* *
* @param unknown_type $post_ID * @param int $post_ID
* @return unknown * @return int|bool
*/ */
function add_meta( $post_ID ) { function add_meta( $post_ID ) {
$post_ID = (int) $post_ID; $post_ID = (int) $post_ID;
@ -763,8 +763,8 @@ function add_meta( $post_ID ) {
* *
* @since 1.2.0 * @since 1.2.0
* *
* @param unknown_type $mid * @param int $mid
* @return unknown * @return bool
*/ */
function delete_meta( $mid ) { function delete_meta( $mid ) {
return delete_metadata_by_mid( 'post' , $mid ); return delete_metadata_by_mid( 'post' , $mid );
@ -794,8 +794,8 @@ function get_meta_keys() {
* *
* @since 2.1.0 * @since 2.1.0
* *
* @param unknown_type $mid * @param int $mid
* @return unknown * @return object|bool
*/ */
function get_post_meta_by_id( $mid ) { function get_post_meta_by_id( $mid ) {
return get_metadata_by_mid( 'post', $mid ); return get_metadata_by_mid( 'post', $mid );
@ -808,8 +808,8 @@ function get_post_meta_by_id( $mid ) {
* *
* @since 1.2.0 * @since 1.2.0
* *
* @param unknown_type $postid * @param int $postid
* @return unknown * @return mixed
*/ */
function has_meta( $postid ) { function has_meta( $postid ) {
global $wpdb; global $wpdb;
@ -824,10 +824,10 @@ function has_meta( $postid ) {
* *
* @since 1.2.0 * @since 1.2.0
* *
* @param unknown_type $meta_id * @param int $meta_id
* @param unknown_type $meta_key Expect Slashed * @param string $meta_key Expect Slashed
* @param unknown_type $meta_value Expect Slashed * @param string $meta_value Expect Slashed
* @return unknown * @return bool
*/ */
function update_meta( $meta_id, $meta_key, $meta_value ) { function update_meta( $meta_id, $meta_key, $meta_value ) {
$meta_key = wp_unslash( $meta_key ); $meta_key = wp_unslash( $meta_key );
@ -997,8 +997,8 @@ function wp_edit_posts_query( $q = false ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @param unknown_type $type * @param string $type
* @return unknown * @return mixed
*/ */
function get_available_post_mime_types($type = 'attachment') { function get_available_post_mime_types($type = 'attachment') {
global $wpdb; global $wpdb;
@ -1071,8 +1071,8 @@ function wp_edit_attachments_query( $q = false ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @param unknown_type $id * @param string $id
* @param unknown_type $page * @param string $page
* @return unknown * @return unknown
*/ */
function postbox_classes( $id, $page ) { function postbox_classes( $id, $page ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.1-alpha-30197'; $wp_version = '4.1-alpha-30198';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.