'; $posting['fsockopen_curl']['success'] = false; } // SOAP $posting['soap_client']['name'] = __( 'SOAP Client','woocommerce' ); if ( class_exists( 'SoapClient' ) ) { $posting['soap_client']['note'] = __('Your server has the SOAP Client class enabled.', 'woocommerce' ); $posting['soap_client']['success'] = true; } else { $posting['soap_client']['note'] = sprintf( __( 'Your server does not have the SOAP Client class enabled - some gateway plugins which use SOAP may not work as expected.', 'woocommerce' ), 'http://php.net/manual/en/class.soapclient.php' ) . ''; $posting['soap_client']['success'] = false; } // WP Remote Post Check $posting['wp_remote_post']['name'] = __( 'WP Remote Post','woocommerce'); $request['cmd'] = '_notify-validate'; $params = array( 'sslverify' => false, 'timeout' => 60, 'user-agent' => 'WooCommerce/' . WC()->version, 'body' => $request ); $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { $posting['wp_remote_post']['note'] = __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce' ); $posting['wp_remote_post']['success'] = true; } elseif ( is_wp_error( $response ) ) { $posting['wp_remote_post']['note'] = __( 'wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error:', 'woocommerce' ) . ' ' . $response->get_error_message(); $posting['wp_remote_post']['success'] = false; } else { $posting['wp_remote_post']['note'] = __( 'wp_remote_post() failed. PayPal IPN may not work with your server.', 'woocommerce' ); $posting['wp_remote_post']['success'] = false; } $posting = apply_filters( 'woocommerce_debug_posting', $posting ); foreach( $posting as $post ) { $mark = ( isset( $post['success'] ) && $post['success'] == true ) ? 'yes' : 'error'; ?> $val ) if ( in_array( $key, array( 'decimal_point', 'mon_decimal_point', 'thousands_sep', 'mon_thousands_sep' ) ) ) echo ''; ?> array( 'option' => 'woocommerce_shop_page_id', 'shortcode' => '' ), __( 'Cart', 'woocommerce' ) => array( 'option' => 'woocommerce_cart_page_id', 'shortcode' => '[' . apply_filters( 'woocommerce_cart_shortcode_tag', 'woocommerce_cart' ) . ']' ), __( 'Checkout', 'woocommerce' ) => array( 'option' => 'woocommerce_checkout_page_id', 'shortcode' => '[' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']' ), __( 'My Account', 'woocommerce' ) => array( 'option' => 'woocommerce_myaccount_page_id', 'shortcode' => '[' . apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) . ']' ) ); $alt = 1; foreach ( $check_pages as $page_name => $values ) { if ( $alt == 1 ) echo ''; else echo ''; echo ''; $alt = $alt * -1; } ?> {'Author URI'} == 'http://www.woothemes.com' ) : $theme_dir = substr( strtolower( str_replace( ' ','', $active_theme->Name ) ), 0, 45 ); if ( false === ( $theme_version_data = get_transient( $theme_dir . '_version_data' ) ) ) : $theme_changelog = wp_remote_get( 'http://dzv365zjfbd8v.cloudfront.net/changelogs/' . $theme_dir . '/changelog.txt' ); $cl_lines = explode( "\n", wp_remote_retrieve_body( $theme_changelog ) ); if ( ! empty( $cl_lines ) ) : foreach ( $cl_lines as $line_num => $cl_line ) { if ( preg_match( '/^[0-9]/', $cl_line ) ) : $theme_date = str_replace( '.' , '-' , trim( substr( $cl_line , 0 , strpos( $cl_line , '-' ) ) ) ); $theme_version = preg_replace( '~[^0-9,.]~' , '' ,stristr( $cl_line , "version" ) ); $theme_update = trim( str_replace( "*" , "" , $cl_lines[ $line_num + 1 ] ) ); $theme_version_data = array( 'date' => $theme_date , 'version' => $theme_version , 'update' => $theme_update , 'changelog' => $theme_changelog ); set_transient( $theme_dir . '_version_data', $theme_version_data , 60*60*12 ); break; endif; } endif; endif; endif; ?> WC()->plugin_path() . '/templates/' ) ); $found_files = array(); foreach ( $template_paths as $plugin_name => $template_path ) $scanned_files[ $plugin_name ] = $this->scan_template_files( $template_path ); foreach ( $scanned_files as $plugin_name => $files ) { foreach ( $files as $file ) { if ( file_exists( get_stylesheet_directory() . '/' . $file ) ) { $theme_file = get_stylesheet_directory() . '/' . $file; } elseif ( file_exists( get_stylesheet_directory() . '/woocommerce/' . $file ) ) { $theme_file = get_stylesheet_directory() . '/woocommerce/' . $file; } elseif ( file_exists( get_template_directory() . '/' . $file ) ) { $theme_file = get_template_directory() . '/' . $file; } elseif( file_exists( get_template_directory() . '/woocommerce/' . $file ) ) { $theme_file = get_template_directory() . '/woocommerce/' . $file; } else { $theme_file = false; } if ( $theme_file ) { $core_version = $this->get_file_version( WC()->plugin_path() . '/templates/' . $file ); $theme_version = $this->get_file_version( $theme_file ); if ( $core_version && ( empty( $theme_version ) || version_compare( $theme_version, $core_version, '<' ) ) ) { $found_files[ $plugin_name ][] = sprintf( __( '%s version %s is out of date. The core version is %s', 'woocommerce' ), basename( $theme_file ), $theme_version ? $theme_version : '-', $core_version ); } else { $found_files[ $plugin_name ][] = sprintf( '%s', basename( $theme_file ) ); } } } } if ( $found_files ) { foreach ( $found_files as $plugin_name => $found_plugin_files ) { ?>
:
:
: version ); ?>
:
:
:
:
:
:
: ' . sprintf( __( '%s - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP', 'woocommerce' ), size_format( $memory ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) . ''; } else { echo '' . size_format( $memory ) . ''; } ?>
: ' . __( 'Yes', 'woocommerce' ) . ''; else echo '' . __( 'No', 'woocommerce' ) . ''; ?>
:
:
:
:
:
:
: plugin_path() . '/logs/paypal.txt', 'a' ) ) echo '' . __( 'Log directory is writable.', 'woocommerce' ) . ''; else echo '' . __( 'Log directory (woocommerce/logs/) is not writable. Logging will not be possible.', 'woocommerce' ) . ''; ?>
: ' . sprintf( __( 'Default timezone is %s - it should be UTC', 'woocommerce' ), $default_timezone ) . ''; } else { echo '' . sprintf( __( 'Default timezone is %s', 'woocommerce' ), $default_timezone ) . ''; } ?>
:
' . $key . ':' . $val . '
: ' . $plugin_name . ''; } if ( strstr( $dirname, 'woocommerce' ) ) { if ( false === ( $version_data = get_transient( md5( $plugin ) . '_version_data' ) ) ) { $changelog = wp_remote_get( 'http://dzv365zjfbd8v.cloudfront.net/changelogs/' . $dirname . '/changelog.txt' ); $cl_lines = explode( "\n", wp_remote_retrieve_body( $changelog ) ); if ( ! empty( $cl_lines ) ) { foreach ( $cl_lines as $line_num => $cl_line ) { if ( preg_match( '/^[0-9]/', $cl_line ) ) { $date = str_replace( '.' , '-' , trim( substr( $cl_line , 0 , strpos( $cl_line , '-' ) ) ) ); $version = preg_replace( '~[^0-9,.]~' , '' ,stristr( $cl_line , "version" ) ); $update = trim( str_replace( "*" , "" , $cl_lines[ $line_num + 1 ] ) ); $version_data = array( 'date' => $date , 'version' => $version , 'update' => $update , 'changelog' => $changelog ); set_transient( md5( $plugin ) . '_version_data', $version_data, 60*60*12 ); break; } } } } if ( ! empty( $version_data['version'] ) && version_compare( $version_data['version'], $plugin_data['Version'], '>' ) ) $version_string = ' – ' . $version_data['version'] . ' ' . __( 'is available', 'woocommerce' ) . ''; } $wc_plugins[] = $plugin_name . ' ' . __( 'by', 'woocommerce' ) . ' ' . $plugin_data['Author'] . ' ' . __( 'version', 'woocommerce' ) . ' ' . $plugin_data['Version'] . $version_string; } } if ( sizeof( $wc_plugins ) == 0 ) echo '-'; else echo implode( ',
', $wc_plugins ); ?>
: '.__( 'Yes', 'woocommerce' ).'' : ''.__( 'No', 'woocommerce' ).''; ?>
' . esc_html( $page_name ) . ':'; $error = false; $page_id = get_option( $values['option'] ); // Page ID check if ( ! $page_id ) { echo '' . __( 'Page not set', 'woocommerce' ) . ''; $error = true; } else { // Shortcode check if ( $values['shortcode'] ) { $page = get_post( $page_id ); if ( empty( $page ) ) { echo '' . sprintf( __( 'Page does not exist', 'woocommerce' ) ) . ''; $error = true; } else if ( ! strstr( $page->post_content, $values['shortcode'] ) ) { echo '' . sprintf( __( 'Page does not contain the shortcode: %s', 'woocommerce' ), $values['shortcode'] ) . ''; $error = true; } } } if ( ! $error ) echo '#' . absint( $page_id ) . ' - ' . str_replace( home_url(), '', get_permalink( $page_id ) ) . ''; echo '
: 0 ) ); foreach ( $terms as $term ) $display_terms[] = $term->name . ' (' . $term->slug . ')'; echo implode( ', ', array_map( 'esc_html', $display_terms ) ); ?>
: 0 ) ); foreach ( $terms as $term ) $display_terms[] = $term->name . ' (' . $term->slug . ')'; echo implode( ', ', array_map( 'esc_html', $display_terms ) ); ?>
: Name; ?>
: Version; if ( ! empty( $theme_version_data['version'] ) && version_compare( $theme_version_data['version'], $active_theme->Version, '!=' ) ) echo ' – ' . $theme_version_data['version'] . ' ' . __( 'is available', 'woocommerce' ) . ''; ?>
: {'Author URI'}; ?>
(): ', $found_plugin_files ); ?> :