• Resolved jmkt

    (@jmkt)


    For the last 2 or 3 websites I have built I get a warning the first time I scan about “The Modified Version on your WordPress system”

    On “viewing file differences” it shows that Filename:wp-config-sample.php has been mofified from:

    /** Sets up WordPress vars and included files. */
    80	require_once(ABSPATH . 'wp-settings.php');

    to

    /** Sets up WordPress vars and included files. */
    80	require_once(ABSPATH . 'wp-settings.php');
    81	 	81
     	 	82	/**
     	 	83	* Include tweaks requested by hosting providers. You can safely
     	 	84	* remove either the file or comment out the lines below to get
     	 	85	* to a vanilla state.
     	 	86	*/
     	 	87	if (file_exists(ABSPATH . 'hosting_provider_filters.php')) {
     	 	88	   include('hosting_provider_filters.php');
     	 	89	}

    The first couple of times I reverted to the original version but now wonder why it is happening and whether I should do anything different.

    I’d be grateful for any advice.

    https://ww.wp.xz.cn/plugins/wordfence/

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’d delete that file. Its not needed as far as I know.

    tim

    Plugin Author Mark Maunder

    (@mmaunder)

    http://codex.ww.wp.xz.cn/Editing_wp-config.php

    Remove the file. WordPress wants you to rename that file to wp-config.php when you install WP. It sounds like the file was copied instead of being renamed.

    Regards,

    Mark.

    Thread Starter jmkt

    (@jmkt)

    Thanks for the advice.

    Not sure though if you mean I should totally delete wp-config-sample.php or simpley revert it to its original.

    I have the same issue as this and the same question whether you guys mean deleting the wp-config-sample.php file the same as reverting to its original form?

    I am having the same issue…delete the wp-config-sample.php file? Or what?

    Also, what is “hosting_provider_filters.php”

    I got the same thing and I have not done any modification to the core file. What exactly should I do (what file to delete and how)?

    I have the same problem. Should I:

    – just delete this part (see below);
    – delete the entire file; or
    – replace it with the original (if so, where is this located how do I go about it?).

    _____________________________________________________________________

    /** Sets up WordPress vars and included files. */

    require_once(ABSPATH . ‘wp-settings.php’);

    +

    +/**

    + * Include tweaks requested by hosting providers. You can safely

    + * remove either the file or comment out the lines below to get

    + * to a vanilla state.

    + */

    +if (file_exists(ABSPATH . ‘hosting_provider_filters.php’)) {

    + include(‘hosting_provider_filters.php’);

    +}

    _____________________________________________________________________

    Thanks!

    Plugin Author WFMattR

    (@wfmattr)

    It should be safe to remove the wp-config-sample.php file from the server, but just make sure the file name matches exactly, so you are only removing the sample file.

    It shouldn’t ever be used, but I’d usually download a copy first, just in case the site was set up incorrectly by a designer/developer with strange habits. πŸ™‚

    hosting_provider_filters.php may be added to your site’s folder by some hosting companies, but I haven’t seen any that are using it.

    If anyone is still having trouble with this, can you create a new post? It will help us keep track of open issues since this one is already marked “resolved”. Thanks!

    Thanks WFMattR! πŸ™‚

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘The Modified Version on your WordPress system’ is closed to new replies.