Make WordPress Core


Ignore:
Timestamp:
05/29/2015 03:42:40 PM (9 years ago)
Author:
wonderboymusic
Message:

Add @static* annotations where they are missing.
Initialize all static vars that are not, most to null.

See #32444.

File:
1 edited

Legend:

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

    r32643 r32650  
    606606 * @since 2.5.0
    607607 *
     608 * @staticvar string $update_nonce
     609 *
    608610 * @param array $entry
    609611 * @param int   $count
     
    611613 */
    612614function _list_meta_row( $entry, &$count ) {
    613     static $update_nonce = false;
     615    static $update_nonce = '';
    614616
    615617    if ( is_protected_meta( $entry['meta_key'], 'post' ) )
    616618        return '';
    617619
    618     if ( !$update_nonce )
     620    if ( ! $update_nonce )
    619621        $update_nonce = wp_create_nonce( 'add-meta' );
    620622
     
    19921994     *     remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) );
    19931995     *
     1996     * @static
     1997     *
    19941998     * @param string $hook_suffix The current admin page.
    19951999     */
     
    20482052     * @since 3.3.0
    20492053     *
     2054     * @static
     2055     *
    20502056     * @param string $pointer_id The pointer ID.
    20512057     * @param string $selector The HTML elements, on which the pointer should be attached.
     
    20952101    public static function pointer_wp360_revisions() {}
    20962102
     2103    /**
     2104     * @static
     2105     */
    20972106    public static function pointer_wp360_locks() {
    20982107        if ( ! is_multi_author() ) {
     
    21092118    }
    21102119
     2120    /**
     2121     * @static
     2122     */
    21112123    public static function pointer_wp390_widgets() {
    21122124        if ( ! current_theme_supports( 'widgets' ) ) {
     
    21652177     *
    21662178     * @since 3.3.0
     2179     *
     2180     * @static
    21672181     *
    21682182     * @param int $user_id User ID.
Note: See TracChangeset for help on using the changeset viewer.