1
0
Fork 0
mirror of https://github.com/WordPress/WordPress.git synced 2025-12-08 05:15:15 +08:00

Compare commits

...

3 commits

Author SHA1 Message Date
Sergey Biryukov
b924099da8 Docs: Improve description for wp_insert_post().
Follow-up to [6379], [8669].

Props rutujaparamane2004.
See #64224.
Built from https://develop.svn.wordpress.org/trunk@61275


git-svn-id: http://core.svn.wordpress.org/trunk@60587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-20 19:29:34 +00:00
Peter Wilson
e7d59738ba Docs: Detail 6.9.0 changes for esc_url_raw() and sanitize_url().
Duplicates the `@since 6.9.0` annotation on `esc_url()` to the two wrapper functions affected by the change.

Props peterwilsoncc, westonruter.
Fixes #52886.

Built from https://develop.svn.wordpress.org/trunk@61273


git-svn-id: http://core.svn.wordpress.org/trunk@60585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-20 00:44:30 +00:00
Weston Ruter
349fda670c Twenty Twenty-Five: Remove redundant comments for conditionally-defined functions.
This also improves consistency with other themes.

Follow-up to [59146].

Fixes #64265.
See #64226.
Props hbhalodia, huzaifaalmesbah.

Built from https://develop.svn.wordpress.org/trunk@61272


git-svn-id: http://core.svn.wordpress.org/trunk@60584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-11-19 22:24:29 +00:00
4 changed files with 8 additions and 10 deletions

View file

@ -9,7 +9,6 @@
* @since Twenty Twenty-Five 1.0
*/

// Adds theme support for post formats.
if ( ! function_exists( 'twentytwentyfive_post_format_setup' ) ) :
/**
* Adds theme support for post formats.
@ -24,7 +23,6 @@ if ( ! function_exists( 'twentytwentyfive_post_format_setup' ) ) :
endif;
add_action( 'after_setup_theme', 'twentytwentyfive_post_format_setup' );

// Enqueues editor-style.css in the editors.
if ( ! function_exists( 'twentytwentyfive_editor_style' ) ) :
/**
* Enqueues editor-style.css in the editors.
@ -39,7 +37,6 @@ if ( ! function_exists( 'twentytwentyfive_editor_style' ) ) :
endif;
add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' );

// Enqueues the theme stylesheet on the front.
if ( ! function_exists( 'twentytwentyfive_enqueue_styles' ) ) :
/**
* Enqueues the theme stylesheet on the front.
@ -67,7 +64,6 @@ if ( ! function_exists( 'twentytwentyfive_enqueue_styles' ) ) :
endif;
add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' );

// Registers custom block styles.
if ( ! function_exists( 'twentytwentyfive_block_styles' ) ) :
/**
* Registers custom block styles.
@ -96,7 +92,6 @@ if ( ! function_exists( 'twentytwentyfive_block_styles' ) ) :
endif;
add_action( 'init', 'twentytwentyfive_block_styles' );

// Registers pattern categories.
if ( ! function_exists( 'twentytwentyfive_pattern_categories' ) ) :
/**
* Registers pattern categories.
@ -126,7 +121,6 @@ if ( ! function_exists( 'twentytwentyfive_pattern_categories' ) ) :
endif;
add_action( 'init', 'twentytwentyfive_pattern_categories' );

// Registers block binding sources.
if ( ! function_exists( 'twentytwentyfive_register_block_bindings' ) ) :
/**
* Registers the post format block binding source.
@ -147,7 +141,6 @@ if ( ! function_exists( 'twentytwentyfive_register_block_bindings' ) ) :
endif;
add_action( 'init', 'twentytwentyfive_register_block_bindings' );

// Registers block binding callback function for the post format name.
if ( ! function_exists( 'twentytwentyfive_format_binding' ) ) :
/**
* Callback function for the post format name block binding source.

View file

@ -4594,6 +4594,8 @@ function esc_url( $url, $protocols = null, $_context = 'display' ) {
*
* @since 2.8.0
* @since 6.1.0 Turned into an alias for sanitize_url().
* @since 6.9.0 Prepends `https://` to the URL if it does not already contain a scheme
* and the first item in `$protocols` is 'https'.
*
* @see sanitize_url()
*
@ -4612,6 +4614,8 @@ function esc_url_raw( $url, $protocols = null ) {
* @since 2.3.1
* @since 2.8.0 Deprecated in favor of esc_url_raw().
* @since 5.9.0 Restored (un-deprecated).
* @since 6.9.0 Prepends `https://` to the URL if it does not already contain a scheme
* and the first item in `$protocols` is 'https'.
*
* @see esc_url()
*

View file

@ -4435,9 +4435,10 @@ function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) {
}

/**
* Inserts or update a post.
* Inserts or updates a post in the database.
*
* If the $postarr parameter has 'ID' set to a value, then post will be updated.
* If the `$postarr` parameter contains an 'ID', the corresponding post will be updated.
* If not, a new post will be created using the values provided.
*
* You can set the post date manually, by setting the values for 'post_date'
* and 'post_date_gmt' keys. You can close the comments or open the comments by

View file

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.0-alpha-61271';
$wp_version = '7.0-alpha-61275';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.