Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
Untitled diff
Criado
há 11 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
6 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
37 linhas
Copiar tudo
16 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
46 linhas
Copiar tudo
$this->update_count = count($plugins);
$this->update_count = count($plugins);
$this->update_current = 0;
$this->update_current = 0;
foreach ( $plugins as $plugin ) {
foreach ( $plugins as $plugin ) {
$this->update_current++;
$this->update_current++;
$this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true);
$this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true);
Copiar
Copiado
Copiar
Copiado
//get plugin infos from Wordpress.org API
$plugin_split = explode('/',$plugin);
$plugin_slug = $plugin_split[0];
$args = (object) array( 'slug' => $plugin_slug );
$request = array( 'action' => 'plugin_information', 'timeout' => 15, 'request' => serialize( $args) );
$url = 'http://api.wordpress.org/plugins/info/1.0/';
$response = wp_remote_post( $url, array( 'body' => $request ) );
$plugin_info = unserialize( $response['body'] );
$download_link = $plugin_info->download_link;
Copiar
Copiado
Copiar
Copiado
if ( !isset( $
current->response[ $plugin ]
) ) {
if ( !isset( $
download_link
) ) {
$this->skin->set_result(true);
$this->skin->set_result(true);
$this->skin->before();
$this->skin->before();
Copiar
Copiado
Copiar
Copiado
$this->skin->feedback('
up_to_date
');
$this->skin->feedback('
no_package
');
$this->skin->after();
$this->skin->after();
$results[$plugin] = true;
$results[$plugin] = true;
continue;
continue;
}
}
Copiar
Copiado
Copiar
Copiado
// Get the URL to the zip file
$r = $current->response[ $plugin ];
$this->skin->plugin_active = is_plugin_active($plugin);
$this->skin->plugin_active = is_plugin_active($plugin);
$result = $this->run( array(
$result = $this->run( array(
Copiar
Copiado
Copiar
Copiado
'package' => $
r->package
,
'package' => $
download_link
,
'destination' => WP_PLUGIN_DIR,
'destination' => WP_PLUGIN_DIR,
'clear_destination' => true,
'clear_destination' => true,
'clear_working' => true,
'clear_working' => true,
'is_multi' => true,
'is_multi' => true,
'hook_extra' => array(
'hook_extra' => array(
'plugin' => $plugin
'plugin' => $plugin
)
)
) );
) );
$results[$plugin] = $this->result;
$results[$plugin] = $this->result;
// Prevent credentials auth screen from displaying multiple times
// Prevent credentials auth screen from displaying multiple times
if ( false === $result )
if ( false === $result )
break;
break;
} //end foreach $plugins
} //end foreach $plugins
Diferenças salvas
Texto original
Abrir arquivo
$this->update_count = count($plugins); $this->update_current = 0; foreach ( $plugins as $plugin ) { $this->update_current++; $this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true); if ( !isset( $current->response[ $plugin ] ) ) { $this->skin->set_result(true); $this->skin->before(); $this->skin->feedback('up_to_date'); $this->skin->after(); $results[$plugin] = true; continue; } // Get the URL to the zip file $r = $current->response[ $plugin ]; $this->skin->plugin_active = is_plugin_active($plugin); $result = $this->run( array( 'package' => $r->package, 'destination' => WP_PLUGIN_DIR, 'clear_destination' => true, 'clear_working' => true, 'is_multi' => true, 'hook_extra' => array( 'plugin' => $plugin ) ) ); $results[$plugin] = $this->result; // Prevent credentials auth screen from displaying multiple times if ( false === $result ) break; } //end foreach $plugins
Texto alterado
Abrir arquivo
$this->update_count = count($plugins); $this->update_current = 0; foreach ( $plugins as $plugin ) { $this->update_current++; $this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true); //get plugin infos from Wordpress.org API $plugin_split = explode('/',$plugin); $plugin_slug = $plugin_split[0]; $args = (object) array( 'slug' => $plugin_slug ); $request = array( 'action' => 'plugin_information', 'timeout' => 15, 'request' => serialize( $args) ); $url = 'http://api.wordpress.org/plugins/info/1.0/'; $response = wp_remote_post( $url, array( 'body' => $request ) ); $plugin_info = unserialize( $response['body'] ); $download_link = $plugin_info->download_link; if ( !isset( $download_link ) ) { $this->skin->set_result(true); $this->skin->before(); $this->skin->feedback('no_package'); $this->skin->after(); $results[$plugin] = true; continue; } $this->skin->plugin_active = is_plugin_active($plugin); $result = $this->run( array( 'package' => $download_link, 'destination' => WP_PLUGIN_DIR, 'clear_destination' => true, 'clear_working' => true, 'is_multi' => true, 'hook_extra' => array( 'plugin' => $plugin ) ) ); $results[$plugin] = $this->result; // Prevent credentials auth screen from displaying multiple times if ( false === $result ) break; } //end foreach $plugins
Encontrar Diferença