wp_credits [ WordPress Function ]
wp_credits ( No parameters )
| Defined at: |
|
No description yet.
Source
<?php
function wp_credits() {
global $wp_version;
$locale = get_locale();
$results = get_site_transient( 'wordpress_credits_' . $locale );
if ( ! is_array( $results ) ) {
$response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" );
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
return false;
$results = maybe_unserialize( wp_remote_retrieve_body( $response ) );
if ( ! is_array( $results ) )
return false;
set_site_transient( 'wordpress_credits_' . $locale, $results, 86400 ); // One day
}
return $results;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- wp_credits | A HitchHackers guide through WordPress
Jul 5, 2011 ... function wp_credits() { global $wp_version; $locale = get_locale(); $results = get_site_transient( 'wordpress_credits_' . $locale ); if ( ! is_array( ...
hitchhackerguide.com - PHPXRef 0.7 : WordPress : /wp-admin/credits.php source
admin.php' ); 11 12 $title = __( 'Credits' ); 13 14 function wp_credits() { 15 global $wp_version; 16 $locale = get_locale(); 17 18 $results = get_site_transient( ...
phpxref.ftwr.co.uk - WP-Credits | |
WP-Credits. Thank you to: Dan Coulter http://dancoulter.com/ for the gig Calendar plugin & Mark James for the Silk icons used in the Gig Calendar ...
finonline.co.uk - credits | Kristin Wilkinson Music
Printed from: http://www.kristinwilkinson.com/wp/credits/ . © KristinWilkinson 2012 . Copyright 2012 KristinWilkinson. Developed by MJCreativeSolutions.com.
www.kristinwilkinson.com