File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 10
10
*/
11
11
class Yoast_Dynamic_Rewrites implements WPSEO_WordPress_Integration {
12
12
13
- /** @var array Additional rewrite rules with high priority. */
13
+ /**
14
+ * Additional rewrite rules with high priority.
15
+ *
16
+ * @var array
17
+ */
14
18
protected $ extra_rules_top = [];
15
19
16
- /** @var array Additional rewrite rules with low priority. */
20
+ /**
21
+ * Additional rewrite rules with low priority.
22
+ *
23
+ * @var array
24
+ */
17
25
protected $ extra_rules_bottom = [];
18
26
19
- /** @var self|null Main instance holder. */
27
+ /**
28
+ * Main instance holder.
29
+ *
30
+ * @var self|null
31
+ */
20
32
protected static $ instance = null ;
21
33
22
34
/**
@@ -39,6 +51,7 @@ public static function instance() {
39
51
* Sets the WP_Rewrite instance to use.
40
52
*
41
53
* @param WP_Rewrite|null $rewrite Optional. WP_Rewrite instance to use. Default is the $wp_rewrite global.
54
+ * @throws RuntimeException Throws an exception if the $wp_rewrite global is not set.
42
55
*/
43
56
public function __construct ( $ rewrite = null ) {
44
57
if ( ! $ rewrite ) {
You can’t perform that action at this time.
0 commit comments