Skip to content
This repository has been archived by the owner on Oct 4, 2017. It is now read-only.

Commit

Permalink
calltime pass by references fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Jul 31, 2012
1 parent dc122b4 commit 32194a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions includes/boilerplate-classes/debug.php
Expand Up @@ -18,7 +18,7 @@ class Plugin_Boilerplate_Debug_v_1 {
*/
function __construct( &$parent ) {

$this->parent = &$parent;
$this->parent = $parent;

add_action( 'init', array( &$this, 'init' ), 5 );

Expand Down Expand Up @@ -93,7 +93,7 @@ function log( $var, $function = 'var_dump' ) {
function register_panel( $panels ) {
$slug = $this->parent->slug_;
$class = "{$slug}_Debug_Panel";
$panels[] = new $class( $this->parent->name . ' Debug', &$this );
$panels[] = new $class( $this->parent->name . ' Debug', $this );

return $panels;

Expand All @@ -119,8 +119,8 @@ function init_panel( $panels ) {
$code = 'class ' . $this->parent->slug_ . '_Debug_Panel extends Debug_Bar_Panel {
static $parent;
function __construct( $name, &$instance ) {
$this->parent = &$instance;
function __construct( $name, $instance ) {
$this->parent = $instance;
parent::__construct( $name );
}
Expand Down
2 changes: 1 addition & 1 deletion includes/class.plugin-boilerplate.php
Expand Up @@ -53,7 +53,7 @@ function __construct( &$child ) {
//verify minimum WP version, and shutdown if insufficient
if ( !$this->_verify_wp_version() )
return false;

//upgrade db
add_action( 'admin_init', array( &$this, '_upgrade_check' ) );

Expand Down
4 changes: 2 additions & 2 deletions includes/plaintext.php
Expand Up @@ -15,7 +15,7 @@ class WP_Resume_Plaintext {
*/
function __construct( &$parent ) {

$this->parent = &$parent;
$this->parent = $parent;

add_action( 'parse_query', array( &$this, 'init' ) );
}
Expand Down Expand Up @@ -56,7 +56,7 @@ function contact_info( $author = null ) {
$author = $this->parent->get_author( $author );
$contact_info = $this->parent->options->get_user_option( 'contact_info', $author );

array_walk_recursive( &$contact_info, array( &$this, 'contact_info_walker' ) );
array_walk_recursive( $contact_info, array( &$this, 'contact_info_walker' ) );

$contact_info = $this->parent->api->apply_filters( 'plaintext_contact_info', $contact_info );

Expand Down

0 comments on commit 32194a4

Please sign in to comment.