Completed
Push — sync/require-lib ( cb01a1 )
by
unknown
17:14
created
require-lib.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
+/**
4
+ * @param string $lib_dir
5
+ */
3 6
 function require_lib_from_dir( $slug, $lib_dir ) {
4 7
 	if ( !preg_match( '|^[a-z0-9/_.-]+$|i', $slug ) ) {
5 8
 		trigger_error( "Cannot load a library with invalid slug $slug.", E_USER_ERROR );
@@ -32,6 +35,9 @@  discard block
 block discarded – undo
32 35
 	trigger_error( "Cannot find a library with slug $slug.", E_USER_ERROR );
33 36
 }
34 37
 
38
+/**
39
+ * @param string $slug
40
+ */
35 41
 function jetpack_require_lib( $slug ) {
36 42
 	if ( defined( 'ABSPATH' ) && ! defined( 'WP_CONTENT_DIR' ) ) {
37 43
 		define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
@@ -40,6 +46,9 @@  discard block
 block discarded – undo
40 46
 	require_lib_from_dir( $slug, WP_CONTENT_DIR . '/lib' );
41 47
 }
42 48
 
49
+/**
50
+ * @param string $slug
51
+ */
43 52
 function jetpack_require_lib( $slug ) {
44 53
 	return jetpack_require_lib( $slug );
45 54
 }
Please login to merge, or discard this patch.