mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Add doc blocks to functions that are missing them.
If the function has no need for `@param` or `@return`, do an archeaological dig to find `@since`. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32672 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -114,6 +114,9 @@ function list_core_update( $update ) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.7.0
|
||||
*/
|
||||
function dismissed_updates() {
|
||||
$dismissed = get_core_updates( array( 'dismissed' => true, 'available' => false ) );
|
||||
if ( $dismissed ) {
|
||||
@@ -305,6 +308,9 @@ function list_plugin_updates() {
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.9.0
|
||||
*/
|
||||
function list_theme_updates() {
|
||||
$themes = get_theme_updates();
|
||||
if ( empty( $themes ) ) {
|
||||
@@ -353,6 +359,9 @@ function list_theme_updates() {
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 3.7.0
|
||||
*/
|
||||
function list_translation_updates() {
|
||||
$updates = wp_get_translation_updates();
|
||||
if ( ! $updates ) {
|
||||
@@ -457,6 +466,9 @@ function do_core_upgrade( $reinstall = false ) {
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.7.0
|
||||
*/
|
||||
function do_dismiss_core_update() {
|
||||
$version = isset( $_POST['version'] )? $_POST['version'] : false;
|
||||
$locale = isset( $_POST['locale'] )? $_POST['locale'] : 'en_US';
|
||||
@@ -468,6 +480,9 @@ function do_dismiss_core_update() {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.7.0
|
||||
*/
|
||||
function do_undismiss_core_update() {
|
||||
$version = isset( $_POST['version'] )? $_POST['version'] : false;
|
||||
$locale = isset( $_POST['locale'] )? $_POST['locale'] : 'en_US';
|
||||
|
||||
Reference in New Issue
Block a user