Plugin Directory

Changeset 1809226


Ignore:
Timestamp:
01/25/2018 10:53:23 AM (8 years ago)
Author:
livehelpnow
Message:

Fix notices during plugin deactivation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • livehelpnow-helpdesk/trunk/src/class/Plugin.php

    r1809225 r1809226  
    135135        ]);
    136136
    137         foreach ( $chats as $chat ) {
     137        foreach ( $chats->posts as $chat ) {
    138138            delete_post_meta( $chat->ID, 'chat_widget_id' );
    139139            delete_post_meta( $chat->ID, 'chat_options' );
     
    148148        ]);
    149149
    150         foreach ( $posts as $post ) {
     150        foreach ( $posts->posts as $post ) {
    151151            delete_post_meta( $post->ID, 'chat_display' );
    152152            delete_post_meta( $post->ID, 'chat_hide' );
Note: See TracChangeset for help on using the changeset viewer.