mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-09 00:51:35 +01:00
Twenty Eleven: ensure twentyeleven_url_grabber()
is pluggable by wrapping in a function_exists
check.
git-svn-id: http://core.svn.wordpress.org/trunk@23474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e17790bff2
commit
3dd379a1be
@ -458,6 +458,7 @@ function twentyeleven_content_nav( $html_id ) {
|
|||||||
}
|
}
|
||||||
endif; // twentyeleven_content_nav
|
endif; // twentyeleven_content_nav
|
||||||
|
|
||||||
|
if ( ! function_exists( 'twentyeleven_url_grabber' ) ) :
|
||||||
/**
|
/**
|
||||||
* Return the URL for the first link found in the post content.
|
* Return the URL for the first link found in the post content.
|
||||||
*
|
*
|
||||||
@ -470,6 +471,7 @@ function twentyeleven_url_grabber() {
|
|||||||
|
|
||||||
return esc_url_raw( $matches[1] );
|
return esc_url_raw( $matches[1] );
|
||||||
}
|
}
|
||||||
|
endif;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count the number of footer sidebars to enable dynamic classes for the footer
|
* Count the number of footer sidebars to enable dynamic classes for the footer
|
||||||
|
Loading…
Reference in New Issue
Block a user