Changeset 11527
- Timestamp:
- 02/06/2022 02:41:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-user-notes.php
r10655 r11527 22 22 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 23 23 24 add_action( 'bbp_post_request', array( $this, 'add_user_note_request' ), 0 ); // Low priority to get below bbp_edit_user_handler() 24 add_action( 'bbp_post_request', array( $this, 'add_user_note_request' ), 0 ); // Low priority to get below bbp_edit_user_handler(). 25 25 add_action( 'bbp_get_request', array( $this, 'delete_user_note_request' ) ); 26 26 … … 88 88 * Saves a note to a users meta data. 89 89 * 90 * @param int $user_id The User ID.90 * @param int $user_id The user ID. 91 91 * @param string $note_text The note text to add. 92 92 * @param int $post_id The support thread this text is related to. Optional. … … 210 210 * Retrieves all notes for a particular user. 211 211 * 212 * @param int $user_idUser ID. Defaults to the current post author.213 * @param bool $display_add_note_form Whether to show the Add New Note form. 212 * @param int $user_id User ID. Defaults to the current post author. 213 * @param bool $display_add_note_form Whether to show the Add New Note form. Default true. 214 214 * @return array { 215 215 * Array of user notes. … … 256 256 $note_meta = array( 257 257 'author' => sprintf( 258 /* translators: 1: user note author's display name, 2: link to post, 3: date, 4: time*/258 /* translators: 1: User note author's display name, 2: Link to post, 3: Date, 4: Time. */ 259 259 __( 'By %1$s on <a href="%2$s">%3$s at %4$s</a>', 'wporg-forums' ), 260 260 sprintf( '<a href="%s">%s</a>', … … 263 263 ), 264 264 esc_url( $post_permalink ), 265 /* translators: localized date format, see https://www.php.net/date */265 /* translators: Localized date format, see https://www.php.net/date */ 266 266 mysql2date( __( 'F j, Y', 'wporg-forums' ), $note->date ), 267 /* translators: localized time format, see https://www.php.net/date */267 /* translators: Localized time format, see https://www.php.net/date */ 268 268 mysql2date( __( 'g:i a', 'wporg-forums' ), $note->date ) 269 269 ) … … 341 341 * in the note adding/editing form with the current post ID and permalink. 342 342 * 343 * @param int $user_idUser ID. Default 0.344 * @param bool $display_add_note_form Whether to show the add new note form. Default true.343 * @param int $user_id User ID. Default 0. 344 * @param bool $display_add_note_form Whether to show the Add New Note form. Default true. 345 345 * @return string User notes output. 346 346 */ … … 479 479 esc_attr( $post_id ), 480 480 esc_html( 481 /* translators: %d: user notes count*/481 /* translators: %d: User notes count. */ 482 482 sprintf( __( 'User Notes (%d)', 'wporg-forums' ), 483 483 $this->get_user_notes( $user_id )->count
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)