Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small changes, codex

  • Loading branch information...
commit d3790aec7be49e228355685eb489f53f307e9c10 1 parent ba41f5a
@bueltge authored
View
2  debug_objects.php
@@ -14,7 +14,7 @@
* License: GPLv3
* Author: Frank Bültge
* Author URI: http://bueltge.de/
- * Last Change: 04/29/2012
+ * Last Change: 08/02/2012
*/
// error_reporting(E_ALL);
View
47 inc/class-all_hooks.php
@@ -1,47 +0,0 @@
-<?php
-/**
- * Add small screen with informations about cache of WP
- *
- * @package Debug Objects
- * @subpackage Cache
- * @author Frank B&uuml;ltge
- * @since 2.0.0
- */
-
-if ( ! class_exists( 'Debug_Objects_Cache' ) ) {
-
- class Debug_Objects_Cache extends Debug_Objects {
-
- public static function init() {
-
- if ( ! current_user_can( '_debug_objects' ) )
- return;
-
- add_filter( 'debug_objects_tabs', array( __CLASS__, 'get_conditional_tab' ) );
- }
-
- public static function get_conditional_tab( $tabs ) {
-
- $tabs[] = array(
- 'tab' => __( 'Cache', parent :: get_plugin_data() ),
- 'function' => array( __CLASS__, 'get_object_cache' )
- );
-
- return $tabs;
- }
-
- public static function get_object_cache( $echo = TRUE ) {
- global $wp_object_cache, $wp_object;
-
- $output = '';
- $output .= parent :: get_as_ul_tree( $wp_object_cache, '<strong class="h4">WordPress Object Cache</strong>' );
- $output .= '<p>' . __( 'Objects total:', parent :: get_plugin_data() ) . ' ' . $wp_object . '</p>';
-
- if ( $echo )
- echo $output;
- else
- return $output;
- }
-
- } // end class
-}// end if class exists
View
2  inc/class-debug_hooks.php
@@ -39,7 +39,7 @@ public static function get_conditional_tab( $tabs ) {
return $tabs;
}
- public static function list_hooks( $filter = false ){
+ public static function list_hooks( $filter = FALSE ){
global $wp_filter;
$hooks = $wp_filter;
View
2  inc/class-settings.php
@@ -17,7 +17,7 @@
class Debug_Objects_Settings extends Debug_Objects {
- static private $classobj = NULL;
+ private static $classobj = NULL;
// string for translation
public static $textdomain;
// string for options in table options
Please sign in to comment.
Something went wrong with that request. Please try again.