Méthode |
Description |
|
__construct ( ) |
|
|
clone_wp_tables ( $alt_heap ) |
Clones all WordPress original tables to an alternative heap namespace |
|
create_alt_plugins_dir ( $alt_heap = "" ) |
Create a new plugins directory with symlinks to live plugins |
|
delete_alt_plugins_dirs ( $alt_heap = "" ) |
Deletes the temp plugins dir for an alternative heap |
|
delete_tmp_wp_tables ( $alt_heap = "" ) |
Delete temp tables from an alternative heap namespace |
|
fix_plugins_url ( $url, $path = "", $plugin = "" ) |
plugins_url() fix |
|
get_alt_plugins_dirs ( $alt_heap = "" ) |
Returns existing alt plugins dir(s) as an array. If $alt_heap is defined, we return only that alt dir |
|
get_alt_prefix ( $alt_heap = "" ) |
Returns the table prefix for an alternative heap |
|
get_alt_suffix ( $alt_heap = "" ) |
Returns the plugins dir suffix for an alternative heap |
|
get_tmp_wp_tables ( $alt_heap = "" ) |
Gets all our alternative WordPress tables |
|
get_wp_tables ( ) |
Gets all the live WordPress prefixed tables (not our alternative ones) |
|
init ( ) |
|
|
maybe_create_alt_heap ( ) |
if $_GET[alt_heap] is defined and (@TODO: user has permissions), create that heap and return to it |
|
render_alternative_heap_indicator ( ) |
Display a notice at the bottom of the window when in an alternative heap |
|