wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_core_updates [ WordPress Function ]
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
Get available core updates
Source
<?php
function get_core_updates( $options = array() ) {
$options = array_merge( array('available' => true, 'dismissed' => false ), $options );
$dismissed = get_site_option( 'dismissed_update_core' );
if ( !is_array( $dismissed ) ) $dismissed = array();
$from_api = get_site_transient( 'update_core' );
if ( empty($from_api) )
return false;
if ( !isset( $from_api->updates ) || !is_array( $from_api->updates ) ) return false;
$updates = $from_api->updates;
if ( !is_array( $updates ) ) return false;
$result = array();
foreach($updates as $update) {
if ( array_key_exists( $update->current.'|'.$update->locale, $dismissed ) ) {
if ( $options['dismissed'] ) {
$update->dismissed = true;
$result[]= $update;
}
} else {
if ( $options['available'] ) {
$update->dismissed = false;
$result[]= $update;
}
}
}
return $result;
}
?>
Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- get_core_updates | A HitchHackers guide through WordPress
Feb 12, 2011 ... function get_core_updates( $options = array() ) { $options = array_merge( array(' available' => true, 'dismissed' => false ), $options ) ...
hitchhackerguide.com - get_core_updates() WordPress function reference, arguments and ...
get_core_updates( $options = array() ). options: (array) Set $options['dismissed'] to true to show dismissed upgrades too, set $options['available'] to false to skip ...
queryposts.com - PHPXRef 0.7 : WordPress : Function Reference: get_core_updates()
Function and Method Cross Reference. get_core_updates(). Defined at: /wp- admin/includes/update.php -> line 25. Referenced 5 times: ...
phpxref.ftwr.co.uk - get_core_updates (WordPress Function) - WPSeek.com
WordPress lookup for get_core_updates, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com