From 76cc768e90392fcbb0eb42c3dd79e3d1b76d3c0e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 17 Dec 2015 17:27: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. Built from https://develop.svn.wordpress.org/trunk@35992 git-svn-id: http://core.svn.wordpress.org/trunk@35957 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/widgets.php | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 05e7adcf6a..52c6339ce8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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. diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 9589d18b36..848249170a 100644 --- a/wp-includes/widgets.php +++ b/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 ); }