Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #12120


Ignore:
Timestamp:
03/22/2014 12:58:02 PM (11 years ago)
Author:
SergeyBiryukov
Comment:

Related: #15311, #21295.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12120

    • Property Keywords has-patch needs-testing added; media thumbnail removed
    • Property Version changed from 2.9.1 to
  • Ticket #12120 – Description

    initial v4  
    88
    99========
    10 
     10{{{
    1111function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
    1212
     
    1515$force = apply_filters('image_resize_dimensions_force', $orig_w, $orig_h, $max_w, $max_h);
    1616$dims = image_resize_dimensions($orig_w, $orig_h, $max_w, $max_h, $crop, $force);
    17 
     17}}}
    1818========
    19 
     19{{{
    2020function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = false, $force = false) {
    2121...
     
    2424        if ( $new_w >= $orig_w && $new_h >= $orig_h && !$force )
    2525                return false;
     26}}}