mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Docs: Use more specific types in parameter descriptions in place of mixed.
See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47397 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2019,8 +2019,9 @@ function redirect_post( $post_id = '' ) {
|
||||
*
|
||||
* @since 5.1.0
|
||||
*
|
||||
* @param mixed $terms Raw term data from the 'tax_input' field.
|
||||
* @return array
|
||||
* @param string $taxonomy The taxonomy name.
|
||||
* @param array $terms Raw term data from the 'tax_input' field.
|
||||
* @return int[] Array of sanitized term IDs.
|
||||
*/
|
||||
function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) {
|
||||
return array_map( 'intval', $terms );
|
||||
@@ -2031,7 +2032,8 @@ function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) {
|
||||
*
|
||||
* @since 5.1.0
|
||||
*
|
||||
* @param mixed $terms Raw term data from the 'tax_input' field.
|
||||
* @param string $taxonomy The taxonomy name.
|
||||
* @param array|string $terms Raw term data from the 'tax_input' field.
|
||||
* @return array
|
||||
*/
|
||||
function taxonomy_meta_box_sanitize_cb_input( $taxonomy, $terms ) {
|
||||
|
||||
Reference in New Issue
Block a user