This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* For site admins: Print some debug infos into backend footer. | |
* - Time | |
* - DB Queries | |
* - Memory Usage | |
* - Cache Hts/Misses | |
* - Active Plugins | |
* | |
* @param string $text Existing footer text. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Hook into the backend and load scripts and | |
* init metabox. | |
*/ | |
function ds_gist2wordpress_admin() { | |
add_action( 'wp_ajax_gist', 'ds_gistify' ); | |
add_action( 'admin_print_scripts-post.php', 'ds_gist_js' ); | |
add_action( 'admin_print_scripts-post-new.php', 'ds_gist_js' ); |