Conditions | 3 |
Paths | 2 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | protected static function missing_autoloader() { |
||
46 | if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { |
||
47 | error_log( // phpcs:ignore |
||
48 | esc_html__( 'Your installation of WooCommerce is incomplete. If you installed WooCommerce from GitHub, please refer to this document to set up your development environment: https://github.com/woocommerce/woocommerce/wiki/How-to-set-up-WooCommerce-development-environment', 'woocommerce' ) |
||
49 | ); |
||
50 | } |
||
51 | add_action( |
||
52 | 'admin_notices', |
||
53 | function() { |
||
54 | ?> |
||
55 | <div class="notice notice-error"> |
||
56 | <p> |
||
57 | <?php |
||
58 | printf( |
||
59 | /* translators: 1: is a link to a support document. 2: closing link */ |
||
60 | esc_html__( 'Your installation of WooCommerce is incomplete. If you installed WooCommerce from GitHub, %1$splease refer to this document%2$s to set up your development environment.', 'woocommerce' ), |
||
61 | '<a href="' . esc_url( 'https://github.com/woocommerce/woocommerce/wiki/How-to-set-up-WooCommerce-development-environment' ) . '" target="_blank" rel="noopener noreferrer">', |
||
62 | '</a>' |
||
63 | ); |
||
64 | ?> |
||
65 | </p> |
||
66 | </div> |
||
67 | <?php |
||
68 | } |
||
69 | ); |
||
70 | } |
||
71 | } |
||
72 |