Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @loganless: Which WordPress version?

    Also, did you make sure you edited the correct file in the correct location/folder?

    My fix is based on an English install of WordPress, and I’m not familiar with the structure of files in an Italian (or another language) install, and not sure if that might have affect anything.

    Maybe other members can confirm whether my fix works for them.

    @loganless: what version of wordpress & flamingo are you running?

    @jamiefehr (and anyone else): can you confirm whether my code above fixed your problem?

    EDIT: My code above fixed the problem indicated in this thread, on a site running the WP version and Flamingo version I mentioned previously.

    I’m not sure why this bug exists or why the plug-in hasn’t been updated in so long, but here is the fix:

    NOTE: This was performed on the latest WordPress v4.2.2, with Flamingo Version 1.2 installed.

    File to fix: class-inbound-messages-list-table.php
    File location: /wp-content/plugins/flamingo/admin/includes/

    First section to fix:

    CHANGE THIS:

    if ( ! empty( $_REQUEST['post_status'] ) ) {
    			if ( $_REQUEST['post_status'] == 'trash' ) {
    				$args['post_status'] = 'trash';
    				$this->is_trash = true;
    			} elseif ( $_REQUEST['post_status'] == 'spam' ) {
    				$args['post_status'] = Flamingo_Inbound_Message::spam_status;
    				$this->is_spam = true;
    			}
    		}

    TO THIS:

    if ( ! empty( $_REQUEST['post_status'] ) ) {
    			if ( $_REQUEST['post_status'] == 'trash' ) {
    				$args['post_status'] = 'trash';
    			} elseif ( $_REQUEST['post_status'] == 'spam' ) {
    				$args['post_status'] = Flamingo_Inbound_Message::spam_status;
    			}
    		}

    Second section to fix (in the same file):

    FIND THIS:

    function get_bulk_actions() {
    		$actions = array();

    ADD THE FOLLOWING CODE TO CHANGE TO:

    function get_bulk_actions() {
    
    		if ( ! empty( $_REQUEST['post_status'] ) ) {
    			if ( $_REQUEST['post_status'] == 'trash' ) {
    				$is_trash = true;
    			} elseif ( $_REQUEST['post_status'] == 'spam' ) {
    				$is_spam = true;
    			}
    		}
    
    		$actions = array();
Viewing 3 replies - 1 through 3 (of 3 total)