@@ -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 ); |
@@ -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/' ) ) |