Making WordPress.org

Ticket #3839: 3839.diff

File 3839.diff, 2.9 KB (added by sippis, 6 years ago)
  • wordcamp.org/public_html/wp-content/plugins/wcpt/css/applications/admin.css

    diff --git wordcamp.org/public_html/wp-content/plugins/wcpt/css/applications/admin.css wordcamp.org/public_html/wp-content/plugins/wcpt/css/applications/admin.css
    index 2bd529463..d1d50a6d7 100644
    span.swag-needed-icon { 
    1414
    1515#post-body input[type=text] {
    1616    width: 50%;
    17 }
    18  No newline at end of file
     17}
     18
     19#wcpt_log .widefat th p:first-of-type {
     20                margin-top: 0;
     21}
     22
     23#wcpt_log .widefat th p:last-of-type {
     24                margin-bottom: 0;
     25}
     26
     27#wcpt_log .widefat td p,
     28#wcpt_log .widefat th p {
     29                color: #777;
     30}
     31
     32#wcpt_log .widefat tr.note td,
     33#wcpt_log .widefat tr.note th {
     34                vertical-align:top;
     35}
     36
     37#wcpt_log .widefat tr.note td p,
     38#wcpt_log .widefat tr.note th p {
     39                color: #222;
     40}
  • wordcamp.org/public_html/wp-content/plugins/wcpt/views/common/metabox-log.php

    diff --git wordcamp.org/public_html/wp-content/plugins/wcpt/views/common/metabox-log.php wordcamp.org/public_html/wp-content/plugins/wcpt/views/common/metabox-log.php
    index 4f85e8361..3ed5a62b5 100644
     
    1414                <?php if ( $entries ) : ?>
    1515
    1616                        <?php foreach ( $entries as $entry ) : ?>
    17                                 <tr>
    18                                         <th><?php echo esc_html( date( 'Y-m-d h:ia', $entry['timestamp'] ) );          ?></th>
    19                                         <th><?php echo esc_html( ucwords( str_replace( '_', ' ', $entry['type'] ) ) ); ?></th>
    20                                         <th><?php echo esc_html( $entry['user_display_name'] );                        ?></th>
    21                                         <th><?php echo wp_kses(  $entry['message'], wp_kses_allowed_html( 'data') );   ?></th>
     17                                <tr class="<?php echo esc_attr( str_replace( '_', '-', $entry['type'] ) ) ?>">
     18                                        <th><p><?php echo esc_html( date( 'Y-m-d h:ia', $entry['timestamp'] ) );                                ?></p></th>
     19                                        <th><p><?php echo esc_html( ucwords( str_replace( '_', ' ', $entry['type'] ) ) );                       ?></p></th>
     20                                        <th><p><?php echo esc_html( $entry['user_display_name'] );                                              ?></p></th>
     21                                        <th><?php echo wpautop( wp_kses( $entry['message'], wp_kses_allowed_html( 'data') ) );  ?></th>
    2222                                </tr>
    2323                        <?php endforeach; ?>
    2424
  • wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php

    diff --git wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php
    index ff8861e33..401268039 100644
    abstract class Event_Admin { 
    518518
    519519                check_admin_referer( 'wcpt_notes', 'wcpt_notes_nonce' );
    520520
    521                 $new_note_message = sanitize_text_field( wp_unslash( $_POST['wcpt_new_note'] ) );
     521                $new_note_message = sanitize_textarea_field( wp_unslash( $_POST['wcpt_new_note'] ) );
    522522
    523523                if ( empty( $new_note_message ) ) {
    524524                        return;