| Conditions | 4 |
| Paths | 3 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function load_autoloader() { |
||
| 8 | // Load all the packages. |
||
| 9 | $jetpack_autoloader = plugin_dir_path( __FILE__ ) . '/vendor/autoload.php'; |
||
| 10 | if ( is_readable( $jetpack_autoloader ) ) { |
||
| 11 | require $jetpack_autoloader; |
||
| 12 | } else { |
||
| 13 | if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { |
||
| 14 | error_log( |
||
| 15 | sprintf( |
||
| 16 | /* translators: Placeholder is a link to a support document. */ |
||
| 17 | __( 'Your installation of Jetpack is incomplete. If you installed Jetpack from GitHub, please refer to <a href="%1$s" target="_blank" rel="noopener noreferrer">this document</a> to set up your development environment.', 'jetpack' ), |
||
| 18 | esc_url( 'https://github.com/Automattic/jetpack/blob/master/docs/development-environment.md' ) |
||
| 19 | ) |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | add_action( 'admin_notices', array( $this, 'jetpack_admin_missing_autoloader' ) ); |
||
| 23 | return; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 48 |