Some wp-admin folder file deleted when Wordpress upgrade Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsRemoving 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)
Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?
Understanding p-Values using an example
Monty Hall Problem-Probability Paradox
How to force a browser when connecting to a specific domain to be https only using only the client machine?
What would you call this weird metallic apparatus that allows you to lift people?
I can't produce songs
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
Positioning dot before text in math mode
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
Why is it faster to reheat something than it is to cook it?
Project Euler #1 in C++
Co-worker has annoying ringtone
Asymptotics question
Why is std::move not [[nodiscard]] in C++20?
Tannaka duality for semisimple groups
AppleTVs create a chatty alternate WiFi network
Putting class ranking in CV, but against dept guidelines
Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?
Is it dangerous to install hacking tools on my private linux machine?
What is the "studentd" process?
Universal covering space of the real projective line?
RSA find public exponent
How would you say "es muy psicólogo"?
What to do with repeated rejections for phd position
Some wp-admin folder file deleted when Wordpress upgrade
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsRemoving 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;
We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.
updates
add a comment |
We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.
updates
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
add a comment |
We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.
updates
We upgrading Wordpress then some custom files deleted from wp-admin folder. but theme/template file not deleted.
updates
updates
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 2 at 6:12
Krzysiek Dróżdż♦Krzysiek Dróżdż
18.6k73349
18.6k73349
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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