• I try to add

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    in the line 439 and 440 on wp-includes/formatting.php but it does not work.
    I would like to validate in html the site and it seems that wordpress add some </ p> which should not add and then I retrieve pages with 4 to 10 errors.
    I’ve read that the function of adding <p> </ p> <br> in car is called wpautop.
    Thank you.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Do not edit core files!

    The lines you cite should be added to your theme’s functions.php or implemented in a plugin.

    Thread Starter Centopino

    (@centopino)

    Thanky you for the reply but i try and it does not seem to change anything.
    I add

    
    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    immediately afterwards <?php
    Right at the beginning of the page function.php of my theme linee 2 and 3.
    Solutions?
    Thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please show the file you’ve edited. Use gist.github.com or pastebin.com and paste a link here.

    Thread Starter Centopino

    (@centopino)

    The file i have modified is located under the folder themes/mythema/funcions.php.
    Thank you

    Thread Starter Centopino

    (@centopino)

    I still have not succeeded ??

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Post your functions.php file (using gist.github.com or wpbin.io)

    Thread Starter Centopino

    (@centopino)

    I post it two posts above, click on “funcions.php”.
    Thanks

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    hmmm… line 5 and below looks like you’ve been hacked.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    By the way, that file is named “functions.php”, not “funcions.php”, right?

    Thread Starter Centopino

    (@centopino)

    Yes functions.php

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    OK, you have much bigger problems than wpautop.

    Get a fresh cup of coffee, take a deep breath and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are a couple.

    Thread Starter Centopino

    (@centopino)

    coffee was helpful: Thank you,
    maybe I did it, but the guides on the internet seem to address you all to ask for money to companies that do this job.
    In my case I have casually noticed a database table that indicates all the wordpressed or modified or added wordpress files.
    After 5 hours of searching I found it and in a few minutes I recovered and deleted the files that did not have to exist, I also restored the file functions and another of my theme that the malicious code recursed me every time in auto. Summarizing i deleted 3-4 files and reset them as many.
    After verifying that the virus is no longer present I changed my password and wordpress username, i changed the wordpress’s codes in config.php .
    I took the virus very probably because I did not update the php.
    One thing I still have to do:
    How do I change my database password ??

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’d change the DB password through phpmyadmin or cpanel

    https://www.inmotionhosting.com/support/website/databases/reset-database-password

    Thread Starter Centopino

    (@centopino)

    Absurdently, it seems that you need to fill out a form in block letter in 2017 on mysql aruba. Tomorrow I try to call them.
    ps: I used 3 antivirus, the file that specifies which core files have been modified is most likely created by one of the 3 antivirus plugin.

    • This reply was modified 7 years, 3 months ago by Centopino.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Don’t use more than one security plugin — they’ll fight and probably cause problems.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘I would like to remove wpautop from wordpress’ is closed to new replies.