| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | function require_lib( $slug ) { |
||
| 33 | if ( defined( 'ABSPATH' ) && ! defined( 'WP_CONTENT_DIR' ) ) { |
||
| 34 | define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down |
||
| 35 | } |
||
| 36 | |||
| 37 | require_lib_from_dir( $slug, WP_CONTENT_DIR . '/lib' ); |
||
| 38 | } |
||
| 39 | |||
| 43 |