Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Untitled diff
作成日
11 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
6 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
37 行
すべてコピー
16 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
46 行
すべてコピー
$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);
コピー
コピー済み
コピー
コピー済み
//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( $
current->response[ $plugin ]
) ) {
if ( !isset( $
download_link
) ) {
$this->skin->set_result(true);
$this->skin->set_result(true);
$this->skin->before();
$this->skin->before();
コピー
コピー済み
コピー
コピー済み
$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;
}
}
コピー
コピー済み
コピー
コピー済み
// 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(
コピー
コピー済み
コピー
コピー済み
'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
保存された差分
原文
ファイルを開く
$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
変更されたテキスト
ファイルを開く
$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
違いを見つける