mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
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:
parent
d8174f6046
commit
8fd68ed6ea
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user