From a66dd764d6e9903ead6da1576233b18b6c021e3a Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@20256 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 b3a518501c..0d2de9e3c3 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