mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48104 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -824,7 +824,7 @@ function switch_theme( $stylesheet ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks that current theme files 'index.php' and 'style.css' exists.
|
||||
* Checks that the current theme has 'index.php' and 'style.css' files.
|
||||
*
|
||||
* Does not initially check the default theme, which is the fallback and should always exist.
|
||||
* But if it doesn't exist, it'll fall back to the latest core default theme that does exist.
|
||||
@@ -1454,7 +1454,8 @@ function get_custom_header() {
|
||||
*
|
||||
* @global array $_wp_default_headers
|
||||
*
|
||||
* @param array $headers Array of headers keyed by a string id. The ids point to arrays containing 'url', 'thumbnail_url', and 'description' keys.
|
||||
* @param array $headers Array of headers keyed by a string ID. The IDs point to arrays
|
||||
* containing 'url', 'thumbnail_url', and 'description' keys.
|
||||
*/
|
||||
function register_default_headers( $headers ) {
|
||||
global $_wp_default_headers;
|
||||
@@ -2844,8 +2845,7 @@ function remove_theme_support( $feature ) {
|
||||
* @global Custom_Background $custom_background
|
||||
*
|
||||
* @param string $feature
|
||||
*
|
||||
* @return bool Returns true when support is removed, false when the feature was not registered.
|
||||
* @return bool True if support was removed, false if the feature was not registered.
|
||||
*/
|
||||
function _remove_theme_support( $feature ) {
|
||||
global $_wp_theme_features;
|
||||
@@ -2892,6 +2892,7 @@ function _remove_theme_support( $feature ) {
|
||||
}
|
||||
|
||||
unset( $_wp_theme_features[ $feature ] );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3005,7 +3006,7 @@ function require_if_theme_supports( $feature, $include ) {
|
||||
* @since 4.3.0 Also removes `header_image_data`.
|
||||
* @since 4.5.0 Also removes custom logo theme mods.
|
||||
*
|
||||
* @param int $id The attachment id.
|
||||
* @param int $id The attachment ID.
|
||||
*/
|
||||
function _delete_attachment_theme_mod( $id ) {
|
||||
$attachment_image = wp_get_attachment_url( $id );
|
||||
|
||||
Reference in New Issue
Block a user