mirror of
git://develop.git.wordpress.org/
synced 2025-02-23 16:15:31 +01:00
Fix fatal error in incoming links dashboard module when author not defined. Props jikamens. fixes #10162 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11569 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4c04805ade
commit
cdd72d2b01
@ -644,10 +644,14 @@ function wp_dashboard_incoming_links_output() {
|
||||
$link = esc_url( strip_tags( $item->get_link() ) );
|
||||
|
||||
$author = $item->get_author();
|
||||
$site_link = esc_url( strip_tags( $author->get_link() ) );
|
||||
if ( $author ) {
|
||||
$site_link = esc_url( strip_tags( $author->get_link() ) );
|
||||
|
||||
if ( !$publisher = esc_html( strip_tags( $author->get_name() ) ) )
|
||||
$publisher = __( 'Somebody' );
|
||||
if ( !$publisher = esc_html( strip_tags( $author->get_name() ) ) )
|
||||
$publisher = __( 'Somebody' );
|
||||
} else {
|
||||
$publisher = __( 'Somebody' );
|
||||
}
|
||||
if ( $site_link )
|
||||
$publisher = "<a href='$site_link'>$publisher</a>";
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user