Make WordPress Core


Ignore:
Timestamp:
12/17/2015 05:26:28 PM (9 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r35991 r35992  
    10691069
    10701070/**
    1071  * Private
    1072  *
    1073  * @return string
    1074  */
    1075 function _get_widget_id_base($id) {
     1071 * Retrieves the widget ID base value.
     1072 *
     1073 * @since 2.8.0
     1074 *
     1075 * @param string $id Widget ID.
     1076 * @return string Widget ID base.
     1077 */
     1078function _get_widget_id_base( $id ) {
    10761079    return preg_replace( '/-[0-9]+$/', '', $id );
    10771080}
Note: See TracChangeset for help on using the changeset viewer.