esc_html__( 'Redux Code Styles', 'redux-framework' ), 'class-redux-framework-plugin.php' => esc_html__( 'Redux Plugin File', 'redux-framework' ), '.travis.yml' => esc_html__( 'CI Testing File', 'redux-framework' ), ); $errors = array(); foreach ( $blacklist as $file => $reason ) { checkcount(); if ( file_exists( $redux['parent_dir'] . $file ) ) { $errors[ $redux['parent_dir'] . $file ] = $reason; } } if ( ! empty( $errors ) ) { $error = 'REQUIRED ' . esc_html__( 'It appears that you have embedded the full Redux package inside your theme. You need only embed the', 'redux-framework' ) . ' redux-core ' . esc_html__( 'folder. Embedding anything else will get your rejected from theme submission. Suspected Redux package file(s):', 'redux-framework' ); $error .= '
    '; foreach ( $errors as $key => $e ) { $error .= '
  1. ' . $e . ': ' . $key . '
  2. '; } $error .= '
'; $this->error[] = '
' . $error . '
'; $ret = false; } } return $ret; } /** * Retrieve errors. * * @return array */ public function getError(): array { return $this->error; } } $themechecks[] = new Redux_Full_Package();