wp core update 6.6
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
/**
|
||||
* Renders the `core/categories` block on server.
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param array $attributes The block attributes.
|
||||
*
|
||||
* @return string Returns the categories list/dropdown markup.
|
||||
@@ -63,6 +65,8 @@ function render_block_core_categories( $attributes ) {
|
||||
/**
|
||||
* Generates the inline script for a categories dropdown field.
|
||||
*
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param string $dropdown_id ID of the dropdown field.
|
||||
*
|
||||
* @return string Returns the dropdown onChange redirection script.
|
||||
@@ -87,6 +91,8 @@ function build_dropdown_script_block_core_categories( $dropdown_id ) {
|
||||
|
||||
/**
|
||||
* Registers the `core/categories` block on server.
|
||||
*
|
||||
* @since 5.0.0
|
||||
*/
|
||||
function register_block_core_categories() {
|
||||
register_block_type_from_metadata(
|
||||
|
||||
Reference in New Issue
Block a user