Some wp-admin folder file deleted when Wordpress upgrade2019 Community Moderator Election Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Moderator Election Q&A - QuestionnaireRemoving the “Your backup folder MIGHT be visible to the public” Message Generated by the WP-DBManager Plugin500 error after updateDo extra plugin files get deleted during an upgrade?Prevent wordpress from updating language filesUnder which circumstances is the .maintenance file not deleted?Can't update database after wordpress update from 3.8.1 to 4.4.1Theme update deleted my custom pageManually updating Wordpress filesUpdating modified templatesBlank Wordpress admin/dashboard (7 updates pending)

Writing Thesis: Copying from published papers

Complexity of many constant time steps with occasional logarithmic steps

Who can trigger ship-wide alerts in Star Trek?

What was the last x86 CPU that did not have the x87 floating-point unit built in?

Was credit for the black hole image misattributed?

How does modal jazz use chord progressions?

Autumning in love

Direct Experience of Meditation

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

What can I do if my MacBook isn’t charging but already ran out?

Do working physicists consider Newtonian mechanics to be "falsified"?

How to say that you spent the night with someone, you were only sleeping and nothing else?

Why does tar appear to skip file contents when output file is /dev/null?

Statistical model of ligand substitution

If I can make up priors, why can't I make up posteriors?

Can a monk deflect thrown melee weapons?

Jazz greats knew nothing of modes. Why are they used to improvise on standards?

Can a zero nonce be safely used with AES-GCM if the key is random and never used again?

Using "nakedly" instead of "with nothing on"

What do I do if technical issues prevent me from filing my return on time?

How do I automatically answer y in bash script?

Slither Like a Snake

How should I respond to a player wanting to catch a sword between their hands?

What is the order of Mitzvot in Rambam's Sefer Hamitzvot?



Some wp-admin folder file deleted when Wordpress upgrade



2019 Community Moderator Election
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Moderator Election Q&A - QuestionnaireRemoving the “Your backup folder MIGHT be visible to the public” Message Generated by the WP-DBManager Plugin500 error after updateDo extra plugin files get deleted during an upgrade?Prevent wordpress from updating language filesUnder which circumstances is the .maintenance file not deleted?Can't update database after wordpress update from 3.8.1 to 4.4.1Theme update deleted my custom pageManually updating Wordpress filesUpdating modified templatesBlank Wordpress admin/dashboard (7 updates pending)



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.










share|improve this question
























  • What kind of "custom files"? Have you modified WordPress core?

    – Krzysiek Dróżdż
    Apr 2 at 5:54











  • @KrzysiekDróżdż, we create some custom file ie. custom contact us form report from admin

    – Soundararajan m
    Apr 2 at 5:57











  • And have you put these files in wp-admin directory?

    – Krzysiek Dróżdż
    Apr 2 at 6:01











  • @KrzysiekDróżdż, yes

    – Soundararajan m
    Apr 2 at 6:02











  • @Soundararajanm don't put any custom files in wp-admin or wp-includes directories. Create a site-based plugin for this. Please follow this guide for creating plugin : codex.wordpress.org/Writing_a_Plugin

    – Serkan Algur
    Apr 2 at 6:07

















1















We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.










share|improve this question
























  • What kind of "custom files"? Have you modified WordPress core?

    – Krzysiek Dróżdż
    Apr 2 at 5:54











  • @KrzysiekDróżdż, we create some custom file ie. custom contact us form report from admin

    – Soundararajan m
    Apr 2 at 5:57











  • And have you put these files in wp-admin directory?

    – Krzysiek Dróżdż
    Apr 2 at 6:01











  • @KrzysiekDróżdż, yes

    – Soundararajan m
    Apr 2 at 6:02











  • @Soundararajanm don't put any custom files in wp-admin or wp-includes directories. Create a site-based plugin for this. Please follow this guide for creating plugin : codex.wordpress.org/Writing_a_Plugin

    – Serkan Algur
    Apr 2 at 6:07













1












1








1








We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.










share|improve this question
















We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.







updates






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 2 at 11:13









fuxia

93.3k13186367




93.3k13186367










asked Apr 2 at 5:44









Soundararajan mSoundararajan m

61




61












  • What kind of "custom files"? Have you modified WordPress core?

    – Krzysiek Dróżdż
    Apr 2 at 5:54











  • @KrzysiekDróżdż, we create some custom file ie. custom contact us form report from admin

    – Soundararajan m
    Apr 2 at 5:57











  • And have you put these files in wp-admin directory?

    – Krzysiek Dróżdż
    Apr 2 at 6:01











  • @KrzysiekDróżdż, yes

    – Soundararajan m
    Apr 2 at 6:02











  • @Soundararajanm don't put any custom files in wp-admin or wp-includes directories. Create a site-based plugin for this. Please follow this guide for creating plugin : codex.wordpress.org/Writing_a_Plugin

    – Serkan Algur
    Apr 2 at 6:07

















  • What kind of "custom files"? Have you modified WordPress core?

    – Krzysiek Dróżdż
    Apr 2 at 5:54











  • @KrzysiekDróżdż, we create some custom file ie. custom contact us form report from admin

    – Soundararajan m
    Apr 2 at 5:57











  • And have you put these files in wp-admin directory?

    – Krzysiek Dróżdż
    Apr 2 at 6:01











  • @KrzysiekDróżdż, yes

    – Soundararajan m
    Apr 2 at 6:02











  • @Soundararajanm don't put any custom files in wp-admin or wp-includes directories. Create a site-based plugin for this. Please follow this guide for creating plugin : codex.wordpress.org/Writing_a_Plugin

    – Serkan Algur
    Apr 2 at 6:07
















