Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using Wordpress for my website. I was working on CPANEL yesterday and was browsing public-html/wp-admin folder under the File manager.

There were many files and I accidentally deleted the admin-header.php file.

Where can I get an another copy of that file so that I can upload it to the same folder from where it got deleted?

share|improve this question

migrated from webmasters.stackexchange.com Aug 18 '11 at 14:06

This question came from our site for pro webmasters.

4  
...wordpress.org? Voting to close, unless you can somehow salvage this. –  Su' Aug 18 '11 at 9:41

3 Answers 3

up vote 2 down vote accepted

Couldn't see a download link on the Github page for downloading single files(i don't use it so maybe i'm just not seeing it).

Alternatively you can download single files for WordPress from trac.

Example:
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/admin-header.php

Scroll to the bottom of the page(or hit the End key),
look for the text "Download in other formats:"
click the "Original Format" link below that text to download the single file.

Can't hurt to have options right.. ;)

share|improve this answer

Get it from here

share|improve this answer

Well I didn't do this type of things but you can do one thing

go to wordpress.org -> download -> release archives

download your current version in local host

extract it and then go to wordpress -> wp-admin -> admin-header.php

or maybe wordpress -> wp-admin -> includes -> admin-header.php

and upload it to server

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.