Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_plugin_update_row [ WordPress Function ]

wp_plugin_update_row ( $file, $plugin_data )
Defined at:



No description yet.

Source


<?php
function wp_plugin_update_row$file$plugin_data ) {
    
$current get_site_transient'update_plugins' );
    if ( !isset( 
$current->response$file ] ) )
        return 
false;

    
$r $current->response$file ];

    
$plugins_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());
    
$plugin_name wp_kses$plugin_data['Name'], $plugins_allowedtags );

    
$details_url self_admin_url('plugin-install.php?tab=plugin-information&plugin=' $r->slug '&section=changelog&TB_iframe=true&width=600&height=800');

    
$wp_list_table _get_list_table('WP_Plugins_List_Table');

    if ( 
is_network_admin() || !is_multisite() ) {
        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_plugins') )
            
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>.'), $plugin_nameesc_url($details_url), esc_attr($plugin_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 plugin.</em>'), $plugin_nameesc_url($details_url), esc_attr($plugin_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>.'), $plugin_nameesc_url($details_url), esc_attr($plugin_name), $r->new_versionwp_nonce_urlself_admin_url('update.php?action=upgrade-plugin&plugin=') . $file'upgrade-plugin_' $file) );

        
do_action"in_plugin_update_message-$file"$plugin_data$r );

        echo 
'</div></td></tr>';
    }
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics