[ Index ]

WordPress Cross Reference

title

Body

[close]

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

Misc WordPress Administration API.

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

Defines 24 functions

  got_mod_rewrite()
  got_url_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()
  iis7_rewrite_rule_exists()
  iis7_delete_rewrite_rule()
  iis7_add_rewrite_rule()
  saveDomDocument()
  admin_color_scheme_picker()
  wp_color_scheme_settings()
  _ipad_meta()
  wp_check_locked_posts()
  wp_refresh_post_lock()
  wp_refresh_post_nonces()
  wp_heartbeat_set_suspension()

Functions
Functions that are not part of a class:

got_mod_rewrite()   X-Ref
Returns whether the server is running Apache with the mod_rewrite module loaded.

return: bool

got_url_rewrite()   X-Ref
Returns whether the server supports URL rewriting.

Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.

return: bool Whether the server supports URL rewriting.

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, home or page_on_front changed, flush rewrite rules.

param: string $old_value
param: string $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.


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

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


wp_color_scheme_settings()   X-Ref
No description

_ipad_meta()   X-Ref
No description

wp_check_locked_posts( $response, $data, $screen_id )   X-Ref
Check lock status for posts displayed on the Posts screen


wp_refresh_post_lock( $response, $data, $screen_id )   X-Ref
Check lock status on the New/Edit Post screen and refresh the lock


wp_refresh_post_nonces( $response, $data, $screen_id )   X-Ref
Check nonce expiration on the New/Edit Post screen and refresh if needed


wp_heartbeat_set_suspension( $settings )   X-Ref
Disable suspension of Heartbeat on the Add/Edit Post screens.

param: array $settings An array of Heartbeat settings.
return: array Filtered Heartbeat settings.



Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu