mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00: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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user