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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35992 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-12-17 17:26:28 +00:00
parent d8174f6046
commit 8fd68ed6ea

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 );
}