Docs: Add a better summary, missing @since version, parameter and return descriptions to the DocBlock for _get_widget_id_base().

Introduced in [11484].

See #32246.

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


git-svn-id: http://core.svn.wordpress.org/trunk@35957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-12-17 17:27:28 +00:00
parent 94575687b9
commit 76cc768e90
2 changed files with 7 additions and 4 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-35991';
$wp_version = '4.5-alpha-35992';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -1068,11 +1068,14 @@ function the_widget( $widget, $instance = array(), $args = array() ) {
}
/**
* Private
* Retrieves the widget ID base value.
*
* @return string
* @since 2.8.0
*
* @param string $id Widget ID.
* @return string Widget ID base.
*/
function _get_widget_id_base($id) {
function _get_widget_id_base( $id ) {
return preg_replace( '/-[0-9]+$/', '', $id );
}