73 * |
73 * |
74 * @since 0.71 |
74 * @since 0.71 |
75 * @deprecated 2.6.0 Use wp_category_checklist() |
75 * @deprecated 2.6.0 Use wp_category_checklist() |
76 * @see wp_category_checklist() |
76 * @see wp_category_checklist() |
77 * |
77 * |
|
78 * @global int $post_ID |
|
79 * |
78 * @param int $default Unused. |
80 * @param int $default Unused. |
79 * @param int $parent Unused. |
81 * @param int $parent Unused. |
80 * @param array $popular_ids Unused. |
82 * @param array $popular_ids Unused. |
81 */ |
83 */ |
82 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { |
84 function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) { |
89 * Legacy function used to generate a link categories checklist control. |
91 * Legacy function used to generate a link categories checklist control. |
90 * |
92 * |
91 * @since 2.1.0 |
93 * @since 2.1.0 |
92 * @deprecated 2.6.0 Use wp_link_category_checklist() |
94 * @deprecated 2.6.0 Use wp_link_category_checklist() |
93 * @see wp_link_category_checklist() |
95 * @see wp_link_category_checklist() |
|
96 * |
|
97 * @global int $link_id |
94 * |
98 * |
95 * @param int $default Unused. |
99 * @param int $default Unused. |
96 */ |
100 */ |
97 function dropdown_link_categories( $default = 0 ) { |
101 function dropdown_link_categories( $default = 0 ) { |
98 _deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' ); |
102 _deprecated_function( __FUNCTION__, '2.6.0', 'wp_link_category_checklist()' ); |
126 * @param int $currentcat Optional. ID of the current category. Default 0. |
130 * @param int $currentcat Optional. ID of the current category. Default 0. |
127 * @param int $currentparent Optional. Current parent category ID. Default 0. |
131 * @param int $currentparent Optional. Current parent category ID. Default 0. |
128 * @param int $parent Optional. Parent ID to retrieve categories for. Default 0. |
132 * @param int $parent Optional. Parent ID to retrieve categories for. Default 0. |
129 * @param int $level Optional. Number of levels deep to display. Default 0. |
133 * @param int $level Optional. Number of levels deep to display. Default 0. |
130 * @param array $categories Optional. Categories to include in the control. Default 0. |
134 * @param array $categories Optional. Categories to include in the control. Default 0. |
131 * @return bool|null False if no categories were found. |
135 * @return void|false Void on success, false if no categories were found. |
132 */ |
136 */ |
133 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { |
137 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { |
134 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' ); |
138 _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' ); |
135 if (!$categories ) |
139 if (!$categories ) |
136 $categories = get_categories( array('hide_empty' => 0) ); |
140 $categories = get_categories( array('hide_empty' => 0) ); |
245 * @deprecated 3.1.0 Use get_users() |
249 * @deprecated 3.1.0 Use get_users() |
246 * |
250 * |
247 * @global wpdb $wpdb WordPress database abstraction object. |
251 * @global wpdb $wpdb WordPress database abstraction object. |
248 * |
252 * |
249 * @param int $user_id User ID. |
253 * @param int $user_id User ID. |
250 * @return array|bool List of editable authors. False if no editable users. |
254 * @return array|false List of editable authors. False if no editable users. |
251 */ |
255 */ |
252 function get_editable_authors( $user_id ) { |
256 function get_editable_authors( $user_id ) { |
253 _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); |
257 _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); |
254 |
258 |
255 global $wpdb; |
259 global $wpdb; |
491 function __construct( $search_term = '', $page = '', $role = '' ) { |
495 function __construct( $search_term = '', $page = '', $role = '' ) { |
492 _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' ); |
496 _deprecated_function( __FUNCTION__, '3.1.0', 'WP_User_Query' ); |
493 |
497 |
494 $this->search_term = wp_unslash( $search_term ); |
498 $this->search_term = wp_unslash( $search_term ); |
495 $this->raw_page = ( '' == $page ) ? false : (int) $page; |
499 $this->raw_page = ( '' == $page ) ? false : (int) $page; |
496 $this->page = (int) ( '' == $page ) ? 1 : $page; |
500 $this->page = ( '' == $page ) ? 1 : (int) $page; |
497 $this->role = $role; |
501 $this->role = $role; |
498 |
502 |
499 $this->prepare_query(); |
503 $this->prepare_query(); |
500 $this->query(); |
504 $this->query(); |
501 $this->do_paging(); |
505 $this->do_paging(); |
979 * |
983 * |
980 * @since 2.7.0 |
984 * @since 2.7.0 |
981 * @deprecated 3.3.0 Use WP_Screen::add_help_tab() |
985 * @deprecated 3.3.0 Use WP_Screen::add_help_tab() |
982 * @see WP_Screen::add_help_tab() |
986 * @see WP_Screen::add_help_tab() |
983 * |
987 * |
984 * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions. |
988 * @param string $screen The handle for the screen to add help to. This is usually |
|
989 * the hook name returned by the `add_*_page()` functions. |
985 * @param string $help The content of an 'Overview' help tab. |
990 * @param string $help The content of an 'Overview' help tab. |
986 */ |
991 */ |
987 function add_contextual_help( $screen, $help ) { |
992 function add_contextual_help( $screen, $help ) { |
988 _deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' ); |
993 _deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' ); |
989 |
994 |
1083 * @since 2.0.0 |
1088 * @since 2.0.0 |
1084 * @deprecated 3.5.0 Use get_post() |
1089 * @deprecated 3.5.0 Use get_post() |
1085 * @see get_post() |
1090 * @see get_post() |
1086 * |
1091 * |
1087 * @param int $id |
1092 * @param int $id |
1088 * @return object |
1093 * @return WP_Post |
1089 */ |
1094 */ |
1090 function get_post_to_edit( $id ) { |
1095 function get_post_to_edit( $id ) { |
1091 _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); |
1096 _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); |
1092 |
1097 |
1093 return get_post( $id, OBJECT, 'edit' ); |
1098 return get_post( $id, OBJECT, 'edit' ); |