0
내 WPTouch Worpress 플러그인에이 코드가 있습니다. 나는 그것에 무엇인가 추가하려고 시도하고, 내가 추가 한 것을 제거했다. 그리고 나는 이제 오류를 얻는다. 이슈가 뭐야?WPTouch PHP의 오류
오류 :
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/kyfbnews/public_html/wp-content/plugins/wptouch/core/mobile-user-agents.php on line 18
코드 : 바로 박쥐 문제를 볼 수 있기 때문에 기본값으로 복귀하지 않는
<?php
/* Smartphones */
global $wptouch_smartphone_list;
$wptouch_smartphone_list = array(
array('iPhone'), // iPhone
array('iPod', 'Mobile'), // iPod touch
array('Android', 'Mobile'), // Android devices
array('Opera', 'Mini/7'), // Opera Mini 7
array('BB', 'Mobile Safari'), // BB10 devices
array('BlackBerry', 'Mobile Safari'), // BB 6, 7 devices
array('IEMobile/10', 'Touch'), // Windows IE 10 touch devices
array('IEMobile/11', 'Touch'), // Windows IE 11 touch devices
array('Firefox', 'Mobile'), // Firefox OS devices
'IEMobile/7.0', // Windows Phone OS 7
'IEMobile/9.0', // Windows Phone OS 9
'webOS' // Palm Pre/Pixi
);
/* Tablets */
global $wptouch_tablet_list;
$wptouch_tablet_list = array(
// Nothing excluded yet
);
/* Matching any of these user-agents will cause WPtouch Pro to be shown for the 'default' theme */
global $wptouch_device_classes;
$wptouch_device_classes[ 'default' ] = $wptouch_smartphone_list;
global $wptouch_exclusion_list;
$wptouch_exclusion_list = $wptouch_tablet_list;
기본값으로 돌아 왔지만 아무 것도 액세스 할 수 없기 때문에 Wordpress 관리 페이지를 통해 파일을 실제로 업데이트 할 수 없다고 생각합니다. 나는 그것이 FTP를 통해 그것을 할 필요가 있을지도 모른다라고 생각한다. – raginggoat
@ user2029585 수정 된 파일이 저장되지 않으면 문제가됩니다. 관리자가 접근 할 수 없다면 FTP를 통해 다시 변경하는 것이 유일한 해결책이 될 것이지만, 주요 보안 위험이기 때문에 테마 편집기/플러그인 편집기에 내장 된 것을 사용해서는 안됩니다. – michaelrmcneill