mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
ee5b82448f
commit
6ae2e315fa
@ -53,6 +53,7 @@ function edit_link( $link_id = 0 ) {
|
|||||||
* @return object Default link
|
* @return object Default link
|
||||||
*/
|
*/
|
||||||
function get_default_link_to_edit() {
|
function get_default_link_to_edit() {
|
||||||
|
$link = new stdClass;
|
||||||
if ( isset( $_GET['linkurl'] ) )
|
if ( isset( $_GET['linkurl'] ) )
|
||||||
$link->link_url = esc_url( $_GET['linkurl'] );
|
$link->link_url = esc_url( $_GET['linkurl'] );
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user