diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/includes/deprecated.php --- a/wp/wp-admin/includes/deprecated.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/includes/deprecated.php Wed Sep 21 18:19:35 2022 +0200 @@ -75,6 +75,8 @@ * @deprecated 2.6.0 Use wp_category_checklist() * @see wp_category_checklist() * + * @global int $post_ID + * * @param int $default Unused. * @param int $parent Unused. * @param array $popular_ids Unused. @@ -92,6 +94,8 @@ * @deprecated 2.6.0 Use wp_link_category_checklist() * @see wp_link_category_checklist() * + * @global int $link_id + * * @param int $default Unused. */ function dropdown_link_categories( $default = 0 ) { @@ -128,7 +132,7 @@ * @param int $parent Optional. Parent ID to retrieve categories for. Default 0. * @param int $level Optional. Number of levels deep to display. Default 0. * @param array $categories Optional. Categories to include in the control. Default 0. - * @return bool|null False if no categories were found. + * @return void|false Void on success, false if no categories were found. */ function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' ); @@ -247,7 +251,7 @@ * @global wpdb $wpdb WordPress database abstraction object. * * @param int $user_id User ID. - * @return array|bool List of editable authors. False if no editable users. + * @return array|false List of editable authors. False if no editable users. */ function get_editable_authors( $user_id ) { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); @@ -493,7 +497,7 @@ $this->search_term = wp_unslash( $search_term ); $this->raw_page = ( '' == $page ) ? false : (int) $page; - $this->page = (int) ( '' == $page ) ? 1 : $page; + $this->page = ( '' == $page ) ? 1 : (int) $page; $this->role = $role; $this->prepare_query(); @@ -981,7 +985,8 @@ * @deprecated 3.3.0 Use WP_Screen::add_help_tab() * @see WP_Screen::add_help_tab() * - * @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 $screen The handle for the screen to add help to. This is usually + * the hook name returned by the `add_*_page()` functions. * @param string $help The content of an 'Overview' help tab. */ function add_contextual_help( $screen, $help ) { @@ -1085,7 +1090,7 @@ * @see get_post() * * @param int $id - * @return object + * @return WP_Post */ function get_post_to_edit( $id ) { _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );