Changeset 25491
- Timestamp:
- 09/19/2013 02:26:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/credits.php
r25441 r25491 12 12 $title = __( 'Credits' ); 13 13 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 */ 14 23 function wp_credits() { 15 24 global $wp_version; … … 37 46 } 38 47 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 */ 39 59 function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) { 40 60 $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>'; 41 61 } 42 62 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 */ 43 72 function _wp_credits_build_object_link( &$data ) { 44 73 $data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0] . '</a>';
Note: See TracChangeset
for help on using the changeset viewer.