• I am trying to modify the wp-login.php file. I can’t change permissions to write or rename this file using filezilla, any ideas?

    Hosted on 1and1

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    If I may ask, why do you want to mess around with the core file?

    As the adage goes, don’t modify core files. Modifictions can cause:
    security risks,
    performance degradation,
    broken plugins/themes, etc.

    Thread Starter billc851

    (@billc851)

    The reason is I want to change the cookie expiration time. The default is 10 days.. I want to have password protected pages, but I don’t want the page to say open for that long. Next user can go right in without using password, because cookie hasn’t expired.

    You can change that in wp-logon page.

    @bill

    You can also tweak the server php cookie expiration date, as it matches the wp ones.

    Anyways if for an advertising campaign, like working with large agencies, they will change that delay don’t worry (most have domains especially for that, and makes, if checked from your site, track it for at least 30 days more). Hence the name of tracking cookie.

    For the rest, this is something I do in general for pro clients, not here.

    Feel free to ask if you have more questions,

    Moderator t-p

    (@t-p)

    In addition to the likely side-effects I listed above, your customization will be overwritten when you next update the WP.

    There has to be some other way of accomplishing it without modifying a core file.

    May be someone else can chime in and help you out.

    Meanwhile, search Google, and the WordPress plugin directory

    @bill and tara

    Also depends how you call WP data and what is the need,

    Sometimes a good hook is better than a full tweak, like between calling a long shot php slow mysql query, or calling the new wp_query with many arrays. In fact the latter is faster in all ways.

    Also, wp_query can now call practically all there is in mysql so, and prepend it, so in terms of performance if code is fully rewritten for a given site, performance can easily go up to +40% for same resources in cpu / ram.
    Thanks to updates in new php version, and WP code that sticks on that too.
    I don’t mention the new rest api, it’s about to be rock solid too.

    Thread Starter billc851

    (@billc851)

    I realize all the potential problem with editing wp-logon.php especially updates over writing the file, however I still don’t know why I can’t change permissions on this file. Is it something the hosting site has prevented?

    PS, I did find a plugin that will change the cookie time,”protection post logout button” it works. But my curiosity still has not been solved on file permissions.

    Moderator t-p

    (@t-p)

    WordPress does not prevent you from changing the file permissions.

    So, you may want to discuss this issue with your hosting provider ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘changing file permissions’ is closed to new replies.