mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +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. 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:
parent
94575687b9
commit
76cc768e90
@ -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.
|
||||
|
@ -1068,9 +1068,12 @@ 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 ) {
|
||||
return preg_replace( '/-[0-9]+$/', '', $id );
|
||||
|
Loading…
Reference in New Issue
Block a user