From 8fd68ed6ea8675443413e20b94559e0b8e29a522 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 17 Dec 2015 17:26:28 +0000 Subject: [PATCH] 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 --- src/wp-includes/widgets.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index 9589d18b36..848249170a 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -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 ); }