Make WordPress Core

Changeset 25491


Ignore:
Timestamp:
09/19/2013 02:26:24 AM (11 years ago)
Author:
DrewAPicture
Message:

Add phpdoc blocks in wp-admin/credits.php.

Props siobhan, markoheijnen.
Fixes #20425.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/credits.php

    r25441 r25491  
    1212$title = __( 'Credits' );
    1313
     14/**
     15 * Retrieve the contributor credits.
     16 *
     17 * @global string $wp_version The current WordPress version.
     18 *
     19 * @since 3.2.0
     20 *
     21 * @return array A list of all of the contributors.
     22*/
    1423function wp_credits() {
    1524    global $wp_version;
     
    3746}
    3847
     48/**
     49 * Retrieve the link to a contributor's WordPress.org profile page.
     50 *
     51 * @access private
     52 * @since 3.2.0
     53 *
     54 * @param string &$display_name The contributor's display name, passed by reference.
     55 * @param string $user_name     The contributor's username.
     56 * @param string $profiles      URL to the contributor's WordPress.org profile page.
     57 * @return string A contributor's display name, hyperlinked to a WordPress.org profile page.
     58 */
    3959function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
    4060    $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
    4161}
    4262
     63/**
     64 * Retrieve the link to an external library used in WordPress.
     65 *
     66 * @access private
     67 * @since 3.2.0
     68 *
     69 * @param string &$data External library data, passed by reference.
     70 * @return string Link to the external library.
     71 */
    4372function _wp_credits_build_object_link( &$data ) {
    4473    $data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0] . '</a>';
Note: See TracChangeset for help on using the changeset viewer.