Fill in the `@param` types for the args for functions missing them in `wp-admin/includes/taxonomy.php`.
See #30224. Built from https://develop.svn.wordpress.org/trunk@30197 git-svn-id: http://core.svn.wordpress.org/trunk@30197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
06f49a43a1
commit
d9d825db72
|
@ -15,8 +15,8 @@
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $cat_name
|
* @param int|string $cat_name
|
||||||
* @return unknown
|
* @return int
|
||||||
*/
|
*/
|
||||||
function category_exists($cat_name, $parent = 0) {
|
function category_exists($cat_name, $parent = 0) {
|
||||||
$id = term_exists($cat_name, 'category', $parent);
|
$id = term_exists($cat_name, 'category', $parent);
|
||||||
|
@ -30,8 +30,8 @@ function category_exists($cat_name, $parent = 0) {
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $id
|
* @param int $id
|
||||||
* @return unknown
|
* @return object
|
||||||
*/
|
*/
|
||||||
function get_category_to_edit( $id ) {
|
function get_category_to_edit( $id ) {
|
||||||
$category = get_term( $id, 'category', OBJECT, 'edit' );
|
$category = get_term( $id, 'category', OBJECT, 'edit' );
|
||||||
|
@ -44,9 +44,9 @@ function get_category_to_edit( $id ) {
|
||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $cat_name
|
* @param int|string $cat_name
|
||||||
* @param unknown_type $parent
|
* @param int $parent
|
||||||
* @return unknown
|
* @return int|WP_Error
|
||||||
*/
|
*/
|
||||||
function wp_create_category( $cat_name, $parent = 0 ) {
|
function wp_create_category( $cat_name, $parent = 0 ) {
|
||||||
if ( $id = category_exists($cat_name, $parent) )
|
if ( $id = category_exists($cat_name, $parent) )
|
||||||
|
@ -190,8 +190,8 @@ function wp_update_category($catarr) {
|
||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $tag_name
|
* @param int|string $tag_name
|
||||||
* @return unknown
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
function tag_exists($tag_name) {
|
function tag_exists($tag_name) {
|
||||||
return term_exists($tag_name, 'post_tag');
|
return term_exists($tag_name, 'post_tag');
|
||||||
|
@ -202,8 +202,8 @@ function tag_exists($tag_name) {
|
||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $tag_name
|
* @param int|string $tag_name
|
||||||
* @return unknown
|
* @return array|WP_Error
|
||||||
*/
|
*/
|
||||||
function wp_create_tag($tag_name) {
|
function wp_create_tag($tag_name) {
|
||||||
return wp_create_term( $tag_name, 'post_tag');
|
return wp_create_term( $tag_name, 'post_tag');
|
||||||
|
@ -214,8 +214,8 @@ function wp_create_tag($tag_name) {
|
||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $post_id
|
* @param int $post_id
|
||||||
* @return unknown
|
* @return string|bool|WP_Error
|
||||||
*/
|
*/
|
||||||
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
|
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
|
||||||
return get_terms_to_edit( $post_id, $taxonomy);
|
return get_terms_to_edit( $post_id, $taxonomy);
|
||||||
|
@ -226,8 +226,8 @@ function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $post_id
|
* @param int $post_id
|
||||||
* @return unknown
|
* @return string|bool|WP_Error
|
||||||
*/
|
*/
|
||||||
function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
|
function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
|
||||||
$post_id = (int) $post_id;
|
$post_id = (int) $post_id;
|
||||||
|
@ -273,8 +273,8 @@ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
* @param unknown_type $tag_name
|
* @param int|string $tag_name
|
||||||
* @return unknown
|
* @return array|WP_Error
|
||||||
*/
|
*/
|
||||||
function wp_create_term($tag_name, $taxonomy = 'post_tag') {
|
function wp_create_term($tag_name, $taxonomy = 'post_tag') {
|
||||||
if ( $id = term_exists($tag_name, $taxonomy) )
|
if ( $id = term_exists($tag_name, $taxonomy) )
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30196';
|
$wp_version = '4.1-alpha-30197';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in New Issue