From 6ae2e315fa20efe7243e73c39ae926ffd4ffb85e Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 22 Mar 2012 05:07:27 +0000 Subject: [PATCH] Instantiate an object in get_default_link_to_edit(). fixes #20280. git-svn-id: http://svn.automattic.com/wordpress/trunk@20256 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/bookmark.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php index b3a518501..0d2de9e3c 100644 --- a/wp-admin/includes/bookmark.php +++ b/wp-admin/includes/bookmark.php @@ -53,6 +53,7 @@ function edit_link( $link_id = 0 ) { * @return object Default link */ function get_default_link_to_edit() { + $link = new stdClass; if ( isset( $_GET['linkurl'] ) ) $link->link_url = esc_url( $_GET['linkurl'] ); else