Make WordPress Core

Ticket #20425: 0001-Updated-docs-for-credits.php.patch

File 0001-Updated-docs-for-credits.php.patch, 1.5 KB (added by raggedrobins, 12 years ago)

Updated the docs for credits.php with help from Marko!

  • wp-admin/credits.php

    From 5187fc04a2b3b4b6df65c94bdde42e7982997db0 Mon Sep 17 00:00:00 2001
    From: Siobhan McKeown <siobhan@wordsforwp.com>
    Date: Sun, 30 Sep 2012 14:26:02 +0100
    Subject: [PATCH] Updated docs for credits.php
    
    ---
     wp-admin/credits.php |   21 +++++++++++++++++++++
     1 file changed, 21 insertions(+)
    
    diff --git a/wp-admin/credits.php b/wp-admin/credits.php
    index 1367276..c89570f 100644
    a b require_once( './admin.php' ); 
    1111
    1212$title = __( 'Credits' );
    1313
     14/**
     15* Retrieves the contributor credits
     16* @since 3.2
     17* @uses $wp_version Retrieves the current WordPress version
     18*
     19* @return array list of all of the contributors
     20*/
    1421function wp_credits() {
    1522        global $wp_version;
    1623        $locale = get_locale();
    function wp_credits() { 
    3643        return $results;
    3744}
    3845
     46/**
     47* Retrieves the link to the contributor's WordPress.org profile
     48*
     49* @since 3.2
     50*
     51* @return string Contributor display name and username, hyperlinked to WordPress.org profile
     52*/
    3953function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
    4054        $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
    4155}
    4256
     57/**
     58* Retrieves the external libraries used in WordPress
     59*
     60* @since 3.2
     61*
     62* @return string link to external library
     63*/
    4364function _wp_credits_build_object_link( &$data ) {
    4465        $data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0] . '</a>';
    4566}