summaryrefslogtreecommitdiffstats
path: root/wp-includes/deprecated.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/deprecated.php')
-rw-r--r--wp-includes/deprecated.php74
1 files changed, 42 insertions, 32 deletions
diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php
index 4de4a93..8084cdd 100644
--- a/wp-includes/deprecated.php
+++ b/wp-includes/deprecated.php
@@ -705,7 +705,7 @@ function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = '
$show_option_none = '';
if ( $optionnone )
- $show_option_none = __('None');
+ $show_option_none = _x( 'None', 'Categories dropdown (show_option_none parameter)' );
$vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',
'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
@@ -996,11 +996,11 @@ function get_links($category = -1, $before = '', $after = '<br />', $between = '
$output .= '<a href="' . $the_link . '"' . $rel . $title . $target. '>';
- if ( $row->link_image != null && $show_images ) {
+ if ( '' != $row->link_image && $show_images ) {
if ( str_contains( $row->link_image, 'http' ) )
- $output .= "<img src=\"$row->link_image\" $alt $title />";
+ $output .= '<img src="' . $row->link_image . '"' . $alt . $title . ' />';
else // If it's a relative path.
- $output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />";
+ $output .= '<img src="' . get_option('siteurl') . $row->link_image . '"' . $alt . $title . ' />';
} else {
$output .= $name;
}
@@ -2634,7 +2634,7 @@ function get_user_metavalues($ids) {
/**
* Sanitize every user field.
*
- * If the context is 'raw', then the user object or array will get minimal santization of the int fields.
+ * If the context is 'raw', then the user object or array will get minimal sanitization of the int fields.
*
* @since 2.3.0
* @deprecated 3.3.0
@@ -6249,18 +6249,9 @@ function the_block_template_skip_link() {
*
* @since 6.4.0
* @deprecated 6.5.0
- *
- * @global WP_Scripts $wp_scripts
*/
function block_core_query_ensure_interactivity_dependency() {
_deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' );
- global $wp_scripts;
- if (
- isset( $wp_scripts->registered['wp-block-query-view'] ) &&
- ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-query-view']->deps, true )
- ) {
- $wp_scripts->registered['wp-block-query-view']->deps[] = 'wp-interactivity';
- }
}
/**
@@ -6268,18 +6259,9 @@ function block_core_query_ensure_interactivity_dependency() {
*
* @since 6.4.0
* @deprecated 6.5.0
- *
- * @global WP_Scripts $wp_scripts
*/
function block_core_file_ensure_interactivity_dependency() {
_deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' );
- global $wp_scripts;
- if (
- isset( $wp_scripts->registered['wp-block-file-view'] ) &&
- ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-file-view']->deps, true )
- ) {
- $wp_scripts->registered['wp-block-file-view']->deps[] = 'wp-interactivity';
- }
}
/**
@@ -6287,16 +6269,44 @@ function block_core_file_ensure_interactivity_dependency() {
*
* @since 6.4.0
* @deprecated 6.5.0
- *
- * @global WP_Scripts $wp_scripts
*/
function block_core_image_ensure_interactivity_dependency() {
_deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' );
- global $wp_scripts;
- if (
- isset( $wp_scripts->registered['wp-block-image-view'] ) &&
- ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-image-view']->deps, true )
- ) {
- $wp_scripts->registered['wp-block-image-view']->deps[] = 'wp-interactivity';
- }
+}
+
+/**
+ * Updates the block content with elements class names.
+ *
+ * @deprecated 6.6.0 Generation of element class name is handled via `render_block_data` filter.
+ *
+ * @since 5.8.0
+ * @since 6.4.0 Added support for button and heading element styling.
+ * @access private
+ *
+ * @param string $block_content Rendered block content.
+ * @param array $block Block object.
+ * @return string Filtered block content.
+ */
+function wp_render_elements_support( $block_content, $block ) {
+ _deprecated_function( __FUNCTION__, '6.6.0', 'wp_render_elements_class_name' );
+ return $block_content;
+}
+
+/**
+ * Processes the directives on the rendered HTML of the interactive blocks.
+ *
+ * This processes only one root interactive block at a time because the
+ * rendered HTML of that block contains the rendered HTML of all its inner
+ * blocks, including any interactive block. It does so by ignoring all the
+ * interactive inner blocks until the root interactive block is processed.
+ *
+ * @since 6.5.0
+ * @deprecated 6.6.0
+ *
+ * @param array $parsed_block The parsed block.
+ * @return array The same parsed block.
+ */
+function wp_interactivity_process_directives_of_interactive_blocks( array $parsed_block ): array {
+ _deprecated_function( __FUNCTION__, '6.6.0' );
+ return $parsed_block;
}