Making WordPress.org

Changeset 5713


Ignore:
Timestamp:
07/24/2017 11:19:20 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Support Forums, User Notes: Set default value for $user_id in User_Notes::get_user_notes_html(), for consistency with ::get_user_notes().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-user-notes.php

    r5712 r5713  
    295295     * in the note adding/editing form with the current post ID and permalink.
    296296     *
    297      * @param int $user_id User ID. Defaults to the current post author.
     297     * @param int $user_id User ID. Default 0.
    298298     * @return string User notes output.
    299299     */
    300     public function get_user_notes_html( $user_id ) {
     300    public function get_user_notes_html( $user_id = 0 ) {
    301301        $user_notes = $this->get_user_notes( $user_id )->html;
    302302
Note: See TracChangeset for help on using the changeset viewer.