Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
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
비교하기