What kind of "custom files"? Have you modified WordPress core?

– Krzysiek Dróżdż
Apr 2 at 5:54





What kind of "custom files"? Have you modified WordPress core?

– Krzysiek Dróżdż
Apr 2 at 5:54













@KrzysiekDróżdż, we create some custom file ie. custom contact us form report from admin

– Soundararajan m
Apr 2 at 5:57





@KrzysiekDróżdż, we create some custom file ie. custom contact us form report from admin

– Soundararajan m
Apr 2 at 5:57













And have you put these files in wp-admin directory?

– Krzysiek Dróżdż
Apr 2 at 6:01





And have you put these files in wp-admin directory?

– Krzysiek Dróżdż
Apr 2 at 6:01













@KrzysiekDróżdż, yes

– Soundararajan m
Apr 2 at 6:02





@KrzysiekDróżdż, yes

– Soundararajan m
Apr 2 at 6:02













@Soundararajanm don't put any custom files in wp-admin or wp-includes directories. Create a site-based plugin for this. Please follow this guide for creating plugin : codex.wordpress.org/Writing_a_Plugin

– Serkan Algur
Apr 2 at 6:07





@Soundararajanm don't put any custom files in wp-admin or wp-includes directories. Create a site-based plugin for this. Please follow this guide for creating plugin : codex.wordpress.org/Writing_a_Plugin

– Serkan Algur
Apr 2 at 6:07










1 Answer
1






active

oldest

votes


















6














Both wp-includes and wp-admin folders contain core files of WordPress. You should never modify any of them, because it is crucial for WP to be able to change these folders during updates.



Almost the same is true for all WP files placed in root folder - wp-config.php is the only file that WP won’t overwrite for sure.



All your custom code should be placed in wp-content folder. But... To be more precise - the theme files should go into wp-content/themes and they should only define how the site looks, and all other functions should be coded as plugins and placed in wp-content/plugins.



And yes - if you modify any of core directories/files, then you’ll face this problem of overwriting after every update of WP.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "110"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f333190%2fsome-wp-admin-folder-file-deleted-when-wordpress-upgrade%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    Both wp-includes and wp-admin folders contain core files of WordPress. You should never modify any of them, because it is crucial for WP to be able to change these folders during updates.



    Almost the same is true for all WP files placed in root folder - wp-config.php is the only file that WP won’t overwrite for sure.



    All your custom code should be placed in wp-content folder. But... To be more precise - the theme files should go into wp-content/themes and they should only define how the site looks, and all other functions should be coded as plugins and placed in wp-content/plugins.



    And yes - if you modify any of core directories/files, then you’ll face this problem of overwriting after every update of WP.






    share|improve this answer



























      6














      Both wp-includes and wp-admin folders contain core files of WordPress. You should never modify any of them, because it is crucial for WP to be able to change these folders during updates.



      Almost the same is true for all WP files placed in root folder - wp-config.php is the only file that WP won’t overwrite for sure.



      All your custom code should be placed in wp-content folder. But... To be more precise - the theme files should go into wp-content/themes and they should only define how the site looks, and all other functions should be coded as plugins and placed in wp-content/plugins.



      And yes - if you modify any of core directories/files, then you’ll face this problem of overwriting after every update of WP.






      share|improve this answer

























        6












        6








        6







        Both wp-includes and wp-admin folders contain core files of WordPress. You should never modify any of them, because it is crucial for WP to be able to change these folders during updates.



        Almost the same is true for all WP files placed in root folder - wp-config.php is the only file that WP won’t overwrite for sure.



        All your custom code should be placed in wp-content folder. But... To be more precise - the theme files should go into wp-content/themes and they should only define how the site looks, and all other functions should be coded as plugins and placed in wp-content/plugins.



        And yes - if you modify any of core directories/files, then you’ll face this problem of overwriting after every update of WP.






        share|improve this answer













        Both wp-includes and wp-admin folders contain core files of WordPress. You should never modify any of them, because it is crucial for WP to be able to change these folders during updates.



        Almost the same is true for all WP files placed in root folder - wp-config.php is the only file that WP won’t overwrite for sure.



        All your custom code should be placed in wp-content folder. But... To be more precise - the theme files should go into wp-content/themes and they should only define how the site looks, and all other functions should be coded as plugins and placed in wp-content/plugins.



        And yes - if you modify any of core directories/files, then you’ll face this problem of overwriting after every update of WP.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 2 at 6:12









        Krzysiek DróżdżKrzysiek Dróżdż

        18.6k73349




        18.6k73349



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to WordPress Development Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f333190%2fsome-wp-admin-folder-file-deleted-when-wordpress-upgrade%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

            Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

            Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High