Permalink
Browse files

move from &$this to $this, as we got php 5.2.X+

  • Loading branch information...
1 parent b5a2436 commit 8dba812a02ed967dc8ca2d0216bf547984a4a482 @franz-josef-kaiser committed Mar 30, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 inc/classes/meta-box.php
View
@@ -63,7 +63,7 @@ function __construct( $meta_box )
// Assign meta box values to local variables and add it's missed values
$this->meta_box = self::normalize( $meta_box );
- $this->fields = &$this->meta_box['fields'];
+ $this->fields = $this->meta_box['fields'];
// List of meta box field types
$this->types = array_unique( wp_list_pluck( $this->fields, 'type' ) );
@@ -95,10 +95,10 @@ function __construct( $meta_box )
// Add meta box
foreach ( $this->meta_box['pages'] as $page )
- add_action( "add_meta_boxes_{$page}", array( &$this, 'add_meta_boxes' ) );
+ add_action( "add_meta_boxes_{$page}", array( $this, 'add_meta_boxes' ) );
// Save post meta
- add_action( 'save_post', array( &$this, 'save_post' ) );
+ add_action( 'save_post', array( $this, 'save_post' ) );
}
/**
@@ -145,7 +145,7 @@ function add_meta_boxes()
add_meta_box(
$this->meta_box['id'],
$this->meta_box['title'],
- array( &$this, 'show' ),
+ array( $this, 'show' ),
$page,
$this->meta_box['context'],
$this->meta_box['priority']
@@ -200,7 +200,7 @@ public function show()
$meta = (array) $meta;
foreach ( $meta as $meta_data )
{
- add_filter( "rwmb_{$id}_html", array( &$this, 'add_delete_clone_button' ), 10, 3 );
+ add_filter( "rwmb_{$id}_html", array( $this, 'add_delete_clone_button' ), 10, 3 );
// Wrap field HTML in a div with class="rwmb-clone" if needed
$input_html = '<div class="rwmb-clone">';

0 comments on commit 8dba812

Please sign in to comment.