Wired code in file media.php (2 posts)

  1. s0what
    Posted 6 years ago #


    Every time I upgrade to latest version I have to remove following code from wp-includes/media.php
    <br style="clear: both" /> at line 775

    If I don't remove it, I got a large gap after first image line in gallery.
    Is this a WP or my Theme bug?
    How can I fix this with plugin, so I don't have to edit include files on each upgrade?

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    It's your theme, I think. Whilst I'm not too keen on the way in which the native gallery is added to posts/pages, it can be dealt with via your theme's functions.php file and your own stylesheet.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.