@@ -98,7 +98,7 @@ |
||
98 | 98 | * |
99 | 99 | * @param string $content |
100 | 100 | * |
101 | - * @return mixed |
|
101 | + * @return string |
|
102 | 102 | */ |
103 | 103 | function jetpack_archiveorg_embed_to_shortcode( $content ) { |
104 | 104 | if ( false === stripos( $content, 'archive.org/embed/' ) ) |
@@ -90,6 +90,9 @@ discard block |
||
90 | 90 | return $html; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $regexp |
|
95 | + */ |
|
93 | 96 | static public function regexp_entities( $regexp ) { |
94 | 97 | return preg_replace( |
95 | 98 | '/\[\^&([^\]]+)\]\*\+/', |
@@ -128,6 +131,9 @@ discard block |
||
128 | 131 | return self::dispatch( $matches ); |
129 | 132 | } |
130 | 133 | |
134 | + /** |
|
135 | + * @param string[] $matches |
|
136 | + */ |
|
131 | 137 | static function dispatch( $matches ) { |
132 | 138 | $html = preg_replace( '%�*58;//%', '://', $matches[0] ); |
133 | 139 | $attrs = self::get_attrs( $html ); |
@@ -138,6 +138,7 @@ |
||
138 | 138 | /** |
139 | 139 | * Returns a class value, `output-the-content` by default. |
140 | 140 | * Used for themes with a 'Mixed' Blog Display so we can tell which output is by default. |
141 | + * @param string $new_class |
|
141 | 142 | */ |
142 | 143 | function jetpack_the_content_customizer_class( $new_class = null ) { |
143 | 144 | static $class; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * |
99 | 99 | * @param string $content |
100 | 100 | * |
101 | - * @return mixed |
|
101 | + * @return string |
|
102 | 102 | */ |
103 | 103 | function jetpack_archiveorg_embed_to_shortcode( $content ) { |
104 | 104 | if ( false === stripos( $content, 'archive.org/embed/' ) ) |