Plugin Directory

Changeset 1431486


Ignore:
Timestamp:
06/06/2016 02:47:28 PM (10 years ago)
Author:
zerotop
Message:

tagging version 1.0.0

Location:
your-tables/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • your-tables/trunk/admin/class-your-tables-menus.php

    r1431155 r1431486  
    3838                $capa = 'your_tables_cap_admin';
    3939            } // another capability is needed for our own base tables
    40             add_submenu_page( 'your-tables-menu', $row->label_multiple_items, $row->label_multiple_items, $capa, 'your-tables-table-' . $row->name, array(
     40            add_submenu_page( 'your-tables-menu', htmlspecialchars($row->label_multiple_items, ENT_QUOTES, 'UTF-8'), htmlspecialchars($row->label_multiple_items, ENT_QUOTES, 'UTF-8'), $capa, 'your-tables-table-' . $row->name, array(
    4141                $admin,
    4242                $row->name
  • your-tables/trunk/includes/class-your-tables-view.php

    r1431155 r1431486  
    7373                    $order_by =  ' order by ' . sanitize_sql_orderby($tableRow->order_by) ;
    7474                }
    75                 $valuerows = $wpdb->get_results(
    76                     $wpdb->prepare( 'select ' . implode( ',', $fields ) . ' from ' . $table . $order_by, null )
    77                 );
     75                $valuerows = $wpdb->get_results( 'select ' . implode( ',', $fields ) . ' from ' . $table . $order_by );
    7876                echo '</thead><tbody id="the-list">';
    7977                foreach ( $valuerows as $valuerow ) {
     
    8482                            $display_value = $transToLabels[ $field ][ $valuerow->$field ];
    8583                        }
    86                         if ( $dateFormats[ $field ] && $valuerow->$field ) {
     84                        if ( isset($dateFormats[ $field ]) && $dateFormats[ $field ] && $valuerow->$field ) {
    8785                            $myDt          = date_create_from_format( 'Y-m-d H:i:s', $valuerow->$field );
    8886                            $display_value = $myDt->format( $this->ConvertDateJavascriptToPhp( $dateFormats[ $field ] ) );
     
    9189                            }
    9290                        }
    93                         if ( $dateFormats[ $field ] && ! $valuerow->$field ) {
     91                        if ( isset($dateFormats[ $field ]) && $dateFormats[ $field ] && ! $valuerow->$field ) {
    9492                            $display_value = '';
    9593                        }
Note: See TracChangeset for help on using the changeset viewer.