Access to the theme-editor.php
-
Hi, I’m Bruno and am trying to get access to edit the source-code but it returns ERROR 500.
I checked the logs and it said the error is on the file httpdocswp-includesclass-wp-theme.php on line 1152here is the code:
foreach ( $results as $result ) {
if ( ‘.’ == $result[0] || in_array( $result, $exclusions, true ) ) {
continue;
}
if ( is_dir( $path . ‘/’ . $result ) ) { // this is the line 1152
if ( ! $depth ) {
continue;
}
$found = self::scandir( $path . ‘/’ . $result, $extensions, $depth – 1 , $relative_path . $result );
$files = array_merge_recursive( $files, $found );
} elseif ( ! $extensions || preg_match( ‘~.(‘ . $_extensions . ‘)$~’, $result ) ) {
$files[ $relative_path . $result ] = $path . ‘/’ . $result;
}
}what should I do? I need this access to fix another thing. Thankyou so much!!
The page I need help with: [log in to see the link]
- The topic ‘Access to the theme-editor.php’ is closed to new replies.