mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +00:00
Add missing doc blocks to wp-admin/includes/*.
Fix some egregious uses of tabbing. Some functions can simply return `apply_filters(...)` instead of setting a variable that is immediately returned. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -18,7 +18,7 @@ $title = __( 'Credits' );
|
||||
*
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @return array|bool A list of all of the contributors, or false on error.
|
||||
* @return array|false A list of all of the contributors, or false on error.
|
||||
*/
|
||||
function wp_credits() {
|
||||
global $wp_version;
|
||||
@@ -55,7 +55,6 @@ function wp_credits() {
|
||||
* @param string &$display_name The contributor's display name, passed by reference.
|
||||
* @param string $username The contributor's username.
|
||||
* @param string $profiles URL to the contributor's WordPress.org profile page.
|
||||
* @return string A contributor's display name, hyperlinked to a WordPress.org profile page.
|
||||
*/
|
||||
function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
|
||||
$display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
|
||||
@@ -68,7 +67,6 @@ function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @param string &$data External library data, passed by reference.
|
||||
* @return string Link to the external library.
|
||||
*/
|
||||
function _wp_credits_build_object_link( &$data ) {
|
||||
$data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0] . '</a>';
|
||||
|
||||
Reference in New Issue
Block a user