Skip to content

Commit 80f1c8f

Browse files
committed
Deprecation notice for html split and version
1 parent ac417f0 commit 80f1c8f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/wp-includes/formatting.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,19 @@ public function extract_raw_token() {
639639
* Retrieves the regular expression for an HTML element.
640640
*
641641
* @since 4.4.0
642-
* @deprecated {WP_VERSION} Use the HTML API instead.
642+
* @deprecated 6.9.0 Use the HTML API instead.
643643
*
644644
* @return string The regular expression.
645645
*/
646646
function get_html_split_regex() {
647647
static $regex;
648648

649+
_deprecated_function(
650+
__FUNCTION__,
651+
'6.9.0',
652+
'Use the HTML API instead.'
653+
);
654+
649655
if ( ! isset( $regex ) ) {
650656
// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
651657
$comments =

0 commit comments

Comments
 (0)