[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

/wp-admin/includes/ -> deprecated.php (summary)

Deprecated admin functions from past WordPress versions. You shouldn't use these functions and look for the alternatives instead. The functions will be removed in a later version.

File Size: 703 lines (17 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_User_Search:: (13 methods):
  WP_User_Search()
  prepare_query()
  query()
  prepare_vars_for_template_usage()
  do_paging()
  get_results()
  page_links()
  results_are_paged()
  is_search()
  get_others_unpublished_posts()
  get_others_drafts()
  get_others_pending()
  wp_dashboard_quick_press_output()

Defines 13 functions

  tinymce_include()
  documentation_link()
  wp_shrink_dimensions()
  dropdown_categories()
  dropdown_link_categories()
  wp_dropdown_cats()
  add_option_update_handler()
  remove_option_update_handler()
  codepress_get_lang()
  codepress_footer_js()
  use_codepress()
  get_author_user_ids()
  get_editable_authors()
  get_editable_user_ids()
  get_nonauthor_user_ids()

Class: WP_User_Search  - X-Ref

WordPress User Search class.

WP_User_Search($search_term = '', $page = '', $role = '')   X-Ref
PHP4 Constructor - Sets up the object properties.

param: string $search_term Search terms string.
param: int $page Optional. Page ID.
param: string $role Role name.
return: WP_User_Search

prepare_query()   X-Ref
{@internal Missing Short Description}}

{@internal Missing Long Description}}


query()   X-Ref
{@internal Missing Short Description}}

{@internal Missing Long Description}}


prepare_vars_for_template_usage()   X-Ref
{@internal Missing Short Description}}

{@internal Missing Long Description}}


do_paging()   X-Ref
{@internal Missing Short Description}}

{@internal Missing Long Description}}


get_results()   X-Ref
{@internal Missing Short Description}}

{@internal Missing Long Description}}

return: unknown

page_links()   X-Ref
Displaying paging text.


results_are_paged()   X-Ref
Whether paging is enabled.

return: bool

is_search()   X-Ref
Whether there are search terms.

return: bool

get_others_unpublished_posts($user_id, $type='any')   X-Ref
Retrieve editable posts from other users.

param: int $user_id User ID to not retrieve posts from.
param: string $type Optional, defaults to 'any'. Post type to retrieve, can be 'draft' or 'pending'.
return: array List of posts from others.

get_others_drafts($user_id)   X-Ref
Retrieve drafts from other users.

param: int $user_id User ID.
return: array List of drafts from other users.

get_others_pending($user_id)   X-Ref
Retrieve pending review posts from other users.

param: int $user_id User ID.
return: array List of posts with pending review post type from other users.

wp_dashboard_quick_press_output()   X-Ref
Output the QuickPress dashboard widget.


Functions
Functions that are not part of a class:

tinymce_include()   X-Ref


documentation_link()   X-Ref
Unused Admin function.


wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 )   X-Ref
Calculates the new dimentions for a downsampled image.

param: int $width Current width of the image
param: int $height Current height of the image
param: int $wmax Maximum wanted width
param: int $hmax Maximum wanted height
return: mixed Array(height,width) of shrunk dimensions.

dropdown_categories( $default = 0, $parent = 0, $popular_ids = array()   X-Ref
{@internal Missing Short Description}}

param: unknown_type $default
param: unknown_type $parent
param: unknown_type $popular_ids

dropdown_link_categories( $default = 0 )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $default

wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $currentcat
param: unknown_type $currentparent
param: unknown_type $parent
param: unknown_type $level
param: unknown_type $categories
return: unknown

add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' )   X-Ref
Register a setting and its sanitization callback

param: string $option_group A settings group name.  Should correspond to a whitelisted option key name.
param: string $option_name The name of an option to sanitize and save.
param: unknown_type $sanitize_callback A callback function that sanitizes the option's value.
return: unknown

remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' )   X-Ref
Unregister a setting

param: unknown_type $option_group
param: unknown_type $option_name
param: unknown_type $sanitize_callback
return: unknown

codepress_get_lang( $filename )   X-Ref
Determines the language to use for CodePress syntax highlighting.

param: string $filename

codepress_footer_js()   X-Ref
Adds Javascript required to make CodePress work on the theme/plugin editors.


use_codepress()   X-Ref
Determine whether to use CodePress.


get_author_user_ids()   X-Ref

return: array List of user IDs.

get_editable_authors( $user_id )   X-Ref

param: int $user_id User ID.
return: array|bool List of editable authors. False if no editable users.

get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' )   X-Ref

param: int $user_id User ID.
param: bool $exclude_zeros Optional, default is true. Whether to exclude zeros.
return: unknown

get_nonauthor_user_ids()   X-Ref




Generated: Wed Jun 1 08:30:02 2011 Cross-referenced by PHPXref 0.7
Provided by Yoast and awesome WordPress Hosting