How do I modify line 352 of media.php inside wp-includes folder from functions.php (so it doesn’t get over-written upon new releases)
the line is:
$s_y = floor( ($orig_h - $crop_h) / 2 );
I want it to stay:
$s_y = floor( ($orig_h - $crop_h) / 4 );
this basically makes it so a hard crop will use the area slightly above the center so if the image is portrait oriented and of people their heads wont get cut off
- The topic ‘How to manipulate core file from functions.php’ is closed to new replies.