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
This commit is contained in:
Andrew Nacin 2012-03-22 05:07:27 +00:00
parent 5c54b48c3c
commit a66dd764d6
1 changed files with 1 additions and 0 deletions

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