mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 07:04:34 +00:00
Remove lingering instances of call time pass-by-reference, limited to instances of callable - use $this instead of &$this.
Props jdgrimes. See #25160. git-svn-id: https://develop.svn.wordpress.org/trunk@25254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -19,7 +19,7 @@ class Tests_Meta extends WP_UnitTestCase {
|
||||
$meta = sanitize_meta( 'some_meta', 'unsanitized', 'post' );
|
||||
$this->assertEquals( 'unsanitized', $meta );
|
||||
|
||||
register_meta( 'post', 'some_meta', array( &$this, '_meta_sanitize_cb' ) );
|
||||
register_meta( 'post', 'some_meta', array( $this, '_meta_sanitize_cb' ) );
|
||||
$meta = sanitize_meta( 'some_meta', 'unsanitized', 'post' );
|
||||
$this->assertEquals( 'sanitized', $meta );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user