Make WordPress Core


Ignore:
Timestamp:
05/03/2024 05:23:42 AM (9 months ago)
Author:
isabel_brison
Message:

Editor: Fix coding standards and move deprecated function to correct file.

Follow-up to [58074], formats docblocks correctly and moves wp_render_elements_support to the deprecated file.

Props aaronrobertshaw, isabel_brison, mukesh27, spacedmonkey.
See #60681.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r57909 r58090  
    63016301    }
    63026302}
     6303
     6304/**
     6305 * Updates the block content with elements class names.
     6306 *
     6307 * @deprecated 6.6.0 Generation of element class name is handled via `render_block_data` filter.
     6308 *
     6309 * @since 5.8.0
     6310 * @since 6.4.0 Added support for button and heading element styling.
     6311 * @access private
     6312 *
     6313 * @param string $block_content Rendered block content.
     6314 * @param array  $block         Block object.
     6315 * @return string Filtered block content.
     6316 */
     6317function wp_render_elements_support( $block_content, $block ) {
     6318    _deprecated_function( __FUNCTION__, '6.6.0', 'wp_render_elements_class_name' );
     6319    return $block_content;
     6320}
Note: See TracChangeset for help on using the changeset viewer.