| @@ -125,5 +125,24 @@ | ||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | return ''; |
| 128 | 128 | } |
| 129 | + | |
| 130 | + /** | |
| 131 | + * Remove content within wp:query blocks. | |
| 132 | + * | |
| 133 | + * @uses jetpack_og_remove_query_blocks | |
| 134 | + * | |
| 135 | + * @since 14.9 | |
| 136 | + * | |
| 137 | + * @param string $content Post content. | |
| 138 | + * | |
| 139 | + * @return string Post content stripped from wp:query blocks. | |
| 140 | + */ | |
| 141 | + public static function remove_query_blocks( $content ) { | |
| 142 | + if ( ! function_exists( 'jetpack_og_remove_query_blocks' ) ) { | |
| 143 | + return $content; | |
| 144 | + } | |
| 145 | + | |
| 146 | + return jetpack_og_remove_query_blocks( $content ); | |
| 147 | + } | |
| 129 | 148 | } |