Support » Fixing WordPress » How to manipulate core file from functions.php

  • Kevin Daniels

    (@kevindaniels)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to manipulate core file from functions.php’ is closed to new replies.