Making WordPress.org

Changeset 5656


Ignore:
Timestamp:
07/12/2017 02:30:42 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Add missing public keywords in class-user-notes.php.

File:
1 edited

Legend:

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

    r5654 r5656  
    3434     * Registers scripts and styles.
    3535     */
    36     function enqueue_scripts() {
     36    public function enqueue_scripts() {
    3737        if ( ! current_user_can( 'moderate' ) ) {
    3838            return;
     
    4747     * @param string $action Requested action.
    4848     */
    49     function add_user_note( $action = '' ) {
     49    public function add_user_note( $action = '' ) {
    5050        if ( 'wporg_bbp_add_user_note' !== $action || ! current_user_can( 'moderate' ) ) {
    5151            return;
     
    124124     * @param string $action Requested action.
    125125     */
    126     function delete_user_note( $action = '' ) {
     126    public function delete_user_note( $action = '' ) {
    127127        if ( 'wporg_bbp_delete_user_note' !== $action || ! current_user_can( 'keep_gate' ) ) {
    128128            return;
     
    174174     * @return array Array of user notes.
    175175     */
    176     function get_user_notes( $user_id = 0 ) {
     176    public function get_user_notes( $user_id = 0 ) {
    177177        if ( ! $user_id ) {
    178178            $user_id = get_the_author_meta( 'ID' );
     
    197197     * Adds toggle link for notes to the author area of a post.
    198198     */
    199     function add_user_notes_toggle_link() {
     199    public function add_user_notes_toggle_link() {
    200200        if ( ! current_user_can( 'moderate' ) ) {
    201201            return;
     
    232232     * @return string Post permalink or user profile URL.
    233233     */
    234     function get_user_note_post_permalink( $post_id = 0, $user_id = 0, $site_id = 0 ) {
     234    public function get_user_note_post_permalink( $post_id = 0, $user_id = 0, $site_id = 0 ) {
    235235        switch_to_blog( $site_id );
    236236
     
    257257     * @param int $user_id User ID. Defaults to the current post author.
    258258     */
    259     function display_user_notes( $user_id = 0 ) {
     259    public function display_user_notes( $user_id = 0 ) {
    260260        $note_id    = isset( $_GET['note_id'] ) ? (int) $_GET['note_id'] : 0;
    261261        $user_notes = $this->get_user_notes( $user_id );
     
    345345     * @param int $user_id User ID. Defaults to the current post author.
    346346     */
    347     function display_note_form( $user_id = 0 ) {
     347    public function display_note_form( $user_id = 0 ) {
    348348        if ( ! $user_id ) {
    349349            $user_id = get_the_author_meta( 'ID' );
     
    392392     * in topics or replies.
    393393     */
    394     function display_user_notes_in_content() {
     394    public function display_user_notes_in_content() {
    395395        if ( ! current_user_can( 'moderate' ) ) {
    396396            return;
     
    421421     * Displays existing notes and the form for adding a new note in user profile.
    422422     */
    423     function display_user_notes_in_profile() {
     423    public function display_user_notes_in_profile() {
    424424        if ( ! current_user_can( 'moderate' ) ) {
    425425            return;
Note: See TracChangeset for help on using the changeset viewer.