[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

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

Misc WordPress Administration API.

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

Defines 19 functions

  got_mod_rewrite()
  extract_from_markers()
  insert_with_markers()
  save_mod_rewrite_rules()
  iis7_save_url_rewrite_rules()
  update_recently_edited()
  update_home_siteurl()
  url_shorten()
  wp_reset_vars()
  show_message()
  wp_doc_link_parse()
  set_screen_options()
  wp_menu_unfold()
  iis7_rewrite_rule_exists()
  iis7_delete_rewrite_rule()
  iis7_add_rewrite_rule()
  saveDomDocument()
  win_is_writable()
  admin_color_scheme_picker()

Functions
Functions that are not part of a class:

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

return: unknown

extract_from_markers( $filename, $marker )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $filename
param: unknown_type $marker
return: array An array of strings from a file (.htaccess ) from between BEGIN and END markers.

insert_with_markers( $filename, $marker, $insertion )   X-Ref
{@internal Missing Short Description}}

Inserts an array of strings into a file (.htaccess ), placing it between
BEGIN and END markers. Replaces existing marked info. Retains surrounding
data. Creates file if none exists.

param: unknown_type $filename
param: unknown_type $marker
param: unknown_type $insertion
return: bool True on write success, false on failure.

save_mod_rewrite_rules()   X-Ref
Updates the htaccess file with the current rules if it is writable.

Always writes to the file if it exists and is writable to ensure that we
blank out old rules.


iis7_save_url_rewrite_rules()   X-Ref
Updates the IIS web.config file with the current rules if it is writable.
If the permalinks do not require rewrite rules then the rules are deleted from the web.config file.

return: bool True if web.config was updated successfully

update_recently_edited( $file )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $file

update_home_siteurl( $old_value, $value )   X-Ref
If siteurl or home changed, flush rewrite rules.

param: unknown_type $old_value
param: unknown_type $value

url_shorten( $url )   X-Ref
Shorten an URL, to be used as link text

param: string $url
return: string

wp_reset_vars( $vars )   X-Ref
Resets global variables based on $_GET and $_POST

This function resets global variables based on the names passed
in the $vars array to the value of $_POST[$var] or $_GET[$var] or ''
if neither is defined.

param: array $vars An array of globals to reset.

show_message($message)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $message

wp_doc_link_parse( $content )   X-Ref
No description

set_screen_options()   X-Ref
Saves option for number of rows when listing posts, pages, comments, etc.


wp_menu_unfold()   X-Ref
No description

iis7_rewrite_rule_exists($filename)   X-Ref
Check if rewrite rule for WordPress already exists in the IIS 7 configuration file

param: string $filename The file path to the configuration file
return: bool

iis7_delete_rewrite_rule($filename)   X-Ref
Delete WordPress rewrite rule from web.config file if it exists there

param: string $filename Name of the configuration file
return: bool

iis7_add_rewrite_rule($filename, $rewrite_rule)   X-Ref
Add WordPress rewrite rule to the IIS 7 configuration file.

param: string $filename The file path to the configuration file
param: string $rewrite_rule The XML fragment with URL Rewrite rule
return: bool

saveDomDocument($doc, $filename)   X-Ref
Saves the XML document into a file

param: DOMDocument $doc
param: string $filename

win_is_writable( $path )   X-Ref
Workaround for Windows bug in is_writable() function

param: string $path
return: bool

admin_color_scheme_picker()   X-Ref
Display the default admin color scheme picker (Used in user-edit.php)




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