Dreamweaver vs sublime FTP

I don't mind paying for a good editor when it serves its purpose. I've tested quite a few, including php nusphere on windows. On MAc I have Sublime but I find the lack of develpment frustrating when some basic features like FTP are still limited to 10 sites !!

 

So I renewed my adobe cloud subscription and am currently tryin to get alon gwith dreamweaver, my old friend. It has a few things I can't find though :

  • comment code from shortcut (on sublime antislash did the job perfectly on css and php)
  • remember project opend files

n the other sied, dreamweaver has a very good free specific wordpress code hinting addon : https://creative.adobe.com/addons/products/392#.U47gwZR_unY

WordPress media library : display image size

I found with great disapointment that my new mac book does not always display image sizes in finder, little goodie that windows does perfectly. Well I don't exactly like the mac/ pc debate and turned to wordpress media library with a little code snippet that displays  a new column with image dimensions, found on the great stackexchange. Good candidate for basic wordpress extension.

add_filter('manage_upload_columns', 'size_column_register');

function size_column_register($columns) {

    $columns['dimensions'] = 'Dimensions';

    return $columns;
}

add_action('manage_media_custom_column', 'size_column_display', 10, 2);

function size_column_display($column_name, $post_id) {

    if( 'dimensions' != $column_name || !wp_attachment_is_image($post_id))
        return;

    list($url, $width, $height) = wp_get_attachment_image_src($post_id, 'full');

    echo esc_html("{$width}×{$height}");
}