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
This commit is contained in:
nacin 2012-03-22 05:07:27 +00:00
parent ee5b82448f
commit 6ae2e315fa

View File

@ -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