wp_theme_update_row [ WordPress Function ]
wp_theme_update_row ( $theme_key, $theme )
| Defined at: |
|
Benzer Fonksiyonlar: wp_theme_update_rows, get_theme_updates, wp_plugin_update_row, wp_plugin_update_rows, list_theme_updates
No description yet.
Source
<?php
function wp_theme_update_row( $theme_key, $theme ) {
$current = get_site_transient( 'update_themes' );
if ( !isset( $current->response[ $theme_key ] ) )
return false;
$r = $current->response[ $theme_key ];
$themes_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());
$theme_name = wp_kses( $theme['Name'], $themes_allowedtags );
$details_url = self_admin_url("theme-install.php?tab=theme-information&theme=$theme_key&TB_iframe=true&width=600&height=400");
$wp_list_table = _get_list_table('WP_MS_Themes_List_Table');
echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
if ( ! current_user_can('update_themes') )
printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version );
else if ( empty( $r['package'] ) )
printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] );
else
printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) );
do_action( "in_theme_update_message-$theme_key", $theme, $r );
echo '</div></td></tr>';
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- PHPXRef 0.7 : WordPress : /wp-admin/includes/update.php source
... 244 function wp_theme_update_rows() { 245 if ( !current_user_can(' update_themes' ) ... 'wp_theme_update_rows' ); 258 259 function wp_theme_update_row( ...
phpxref.ftwr.co.uk - /wp-admin/includes/update.php source - PHP Cross Reference ...
Jun 1, 2011... 247 } 248 249 function wp_theme_update_rows() { 250 if ... 263 264 function wp_theme_update_row( $theme_key, $theme ) { 265 $current ...
xref.yoast.com - <?php /** * WordPress Administration Update API * * @package ...
'wp-admin/includes/class-wp-upgrader.php'; $upgrader = new Theme_Upgrader( ); return $upgrader->upgrade($theme); } function wp_theme_update_rows() { if ...
core.svn.wordpress.org - A HitchHackers guide through WordPress | Function, Filter & Action ...
in_plugin_update_message-$file. wp_plugin_update_row. in_theme_update_message-$theme_key. wp_theme_update_row ...
hitchhackerguide.com