[ Index ]

WordPress Cross Reference

title

Body

[close]

/wp-admin/includes/ -> class-wp-upgrader.php (summary)

A File upgrader class for WordPress. This set of classes are designed to be used to upgrade/install a local set of files on the filesystem via the Filesystem Abstraction classes.

File Size: 2463 lines (87 kb)
Included or required: 10 times
Referenced: 0 times
Includes or requires: 2 files
 wp-admin/includes/class-wp-upgrader-skins.php
 wp-admin/includes/update-core.php

Defines 7 classes

WP_Upgrader:: (9 methods):
  __construct()
  init()
  generic_strings()
  fs_connect()
  download_package()
  unpack_package()
  install_package()
  run()
  maintenance_mode()

Plugin_Upgrader:: (9 methods):
  upgrade_strings()
  install_strings()
  install()
  upgrade()
  bulk_upgrade()
  check_package()
  plugin_info()
  deactivate_plugin_before_upgrade()
  delete_old_plugin()

Theme_Upgrader:: (12 methods):
  upgrade_strings()
  install_strings()
  check_parent_theme_filter()
  hide_activate_preview_actions()
  install()
  upgrade()
  bulk_upgrade()
  check_package()
  current_before()
  current_after()
  delete_old_theme()
  theme_info()

Language_Pack_Upgrader:: (6 methods):
  async_upgrade()
  upgrade_strings()
  upgrade()
  bulk_upgrade()
  check_package()
  get_name_for_update()

Core_Upgrader:: (4 methods):
  upgrade_strings()
  upgrade()
  should_update_to_version()
  check_files()

File_Upload_Upgrader:: (2 methods):
  __construct()
  cleanup()

WP_Automatic_Updater:: (9 methods):
  is_disabled()
  is_vcs_checkout()
  should_update()
  send_core_update_notification_email()
  update()
  run()
  after_core_update()
  send_email()
  send_debug_email()


Class: WP_Upgrader  - X-Ref

WordPress Upgrader class for Upgrading/Installing a local set of files via the Filesystem Abstraction classes from a Zip file.

__construct($skin = null)   X-Ref
No description

init()   X-Ref
No description

generic_strings()   X-Ref
No description

fs_connect( $directories = array()   X-Ref
No description

download_package($package)   X-Ref
No description

unpack_package($package, $delete_package = true)   X-Ref
No description

install_package( $args = array()   X-Ref
No description

run($options)   X-Ref
No description

maintenance_mode($enable = false)   X-Ref
No description

Class: Plugin_Upgrader  - X-Ref

Plugin Upgrader class for WordPress Plugins, It is designed to upgrade/install plugins from a local zip, remote zip URL, or uploaded zip file.

upgrade_strings()   X-Ref
No description

install_strings()   X-Ref
No description

install( $package, $args = array()   X-Ref
No description

upgrade( $plugin, $args = array()   X-Ref
No description

bulk_upgrade( $plugins, $args = array()   X-Ref
No description

check_package($source)   X-Ref
No description

plugin_info()   X-Ref
No description

deactivate_plugin_before_upgrade($return, $plugin)   X-Ref
No description

delete_old_plugin($removed, $local_destination, $remote_destination, $plugin)   X-Ref
No description

Class: Theme_Upgrader  - X-Ref

Theme Upgrader class for WordPress Themes, It is designed to upgrade/install themes from a local zip, remote zip URL, or uploaded zip file.

upgrade_strings()   X-Ref
No description

install_strings()   X-Ref
No description

check_parent_theme_filter($install_result, $hook_extra, $child_result)   X-Ref
No description

hide_activate_preview_actions($actions)   X-Ref
No description

install( $package, $args = array()   X-Ref
No description

upgrade( $theme, $args = array()   X-Ref
No description

bulk_upgrade( $themes, $args = array()   X-Ref
No description

check_package($source)   X-Ref
No description

current_before($return, $theme)   X-Ref
No description

current_after($return, $theme)   X-Ref
No description

delete_old_theme( $removed, $local_destination, $remote_destination, $theme )   X-Ref
No description

theme_info($theme = null)   X-Ref
No description

Class: Language_Pack_Upgrader  - X-Ref

Language pack upgrader, for updating translations of plugins, themes, and core.

async_upgrade( $upgrader = false )   X-Ref
No description

upgrade_strings()   X-Ref
No description

upgrade( $update = false, $args = array()   X-Ref
No description

bulk_upgrade( $language_updates = array()   X-Ref
No description

check_package( $source, $remote_source )   X-Ref
No description

get_name_for_update( $update )   X-Ref
No description

Class: Core_Upgrader  - X-Ref

Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combination with the wp-admin/includes/update-core.php file

upgrade_strings()   X-Ref
No description

upgrade( $current, $args = array()   X-Ref
No description

should_update_to_version( $offered_ver )   X-Ref
No description

check_files()   X-Ref
No description

Class: File_Upload_Upgrader  - X-Ref

Upgrade Skin helper for File uploads. This class handles the upload process and passes it as if it's a local file to the Upgrade/Installer functions.

__construct($form, $urlholder)   X-Ref
No description

cleanup()   X-Ref
No description

Class: WP_Automatic_Updater  - X-Ref

The WordPress automatic background updater.

is_disabled()   X-Ref
Whether the entire automatic updater is disabled.


is_vcs_checkout( $context )   X-Ref
Check for version control checkouts.

Checks for Subversion, Git, Mercurial, and Bazaar. It recursively looks up the
filesystem to the top of the drive, erring on the side of detecting a VCS
checkout somewhere.

ABSPATH is always checked in addition to whatever $context is (which may be the
wp-content directory, for example). The underlying assumption is that if you are
using version control *anywhere*, then you should be making decisions for
how things get updated.

param: string $context The filesystem path to check, in addition to ABSPATH.

should_update( $type, $item, $context )   X-Ref
Tests to see if we can and should update a specific item.

param: string $type    The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
param: object $item    The update offer.
param: string $context The filesystem context (a path) against which filesystem access and status

send_core_update_notification_email( $item )   X-Ref
Notifies an administrator of a core update.

param: object $item The update offer.

update( $type, $item )   X-Ref
Update an item, if appropriate.

param: string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
param: object $item The update offer.

run()   X-Ref
Kicks off the background update process, looping through all pending updates.


after_core_update( $update_result )   X-Ref
If we tried to perform a core update, check if we should send an email,
and if we need to avoid processing future updates.

param: object $update_result The result of the core update. Includes the update offer and result.

send_email( $type, $core_update, $result = null )   X-Ref
Sends an email upon the completion or failure of a background core update.

param: string $type        The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
param: object $core_update The update offer that was attempted.
param: mixed  $result      Optional. The result for the core update. Can be WP_Error.

send_debug_email()   X-Ref
Prepares and sends an email of a full log of background update results, useful for debugging and geekery.




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