• Resolved M3

    (@emmtre)


    I don’t know if this is a bug or feature with the new 2.5.5 version. All row/post actions (edit, quick edit, trash, preview, purge from cache, etc) used to be displayed under the post title in the title column. But now they are always displayed in the first column. So if you display a thumbnail of the featured image as the first column the row height for each post will be very big since there is no space for the row/post actions.

    https://wordpress.org/plugins/codepress-admin-columns/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tobias Schutter

    (@tschutter)

    The actions rows are being added to the first row it finds. But we forgot to build in a check in the case that the primary column still exists, but in a different place. Like you have in your setup.

    We’ll make sure to fix this in the next patch by checking for the primary column first.

    If you like to fix it yourself you can replace the following code in codepress-admin-columns.php (for v2.5.5 only):

    public function set_primary_column( $default ) {
    	if ( $storage_model = $this->get_current_storage_model() ) {
    		$default = key( $storage_model->get_columns() );
    	}
    
    	return $default;
    }

    with

    public function set_primary_column( $default ) {
    	if ( $storage_model = $this->get_current_storage_model() ) {
    		if ( ! $storage_model->get_column_by_name( $default ) ) {
    			$default = key( $storage_model->get_columns() );
    		}
    	}
    
    	return $default;
    }

    That should do the trick!

    Thread Starter M3

    (@emmtre)

    Many thanx! Superb support and quick respons as always!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Row/post actions’ is closed to new replies.