Improve the @param docs for src/includes/theme.php and src/includes/update.php.

See #30224.


git-svn-id: https://develop.svn.wordpress.org/trunk@30672 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-11-30 22:43:27 +00:00
parent 4de850c8ff
commit 6bb2a4ce36
2 changed files with 7 additions and 6 deletions

View File

@@ -871,7 +871,7 @@ function validate_current_theme() {
*
* @since 3.1.0
*
* @return array Theme modifications.
* @return array|null Theme modifications.
*/
function get_theme_mods() {
$theme_slug = get_option( 'stylesheet' );
@@ -1364,7 +1364,7 @@ body.custom-background { <?php echo trim( $style ); ?> }
*
* @since 3.0.0
*
* @param mixed $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
* @param array|string $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
* Defaults to 'editor-style.css'
*/
function add_editor_style( $stylesheet = 'editor-style.css' ) {
@@ -1700,7 +1700,7 @@ function get_theme_support( $feature ) {
* @since 3.0.0
* @see add_theme_support()
* @param string $feature the feature being added
* @return bool Whether feature was removed.
* @return null|bool Whether feature was removed.
*/
function remove_theme_support( $feature ) {
// Blacklist: for internal registrations not used directly by themes.
@@ -1715,6 +1715,7 @@ function remove_theme_support( $feature ) {
*
* @access private
* @since 3.1.0
* @param string $feature
*/
function _remove_theme_support( $feature ) {
global $_wp_theme_features;