Making WordPress.org

Changeset 11296


Ignore:
Timestamp:
10/25/2021 06:52:44 AM (4 years ago)
Author:
dd32
Message:

Helpscout: Add Forum Notes & Plugins/Theme sidebars to reduce the clicks needed to get pertinent details.

Location:
sites/trunk/api.wordpress.org/public_html/dotorg/helpscout
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/profile.php

    r10957 r11296  
    6767
    6868    if ( $user ) {
    69         $slack_user = $wpdb->get_row( $sql = $wpdb->prepare(
     69        $slack_user = $wpdb->get_row( $wpdb->prepare(
    7070            'SELECT * FROM slack_users WHERE user_id = %d',
    7171            $user->ID
    7272        ) );
    7373    } else {
    74         $slack_user = $wpdb->get_row( $sql = $wpdb->prepare(
     74        $slack_user = $wpdb->get_row( $wpdb->prepare(
    7575            'SELECT * FROM slack_users WHERE profiledata LIKE %s',
    7676            '%' . $wpdb->esc_like( '"email":"' . $m[1] . '"' ) . '%',
     
    9090
    9191// response to HS is just HTML to display in the sidebar
    92 $response = array( 'html' => $html );
    93 
    94 echo json_encode( $response );
     92echo json_encode( array( 'html' => $html ) );
Note: See TracChangeset for help on using the changeset viewer.