Skip to content
Browse files

Added files

  • Loading branch information...
1 parent a18aabb commit d2ac446d47650a518946f548d2118f8237f61bf0 @nicoladj77 committed
Showing with 35,440 additions and 17 deletions.
  1. +2 −17 .gitignore
  2. +3 −0 .htaccess
  3. +17 −0 index.php
  4. +385 −0 license.txt
  5. +108 −0 readme.html
  6. +8,750 −0 wordpress_old_css.sql
  7. +102 −0 wp-activate.php
  8. +168 −0 wp-admin/about.php
  9. +71 −0 wp-admin/admin-ajax.php
  10. +47 −0 wp-admin/admin-footer.php
  11. +15 −0 wp-admin/admin-functions.php
  12. +140 −0 wp-admin/admin-header.php
  13. +31 −0 wp-admin/admin-post.php
  14. +230 −0 wp-admin/admin.php
  15. +68 −0 wp-admin/async-upload.php
  16. +294 −0 wp-admin/comment.php
  17. +161 −0 wp-admin/credits.php
  18. +1 −0 wp-admin/css/colors-classic.css
  19. +2,498 −0 wp-admin/css/colors-classic.dev.css
  20. +1 −0 wp-admin/css/colors-fresh.css
  21. +2,086 −0 wp-admin/css/colors-fresh.dev.css
  22. +1 −0 wp-admin/css/customize-controls-rtl.css
  23. +86 −0 wp-admin/css/customize-controls-rtl.dev.css
  24. +1 −0 wp-admin/css/customize-controls.css
  25. +537 −0 wp-admin/css/customize-controls.dev.css
  26. +52 −0 wp-admin/css/farbtastic.css
  27. +1 −0 wp-admin/css/ie-rtl.css
  28. +239 −0 wp-admin/css/ie-rtl.dev.css
  29. +1 −0 wp-admin/css/ie.css
  30. +573 −0 wp-admin/css/ie.dev.css
  31. +1 −0 wp-admin/css/install.css
  32. +268 −0 wp-admin/css/install.dev.css
  33. +1 −0 wp-admin/css/media-rtl.css
  34. +71 −0 wp-admin/css/media-rtl.dev.css
  35. +1 −0 wp-admin/css/media.css
  36. +329 −0 wp-admin/css/media.dev.css
  37. +1 −0 wp-admin/css/wp-admin-rtl.css
  38. +2,532 −0 wp-admin/css/wp-admin-rtl.dev.css
  39. +1 −0 wp-admin/css/wp-admin.css
  40. +8,221 −0 wp-admin/css/wp-admin.dev.css
  41. +432 −0 wp-admin/custom-background.php
  42. +1,052 −0 wp-admin/custom-header.php
  43. +203 −0 wp-admin/customize.php
  44. +255 −0 wp-admin/edit-comments.php
  45. +385 −0 wp-admin/edit-form-advanced.php
  46. +146 −0 wp-admin/edit-form-comment.php
  47. +139 −0 wp-admin/edit-link-form.php
  48. +93 −0 wp-admin/edit-tag-form.php
  49. +418 −0 wp-admin/edit-tags.php
  50. +290 −0 wp-admin/edit.php
  51. +211 −0 wp-admin/export.php
  52. +57 −0 wp-admin/freedoms.php
  53. +51 −0 wp-admin/gears-manifest.php
  54. BIN wp-admin/images/align-center.png
  55. BIN wp-admin/images/align-left.png
  56. BIN wp-admin/images/align-none.png
  57. BIN wp-admin/images/align-right.png
  58. BIN wp-admin/images/archive-link.png
  59. BIN wp-admin/images/arrows-dark-vs.png
  60. BIN wp-admin/images/arrows-dark.png
  61. BIN wp-admin/images/arrows-vs.png
  62. BIN wp-admin/images/arrows.png
  63. BIN wp-admin/images/blue-grad.png
  64. BIN wp-admin/images/bubble_bg-rtl.gif
  65. BIN wp-admin/images/bubble_bg.gif
  66. BIN wp-admin/images/button-grad-active.png
  67. BIN wp-admin/images/button-grad.png
  68. BIN wp-admin/images/comment-grey-bubble.png
  69. BIN wp-admin/images/date-button.gif
  70. BIN wp-admin/images/ed-bg-vs.gif
  71. BIN wp-admin/images/ed-bg.gif
  72. BIN wp-admin/images/fade-butt.png
  73. BIN wp-admin/images/fav-arrow-rtl.gif
  74. BIN wp-admin/images/fav-arrow.gif
  75. BIN wp-admin/images/fav-vs.png
  76. BIN wp-admin/images/fav.png
  77. BIN wp-admin/images/generic.png
  78. BIN wp-admin/images/gray-grad.png
  79. BIN wp-admin/images/icons32-2x.png
  80. BIN wp-admin/images/icons32-vs-2x.png
  81. BIN wp-admin/images/icons32-vs.png
  82. BIN wp-admin/images/icons32.png
  83. BIN wp-admin/images/imgedit-icons.png
  84. BIN wp-admin/images/list.png
  85. BIN wp-admin/images/loading-publish.gif
  86. BIN wp-admin/images/loading.gif
  87. BIN wp-admin/images/logo-ghost.png
  88. BIN wp-admin/images/logo.gif
  89. BIN wp-admin/images/marker.png
  90. BIN wp-admin/images/mask.png
  91. BIN wp-admin/images/media-button-image.gif
  92. BIN wp-admin/images/media-button-music.gif
  93. BIN wp-admin/images/media-button-other.gif
  94. BIN wp-admin/images/media-button-video.gif
  95. BIN wp-admin/images/media-button.png
  96. BIN wp-admin/images/menu-2x.png
  97. BIN wp-admin/images/menu-arrow-frame-rtl.png
  98. BIN wp-admin/images/menu-arrow-frame.png
  99. BIN wp-admin/images/menu-arrows.gif
  100. BIN wp-admin/images/menu-bits-rtl-vs.gif
  101. BIN wp-admin/images/menu-bits-rtl.gif
  102. BIN wp-admin/images/menu-bits-vs.gif
  103. BIN wp-admin/images/menu-bits.gif
  104. BIN wp-admin/images/menu-dark-rtl-vs.gif
  105. BIN wp-admin/images/menu-dark-rtl.gif
  106. BIN wp-admin/images/menu-dark-vs.gif
  107. BIN wp-admin/images/menu-dark.gif
  108. BIN wp-admin/images/menu-shadow-rtl.png
  109. BIN wp-admin/images/menu-shadow.png
  110. BIN wp-admin/images/menu-vs.png
  111. BIN wp-admin/images/menu.png
  112. BIN wp-admin/images/no.png
  113. BIN wp-admin/images/press-this.png
  114. BIN wp-admin/images/required.gif
  115. BIN wp-admin/images/resize-rtl.gif
  116. BIN wp-admin/images/resize.gif
  117. BIN wp-admin/images/screen-options-toggle-vs.gif
  118. BIN wp-admin/images/screen-options-toggle.gif
  119. BIN wp-admin/images/screenshots/captions-1.png
  120. BIN wp-admin/images/screenshots/captions-2.png
  121. BIN wp-admin/images/screenshots/flex-header-1.png
  122. BIN wp-admin/images/screenshots/flex-header-2.png
  123. BIN wp-admin/images/screenshots/flex-header-3.png
  124. BIN wp-admin/images/screenshots/flex-header-media-library.png
  125. BIN wp-admin/images/screenshots/theme-customizer.png
  126. BIN wp-admin/images/screenshots/twitter-embed-1.png
  127. BIN wp-admin/images/screenshots/twitter-embed-2.png
  128. BIN wp-admin/images/se.png
  129. BIN wp-admin/images/sort.gif
  130. BIN wp-admin/images/stars-rtl.png
  131. BIN wp-admin/images/stars.png
  132. BIN wp-admin/images/toggle-arrow-rtl.gif
  133. BIN wp-admin/images/toggle-arrow.gif
  134. BIN wp-admin/images/upload-classic.png
  135. BIN wp-admin/images/upload-fresh.png
  136. BIN wp-admin/images/wheel.png
  137. BIN wp-admin/images/white-grad-active.png
  138. BIN wp-admin/images/white-grad.png
  139. BIN wp-admin/images/widgets-arrow-vs.gif
  140. BIN wp-admin/images/widgets-arrow.gif
  141. BIN wp-admin/images/wordpress-logo-2x.png
  142. BIN wp-admin/images/wordpress-logo.png
  143. BIN wp-admin/images/wp-badge-2x.png
  144. BIN wp-admin/images/wp-badge.png
  145. BIN wp-admin/images/wp-logo-vs.png
  146. BIN wp-admin/images/wp-logo.png
  147. BIN wp-admin/images/wpspin_dark.gif
  148. BIN wp-admin/images/wpspin_light.gif
  149. BIN wp-admin/images/xit.gif
  150. BIN wp-admin/images/yes.png
  151. +139 −0 wp-admin/import.php
  152. +72 −0 wp-admin/includes/admin.php
  153. +1,787 −0 wp-admin/includes/ajax-actions.php
  154. +268 −0 wp-admin/includes/bookmark.php
  155. +190 −0 wp-admin/includes/class-ftp-pure.php
  156. +250 −0 wp-admin/includes/class-ftp-sockets.php
  157. +907 −0 wp-admin/includes/class-ftp.php
Sorry, we could not display the entire diff because too many files (2,218) changed.
View
19 .gitignore
@@ -1,17 +1,2 @@
-.htaccess
-wp-*.php
-xmlrpc.php
-wp-admin/
-wp-includes/
-wp-content/uploads/
-wp-content/blogs.dir/
-wp-content/upgrade/*
-wp-content/backup-db/*
-wp-content/advanced-cache.php
-wp-content/wp-cache-config.php
-wp-content/cache/*
-wp-content/cache/supercache/*
-sitemap.xml
-sitemap.xml.gz
-readme.html
-license.txt
+
+
View
3 .htaccess
@@ -0,0 +1,3 @@
+# BEGIN WordPress
+
+# END WordPress
View
17 index.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Front to the WordPress application. This file doesn't do anything, but loads
+ * wp-blog-header.php which does and tells WordPress to load the theme.
+ *
+ * @package WordPress
+ */
+
+/**
+ * Tells WordPress to load the WordPress theme and output it.
+ *
+ * @var bool
+ */
+define('WP_USE_THEMES', true);
+
+/** Loads the WordPress Environment and Template */
+require('./wp-blog-header.php');
View
385 license.txt
@@ -0,0 +1,385 @@
+WordPress - Web publishing software
+
+Copyright 2011 by the contributors
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+This program incorporates work covered by the following copyright and
+permission notices:
+
+ b2 is (c) 2001, 2002 Michel Valdrighi - m@tidakada.com -
+ http://tidakada.com
+
+ Wherever third party code has been used, credit has been given in the code's
+ comments.
+
+ b2 is released under the GPL
+
+and
+
+ WordPress - Web publishing software
+
+ Copyright 2003-2010 by the contributors
+
+ WordPress is released under the GPL
+
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
+
+WRITTEN OFFER
+
+The source code for any program binaries or compressed scripts that are
+included with WordPress can be freely obtained at the following URL:
+
+ http://wordpress.org/download/source/
View
108 readme.html
@@ -0,0 +1,108 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>WordPress &#8250; ReadMe</title>
+ <link rel="stylesheet" href="wp-admin/css/install.css?ver=20100228" type="text/css" />
+</head>
+<body>
+<h1 id="logo">
+ <a href="http://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
+ <br /> Version 3.4.1
+</h1>
+<p style="text-align: center">Semantic Personal Publishing Platform</p>
+
+<h1>First Things First</h1>
+<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I'm proud to be a part of. Thousands of hours have gone into WordPress, and we're dedicated to making it better every day. Thank you for making it part of your world.</p>
+<p style="text-align: right">&#8212; Matt Mullenweg</p>
+
+<h1>Installation: Famous 5-minute install</h1>
+<ol>
+ <li>Unzip the package in an empty directory and upload everything.</li>
+ <li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details.
+ <ol>
+ <li>If for some reason this doesn't work, don't worry. It doesn't work on all web hosts. Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li>
+ <li>Save the file as <code>wp-config.php</code> and upload it.</li>
+ <li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser.</li>
+ </ol>
+ </li>
+ <li>Once the configuration file is set up, the installer will set up the tables needed for your blog. If there is an error, double check your <code>wp-config.php</code> file, and try again. If it fails again, please go to the <a href="http://wordpress.org/support/" title="WordPress support">support forums</a> with as much data as you can gather.</li>
+ <li><strong>If you did not enter a password, note the password given to you.</strong> If you did not provide a username, it will be <code>admin</code>.</li>
+ <li>The installer should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on 'Profile' to change the password.</li>
+</ol>
+
+<h1>Updating</h1>
+<h2>Using the Automatic Updater</h2>
+<p>If you are updating from version 2.7 or higher, you can use the automatic updater:</p>
+<ol>
+ <li>Open the <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
+ <li>You wanted more, perhaps? That's it!</li>
+</ol>
+
+<h2>Updating Manually</h2>
+<ol>
+ <li>Before you update anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</li>
+ <li>Delete your old WordPress files, saving ones you've modified.</li>
+ <li>Upload the new files.</li>
+ <li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></li>
+</ol>
+
+<h2>Theme Template Changes</h2>
+<p>If you have customized your theme templates, you may have to make some changes across major versions.</p>
+
+<h1>Migrating from other systems</h1>
+<p>WordPress can <a href="http://codex.wordpress.org/Importing_Content">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php" title="Import to WordPress">our import tools</a>.</p>
+
+<h1>System Requirements</h1>
+<ul>
+ <li><a href="http://php.net/">PHP</a> version <strong>5.2.4</strong> or higher.</li>
+ <li><a href="http://www.mysql.com/">MySQL</a> version <strong>5.0</strong> or higher.</li>
+</ul>
+
+<h2>System Recommendations</h2>
+<ul>
+ <li>The <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
+ <li>A link to <a href="http://wordpress.org/">http://wordpress.org</a> on your site.</li>
+</ul>
+
+<h1>Online Resources</h1>
+<p>If you have any questions that aren't addressed in this document, please take advantage of WordPress' numerous online resources:</p>
+<dl>
+ <dt><a href="http://codex.wordpress.org/">The WordPress Codex</a></dt>
+ <dd>The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd>
+ <dt><a href="http://wordpress.org/news/">The WordPress Blog</a></dt>
+ <dd>This is where you'll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.</dd>
+ <dt><a href="http://planet.wordpress.org/">WordPress Planet</a></dt>
+ <dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd>
+ <dt><a href="http://wordpress.org/support/">WordPress Support Forums</a></dt>
+ <dd>If you've looked everywhere and still can't find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
+ <dt><a href="http://codex.wordpress.org/IRC">WordPress <abbr title="Internet Relay Chat">IRC</abbr> Channel</a></dt>
+ <dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
+</dl>
+
+<h1><abbr title="eXtensible Markup Language">XML</abbr>-<abbr title="Remote Procedure Call">RPC</abbr> and Atom Interface</h1>
+<p>You can post to your WordPress blog with tools like <a href="http://download.live.com/writer">Windows Live Writer</a>, <a href="http://illuminex.com/ecto/">Ecto</a>, <a href="http://bloggar.com/">w.bloggar</a>, <a href="http://radio.userland.com/">Radio Userland</a> (which means you can use Radio's email-to-blog feature), <a href="http://www.newzcrawler.com/">NewzCrawler</a>, and other tools that support the blogging <abbr title="application programming interface">API</abbr>s! :) You can read more about <a href="http://codex.wordpress.org/XML-RPC_Support"><abbr>XML</abbr>-<abbr>RPC</abbr> support on the Codex</a>.</p>
+
+<h1>Post via Email</h1>
+<p>You can post from an email client! To set this up go to your &quot;Writing&quot; options screen and fill in the connection details for your secret <abbr title="Post Office Protocol version 3">POP3</abbr> account. Then you need to set up <code>wp-mail.php</code> to execute periodically to check the mailbox for new posts. You can do it with <a href="http://en.wikipedia.org/wiki/Cron">cron</a>-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your <code>wp-mail.php</code> <abbr title="Uniform Resource Locator">URL</abbr>.</p>
+<p>Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address discrete. The script will <em>delete</em> emails that are successfully posted.</p>
+
+<h1>User Roles</h1>
+<p>We introduced a very flexible roles system in version 2.0. You can <a href="http://codex.wordpress.org/Roles_and_Capabilities" title="WordPress roles and capabilities">read more about Roles and Capabilities on the Codex</a>.</p>
+
+<h1>Final Notes</h1>
+<ul>
+ <li>If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the <a href="http://wordpress.org/support/">Support Forums</a>.</li>
+ <li>WordPress has a robust plugin <abbr title="application programming interface">API</abbr> that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="http://codex.wordpress.org/Plugin_API" title="WordPress plugin API">plugin documentation in the Codex</a>. You shouldn't modify any of the core code.</li>
+</ul>
+
+<h1>Share the Love</h1>
+<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better&#8212;you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.</p>
+
+<p>WordPress is the official continuation of <a href="http://cafelog.com/">b2/caf&#233;log</a>, which came from Michel V. The work has been continued by the <a href="http://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="http://wordpress.org/donate/" title="Donate to WordPress">donating</a>.</p>
+
+<h1>License</h1>
+<p>WordPress is free software, and is released under the terms of the <abbr title="GNU General Public License">GPL</abbr> version 2 or (at your option) any later version. See <a href="license.txt">license.txt</a>.</p>
+
+</body>
+</html>
View
8,750 wordpress_old_css.sql
8,750 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
102 wp-activate.php
@@ -0,0 +1,102 @@
+<?php
+define( 'WP_INSTALLING', true );
+
+/** Sets up the WordPress Environment. */
+require( dirname(__FILE__) . '/wp-load.php' );
+
+require( './wp-blog-header.php' );
+
+if ( !is_multisite() ) {
+ wp_redirect( site_url( '/wp-login.php?action=register' ) );
+ die();
+}
+
+if ( is_object( $wp_object_cache ) )
+ $wp_object_cache->cache_enabled = false;
+
+do_action( 'activate_header' );
+
+function do_activate_header() {
+ do_action( 'activate_wp_head' );
+}
+add_action( 'wp_head', 'do_activate_header' );
+
+function wpmu_activate_stylesheet() {
+ ?>
+ <style type="text/css">
+ form { margin-top: 2em; }
+ #submit, #key { width: 90%; font-size: 24px; }
+ #language { margin-top: .5em; }
+ .error { background: #f66; }
+ span.h3 { padding: 0 8px; font-size: 1.3em; font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif; font-weight: bold; color: #333; }
+ </style>
+ <?php
+}
+add_action( 'wp_head', 'wpmu_activate_stylesheet' );
+
+get_header();
+?>
+
+<div id="content" class="widecolumn">
+ <?php if ( empty($_GET['key']) && empty($_POST['key']) ) { ?>
+
+ <h2><?php _e('Activation Key Required') ?></h2>
+ <form name="activateform" id="activateform" method="post" action="<?php echo network_site_url('wp-activate.php'); ?>">
+ <p>
+ <label for="key"><?php _e('Activation Key:') ?></label>
+ <br /><input type="text" name="key" id="key" value="" size="50" />
+ </p>
+ <p class="submit">
+ <input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e('Activate') ?>" />
+ </p>
+ </form>
+
+ <?php } else {
+
+ $key = !empty($_GET['key']) ? $_GET['key'] : $_POST['key'];
+ $result = wpmu_activate_signup($key);
+ if ( is_wp_error($result) ) {
+ if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) {
+ $signup = $result->get_error_data();
+ ?>
+ <h2><?php _e('Your account is now active!'); ?></h2>
+ <?php
+ echo '<p class="lead-in">';
+ if ( $signup->domain . $signup->path == '' ) {
+ printf( __('Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
+ } else {
+ printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
+ }
+ echo '</p>';
+ } else {
+ ?>
+ <h2><?php _e('An error occurred during the activation'); ?></h2>
+ <?php
+ echo '<p>'.$result->get_error_message().'</p>';
+ }
+ } else {
+ extract($result);
+ $url = get_blogaddress_by_id( (int) $blog_id);
+ $user = new WP_User( (int) $user_id);
+ ?>
+ <h2><?php _e('Your account is now active!'); ?></h2>
+
+ <div id="signup-welcome">
+ <p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p>
+ <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $password; ?></p>
+ </div>
+
+ <?php if ( $url != network_home_url('', 'http') ) : ?>
+ <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>'), $url, $url . 'wp-login.php' ); ?></p>
+ <?php else: ?>
+ <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?></p>
+ <?php endif;
+ }
+ }
+ ?>
+</div>
+<script type="text/javascript">
+ var key_input = document.getElementById('key');
+ key_input && key_input.focus();
+</script>
+<?php get_footer(); ?>
View
168 wp-admin/about.php
@@ -0,0 +1,168 @@
+<?php
+/**
+ * About This Version administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
+require_once( './admin.php' );
+
+$title = __( 'About' );
+
+list( $display_version ) = explode( '-', $wp_version );
+
+include( ABSPATH . 'wp-admin/admin-header.php' );
+?>
+<div class="wrap about-wrap">
+
+<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
+
+<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s is already making your website better, faster, and more attractive, just like you!' ), $display_version ); ?></div>
+
+<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
+
+<h2 class="nav-tab-wrapper">
+ <a href="about.php" class="nav-tab nav-tab-active">
+ <?php _e( 'What&#8217;s New' ); ?>
+ </a><a href="credits.php" class="nav-tab">
+ <?php _e( 'Credits' ); ?>
+ </a><a href="freedoms.php" class="nav-tab">
+ <?php _e( 'Freedoms' ); ?>
+ </a>
+</h2>
+
+<div class="changelog point-releases">
+ <h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 1 ); ?></h3>
+ <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
+ '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 21 ), '3.4.1', number_format_i18n( 21 ) ); ?>
+ <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.4.1' ); ?>
+ </p>
+</div>
+
+<div class="changelog">
+ <h3><?php _e( 'Live Theme Previews' ); ?></h3>
+
+ <div class="feature-section images-stagger-right">
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/theme-customizer.png' ) ); ?>" class="image-50" />
+ <h4><?php _e( 'Try on New Themes' ); ?></h4>
+ <p><?php _e( 'Gone are the days of rushing to update your header, background, and the like as soon as you activate a new theme. You can now customize these options <strong>before</strong> activating a new theme. Note: this feature is available for installed themes only.' ); ?></p>
+
+ <h4><?php _e( 'Customize Current Theme' ); ?></h4>
+ <p><?php _e( 'Satisfy your curiosity and try on a fresh coat of paint &mdash; you can also use the live preview mode to customize your current theme. Look for the Customize link on the Themes screen.' ); ?></p>
+ </div>
+</div>
+
+<div class="changelog">
+ <h3><?php _e( 'Custom Headers' ); ?></h3>
+
+ <div class="feature-section">
+ <h4><?php _e( 'Flexible Sizes' ); ?></h4>
+ <p><?php _e( 'You can decide for yourself how tall or wide your custom header image should be. From now on, themes will provide a recommended image size for custom headers rather than a fixed requirement. Note: this feature requires <a href="http://codex.wordpress.org/Custom_Headers">theme support</a>.' ); ?></p>
+ <div class="three-col-images">
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-1.png' ) ); ?>" class="image-30 first-feature" />
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-2.png' ) ); ?>" class="image-30" />
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-3.png' ) ); ?>" class="image-30 last-feature" />
+ </div>
+ </div>
+
+ <div class="feature-section images-stagger-right">
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-media-library.png' ) ); ?>" class="image-50" />
+ <h4><?php _e( 'Choose from Media Library' ); ?></h4>
+ <p><?php _e( 'Tired of re-uploading the same custom header image every time you check out a new theme? Now you can choose header images from your media library for easier customization.' ); ?></p>
+ </div>
+</div>
+
+<div class="changelog">
+ <h3><?php _e( 'Twitter Embeds' ); ?></h3>
+
+ <div class="feature-section images-stagger-right">
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/twitter-embed-1.png' ) ); ?>" class="image-30" />
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/twitter-embed-2.png' ) ); ?>" class="image-30" />
+ <h4><?php _e( 'Share Tweets with Style' ); ?></h4>
+ <p><?php _e( 'You can now embed individual tweets in posts. It includes action links that allow readers to reply to, retweet, and favorite the tweet without leaving your site. Just paste a tweet URL on its own line.' ); ?></p>
+ <p><?php printf( __( 'This works with URLs from some other sites, too. For more, see the Codex article on <a href="%s">Embeds</a>.' ), __( 'http://codex.wordpress.org/Embeds' ) ); ?></p>
+ </div>
+
+</div>
+
+
+<div class="changelog">
+ <h3><?php _e( 'Better Captions' ); ?></h3>
+
+ <div class="feature-section images-stagger-right">
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-1.png' ) ); ?>" class="image-30" />
+ <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-2.png' ) ); ?>" class="image-30" />
+ <h4><?php _e( 'HTML Support' ); ?></h4>
+ <p><?php _e( 'Basic HTML support has been added to the caption field in the image uploader. This allows you to add links &mdash; great for photo credits or licensing details &mdash; and basic formatting such as bold and italicized text.' ); ?></p>
+ </div>
+</div>
+
+<div class="changelog">
+ <h3><?php _e( 'Under the Hood' ); ?></h3>
+
+ <div class="feature-section three-col">
+ <div>
+ <h4><?php _e( 'Faster WP_Query' ); ?></h4>
+ <p><?php _e( 'Post queries have been optimized to improve performance, especially for sites with large databases.' ); ?></p>
+
+ <h4><?php _e( 'Faster Translations' ); ?></h4>
+ <p><?php _e( 'The number of strings loaded on the front end was greatly reduced, resulting in faster front page load times for localized installations.' ); ?> <?php _e( 'Also, better support for East Asian languages, right-to-left languages, theme translations, and more.' ); ?></p>
+ </div>
+ <div>
+ <h4><?php _e( 'Themes API' ); ?></h4>
+ <p><?php _e( 'WP_Theme, wp_get_themes(), wp_get_theme(). Faster, uses less memory, makes use of persistent caching.' ); ?></p>
+
+ <h4><?php _e( 'Custom Header and Background API' ); ?></h4>
+ <p><?php _e( 'Custom header and background API relocated into the theme support API.' ); ?></p>
+ </div>
+ <div class="last-feature">
+ <h4><?php _e( 'XML-RPC API' ); ?></h4>
+ <p><?php printf( __( 'A new <a href="%s">WordPress API</a> that supports custom content types and taxonomies, as well as dozens of other bug fixes and improvements.' ), __( 'http://codex.wordpress.org/XML-RPC_WordPress_API' ) ); ?></p>
+
+ <h4><?php _e( 'External Libraries' ); ?></h4>
+ <p><?php _e( 'jQuery, jQuery UI, TinyMCE, Plupload, PHPMailer, SimplePie, and other libraries were updated. jQuery UI Touch Punch was introduced.' ); ?></p>
+ </div>
+ </div>
+</div>
+
+<div class="return-to-dashboard">
+ <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
+ <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
+ is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
+ ?></a> |
+ <?php endif; ?>
+ <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
+ is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
+</div>
+
+</div>
+<?php
+
+include( ABSPATH . 'wp-admin/admin-footer.php' );
+
+// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
+return;
+
+_n_noop( 'Maintenance Release', 'Maintenance Releases' );
+_n_noop( 'Security Release', 'Security Releases' );
+_n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
+
+/* translators: 1: WordPress version number. */
+_n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
+ '<strong>Version %1$s</strong> addressed some security issues.' );
+
+/* translators: 1: WordPress version number, 2: plural number of bugs. */
+_n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
+ '<strong>Version %1$s</strong> addressed %2$s bugs.' );
+
+/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
+_n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
+ '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
+
+/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
+_n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
+ '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
+
+__( 'For more information, see <a href="%s">the release notes</a>.' );
View
71 wp-admin/admin-ajax.php
@@ -0,0 +1,71 @@
+<?php
+/**
+ * WordPress AJAX Process Execution.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ *
+ * @link http://codex.wordpress.org/AJAX_in_Plugins
+ */
+
+/**
+ * Executing AJAX process.
+ *
+ * @since 2.1.0
+ */
+define( 'DOING_AJAX', true );
+define( 'WP_ADMIN', true );
+
+// Require an action parameter
+if ( empty( $_REQUEST['action'] ) )
+ die( '0' );
+
+/** Load WordPress Bootstrap */
+require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
+
+/** Load WordPress Administration APIs */
+require_once( ABSPATH . 'wp-admin/includes/admin.php' );
+
+/** Load Ajax Handlers for WordPress Core */
+require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
+
+@header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
+@header( 'X-Robots-Tag: noindex' );
+
+send_nosniff_header();
+
+do_action( 'admin_init' );
+
+$core_actions_get = array(
+ 'fetch-list', 'ajax-tag-search', 'wp-compression-test', 'imgedit-preview', 'oembed-cache',
+ 'autocomplete-user', 'dashboard-widgets', 'logged-in',
+);
+
+$core_actions_post = array(
+ 'oembed-cache', 'image-editor', 'delete-comment', 'delete-tag', 'delete-link',
+ 'delete-meta', 'delete-post', 'trash-post', 'untrash-post', 'delete-page', 'dim-comment',
+ 'add-link-category', 'add-tag', 'get-tagcloud', 'get-comments', 'replyto-comment',
+ 'edit-comment', 'add-menu-item', 'add-meta', 'add-user', 'autosave', 'closed-postboxes',
+ 'hidden-columns', 'update-welcome-panel', 'menu-get-metabox', 'wp-link-ajax',
+ 'menu-locations-save', 'menu-quick-search', 'meta-box-order', 'get-permalink',
+ 'sample-permalink', 'inline-save', 'inline-save-tax', 'find_posts', 'widgets-order',
+ 'save-widget', 'set-post-thumbnail', 'date_format', 'time_format', 'wp-fullscreen-save-post',
+ 'wp-remove-post-lock', 'dismiss-wp-pointer', 'upload-attachment',
+);
+
+// Register core Ajax calls.
+if ( ! empty( $_GET['action'] ) && in_array( $_GET['action'], $core_actions_get ) )
+ add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 );
+
+if ( ! empty( $_POST['action'] ) && in_array( $_POST['action'], $core_actions_post ) )
+ add_action( 'wp_ajax_' . $_POST['action'], 'wp_ajax_' . str_replace( '-', '_', $_POST['action'] ), 1 );
+
+add_action( 'wp_ajax_nopriv_autosave', 'wp_ajax_nopriv_autosave', 1 );
+
+if ( is_user_logged_in() )
+ do_action( 'wp_ajax_' . $_REQUEST['action'] ); // Authenticated actions
+else
+ do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] ); // Non-admin actions
+
+// Default status
+die( '0' );
View
47 wp-admin/admin-footer.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * WordPress Administration Template Footer
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+// don't load directly
+if ( !defined('ABSPATH') )
+ die('-1');
+?>
+
+<div class="clear"></div></div><!-- wpbody-content -->
+<div class="clear"></div></div><!-- wpbody -->
+<div class="clear"></div></div><!-- wpcontent -->
+
+<div id="footer">
+<?php do_action( 'in_admin_footer' ); ?>
+<p id="footer-left" class="alignleft"><?php
+$upgrade = apply_filters( 'update_footer', '' );
+$footer_text = array(
+ '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>',
+);
+echo apply_filters( 'admin_footer_text', implode( ' &bull; ', $footer_text ) );
+unset( $footer_text );
+?></p>
+<p id="footer-upgrade" class="alignright"><?php echo $upgrade; ?></p>
+<div class="clear"></div>
+</div>
+<?php
+do_action('admin_footer', '');
+do_action('admin_print_footer_scripts');
+do_action("admin_footer-" . $GLOBALS['hook_suffix']);
+
+// get_site_option() won't exist when auto upgrading from <= 2.7
+if ( function_exists('get_site_option') ) {
+ if ( false === get_site_option('can_compress_scripts') )
+ compression_test();
+}
+
+?>
+
+<div class="clear"></div></div><!-- wpwrap -->
+<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
+</body>
+</html>
View
15 wp-admin/admin-functions.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * Administration Functions
+ *
+ * This file is deprecated, use 'wp-admin/includes/admin.php' instead.
+ *
+ * @deprecated 2.5
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+_deprecated_file( basename(__FILE__), '2.5', 'wp-admin/includes/admin.php' );
+
+/** WordPress Administration API: Includes all Administration functions. */
+require_once(ABSPATH . 'wp-admin/includes/admin.php');
View
140 wp-admin/admin-header.php
@@ -0,0 +1,140 @@
+<?php
+/**
+ * WordPress Administration Template Header
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
+if ( ! defined( 'WP_ADMIN' ) )
+ require_once( './admin.php' );
+
+// In case admin-header.php is included in a function.
+global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
+ $current_site, $update_title, $total_update_count, $parent_file;
+
+// Catch plugins that include admin-header.php before admin.php completes.
+if ( empty( $current_screen ) )
+ set_current_screen();
+
+get_admin_page_title();
+$title = esc_html( strip_tags( $title ) );
+
+if ( is_network_admin() )
+ $admin_title = __( 'Network Admin' );
+elseif ( is_user_admin() )
+ $admin_title = __( 'Global Dashboard' );
+else
+ $admin_title = get_bloginfo( 'name' );
+
+if ( $admin_title == $title )
+ $admin_title = sprintf( __( '%1$s &#8212; WordPress' ), $title );
+else
+ $admin_title = sprintf( __( '%1$s &lsaquo; %2$s &#8212; WordPress' ), $title, $admin_title );
+
+$admin_title = apply_filters( 'admin_title', $admin_title, $title );
+
+wp_user_settings();
+
+_wp_admin_html_begin();
+?>
+<title><?php echo $admin_title; ?></title>
+<?php
+
+wp_enqueue_style( 'colors' );
+wp_enqueue_style( 'ie' );
+wp_enqueue_script('utils');
+
+$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
+?>
+<script type="text/javascript">
+addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
+var userSettings = {
+ 'url': '<?php echo SITECOOKIEPATH; ?>',
+ 'uid': '<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>',
+ 'time':'<?php echo time() ?>'
+ },
+ ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
+ pagenow = '<?php echo $current_screen->id; ?>',
+ typenow = '<?php echo $current_screen->post_type; ?>',
+ adminpage = '<?php echo $admin_body_class; ?>',
+ thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
+ decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
+ isRtl = <?php echo (int) is_rtl(); ?>;
+</script>
+<?php
+
+do_action('admin_enqueue_scripts', $hook_suffix);
+do_action("admin_print_styles-$hook_suffix");
+do_action('admin_print_styles');
+do_action("admin_print_scripts-$hook_suffix");
+do_action('admin_print_scripts');
+do_action("admin_head-$hook_suffix");
+do_action('admin_head');
+
+if ( get_user_setting('mfold') == 'f' )
+ $admin_body_class .= ' folded';
+
+if ( is_admin_bar_showing() )
+ $admin_body_class .= ' admin-bar';
+
+if ( is_rtl() )
+ $admin_body_class .= ' rtl';
+
+$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) );
+$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
+$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
+$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
+
+if ( wp_is_mobile() )
+ $admin_body_class .= ' mobile';
+
+$admin_body_class .= ' no-customize-support';
+
+?>
+</head>
+<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
+<script type="text/javascript">
+ document.body.className = document.body.className.replace('no-js','js');
+</script>
+
+<?php
+// If the customize-loader script is enqueued, make sure the customize
+// body classes are correct as early as possible.
+if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_theme_options' ) )
+ wp_customize_support_script();
+?>
+
+<div id="wpwrap">
+<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
+<div id="wpcontent">
+
+<?php
+do_action('in_admin_header');
+?>
+
+<div id="wpbody">
+<?php
+unset($title_class, $blog_name, $total_update_count, $update_title);
+
+$current_screen->set_parentage( $parent_file );
+
+?>
+
+<div id="wpbody-content">
+<?php
+
+$current_screen->render_screen_meta();
+
+if ( is_network_admin() )
+ do_action('network_admin_notices');
+elseif ( is_user_admin() )
+ do_action('user_admin_notices');
+else
+ do_action('admin_notices');
+
+do_action('all_admin_notices');
+
+if ( $parent_file == 'options-general.php' )
+ require(ABSPATH . 'wp-admin/options-head.php');
View
31 wp-admin/admin-post.php
@@ -0,0 +1,31 @@
+<?php
+/**
+ * WordPress Administration Generic POST Handler.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** We are located in WordPress Administration Screens */
+define('WP_ADMIN', true);
+
+if ( defined('ABSPATH') )
+ require_once(ABSPATH . 'wp-load.php');
+else
+ require_once('../wp-load.php');
+
+require_once(ABSPATH . 'wp-admin/includes/admin.php');
+
+nocache_headers();
+
+do_action('admin_init');
+
+$action = 'admin_post';
+
+if ( !wp_validate_auth_cookie() )
+ $action .= '_nopriv';
+
+if ( !empty($_REQUEST['action']) )
+ $action .= '_' . $_REQUEST['action'];
+
+do_action($action);
View
230 wp-admin/admin.php
@@ -0,0 +1,230 @@
+<?php
+/**
+ * WordPress Administration Bootstrap
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/**
+ * In WordPress Administration Screens
+ *
+ * @since 2.3.2
+ */
+if ( ! defined('WP_ADMIN') )
+ define('WP_ADMIN', true);
+
+if ( ! defined('WP_NETWORK_ADMIN') )
+ define('WP_NETWORK_ADMIN', false);
+
+if ( ! defined('WP_USER_ADMIN') )
+ define('WP_USER_ADMIN', false);
+
+if ( ! WP_NETWORK_ADMIN && ! WP_USER_ADMIN ) {
+ define('WP_BLOG_ADMIN', true);
+}
+
+if ( isset($_GET['import']) && !defined('WP_LOAD_IMPORTERS') )
+ define('WP_LOAD_IMPORTERS', true);
+
+require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
+
+if ( get_option('db_upgraded') ) {
+ flush_rewrite_rules();
+ update_option( 'db_upgraded', false );
+
+ /**
+ * Runs on the next page load after successful upgrade
+ *
+ * @since 2.8
+ */
+ do_action('after_db_upgrade');
+} elseif ( get_option('db_version') != $wp_db_version && empty($_POST) ) {
+ if ( !is_multisite() ) {
+ wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
+ exit;
+ } elseif ( apply_filters( 'do_mu_upgrade', true ) ) {
+ /**
+ * On really small MU installs run the upgrader every time,
+ * else run it less often to reduce load.
+ *
+ * @since 2.8.4b
+ */
+ $c = get_blog_count();
+ if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int)( $c / 50 ) ) == 1 ) ) {
+ require_once( ABSPATH . WPINC . '/http.php' );
+ $response = wp_remote_get( admin_url( 'upgrade.php?step=1' ), array( 'timeout' => 120, 'httpversion' => '1.1' ) );
+ do_action( 'after_mu_upgrade', $response );
+ unset($response);
+ }
+ unset($c);
+ }
+}
+
+require_once(ABSPATH . 'wp-admin/includes/admin.php');
+
+auth_redirect();
+
+nocache_headers();
+
+// Schedule trash collection
+if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') )
+ wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');
+
+set_screen_options();
+
+$date_format = get_option('date_format');
+$time_format = get_option('time_format');
+
+wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'text', 'trackback', 'pingback'));
+
+wp_enqueue_script( 'common' );
+wp_enqueue_script( 'jquery-color' );
+
+$editing = false;
+
+if ( isset($_GET['page']) ) {
+ $plugin_page = stripslashes($_GET['page']);
+ $plugin_page = plugin_basename($plugin_page);
+}
+
+if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) )
+ $typenow = $_REQUEST['post_type'];
+else
+ $typenow = '';
+
+if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] ) )
+ $taxnow = $_REQUEST['taxonomy'];
+else
+ $taxnow = '';
+
+if ( WP_NETWORK_ADMIN )
+ require(ABSPATH . 'wp-admin/network/menu.php');
+elseif ( WP_USER_ADMIN )
+ require(ABSPATH . 'wp-admin/user/menu.php');
+else
+ require(ABSPATH . 'wp-admin/menu.php');
+
+if ( current_user_can( 'manage_options' ) )
+ @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) );
+
+do_action('admin_init');
+
+if ( isset($plugin_page) ) {
+ if ( !empty($typenow) )
+ $the_parent = $pagenow . '?post_type=' . $typenow;
+ else
+ $the_parent = $pagenow;
+ if ( ! $page_hook = get_plugin_page_hook($plugin_page, $the_parent) ) {
+ $page_hook = get_plugin_page_hook($plugin_page, $plugin_page);
+ // backwards compatibility for plugins using add_management_page
+ if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) {
+ // There could be plugin specific params on the URL, so we need the whole query string
+ if ( !empty($_SERVER[ 'QUERY_STRING' ]) )
+ $query_string = $_SERVER[ 'QUERY_STRING' ];
+ else
+ $query_string = 'page=' . $plugin_page;
+ wp_redirect( admin_url('tools.php?' . $query_string) );
+ exit;
+ }
+ }
+ unset($the_parent);
+}
+
+$hook_suffix = '';
+if ( isset($page_hook) )
+ $hook_suffix = $page_hook;
+else if ( isset($plugin_page) )
+ $hook_suffix = $plugin_page;
+else if ( isset($pagenow) )
+ $hook_suffix = $pagenow;
+
+set_current_screen();
+
+// Handle plugin admin pages.
+if ( isset($plugin_page) ) {
+ if ( $page_hook ) {
+ do_action('load-' . $page_hook);
+ if (! isset($_GET['noheader']))
+ require_once(ABSPATH . 'wp-admin/admin-header.php');
+
+ do_action($page_hook);
+ } else {
+ if ( validate_file($plugin_page) )
+ wp_die(__('Invalid plugin page'));
+
+ if ( !( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && !( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") && is_file(WPMU_PLUGIN_DIR . "/$plugin_page") ) )
+ wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
+
+ do_action('load-' . $plugin_page);
+
+ if ( !isset($_GET['noheader']))
+ require_once(ABSPATH . 'wp-admin/admin-header.php');
+
+ if ( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") )
+ include(WPMU_PLUGIN_DIR . "/$plugin_page");
+ else
+ include(WP_PLUGIN_DIR . "/$plugin_page");
+ }
+
+ include(ABSPATH . 'wp-admin/admin-footer.php');
+
+ exit();
+} else if (isset($_GET['import'])) {
+
+ $importer = $_GET['import'];
+
+ if ( ! current_user_can('import') )
+ wp_die(__('You are not allowed to import.'));
+
+ if ( validate_file($importer) ) {
+ wp_redirect( admin_url( 'import.php?invalid=' . $importer ) );
+ exit;
+ }
+
+ if ( ! isset($wp_importers[$importer]) || ! is_callable($wp_importers[$importer][2]) ) {
+ wp_redirect( admin_url( 'import.php?invalid=' . $importer ) );
+ exit;
+ }
+
+ $parent_file = 'tools.php';
+ $submenu_file = 'import.php';
+ $title = __('Import');
+
+ if (! isset($_GET['noheader']))
+ require_once(ABSPATH . 'wp-admin/admin-header.php');
+
+ require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
+
+ define('WP_IMPORTING', true);
+
+ if ( apply_filters( 'force_filtered_html_on_import', false ) )
+ kses_init_filters(); // Always filter imported data with kses on multisite.
+
+ call_user_func($wp_importers[$importer][2]);
+
+ include(ABSPATH . 'wp-admin/admin-footer.php');
+
+ // Make sure rules are flushed
+ flush_rewrite_rules(false);
+
+ exit();
+} else {
+ do_action("load-$pagenow");
+ // Backwards compatibility with old load-page-new.php, load-page.php,
+ // and load-categories.php actions.
+ if ( $typenow == 'page' ) {
+ if ( $pagenow == 'post-new.php' )
+ do_action( 'load-page-new.php' );
+ elseif ( $pagenow == 'post.php' )
+ do_action( 'load-page.php' );
+ } elseif ( $pagenow == 'edit-tags.php' ) {
+ if ( $taxnow == 'category' )
+ do_action( 'load-categories.php' );
+ elseif ( $taxnow == 'link_category' )
+ do_action( 'load-edit-link-categories.php' );
+ }
+}
+
+if ( !empty($_REQUEST['action']) )
+ do_action('admin_action_' . $_REQUEST['action']);
View
68 wp-admin/async-upload.php
@@ -0,0 +1,68 @@
+<?php
+/**
+ * Accepts file uploads from swfupload or other asynchronous upload methods.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+define('WP_ADMIN', true);
+
+if ( defined('ABSPATH') )
+ require_once(ABSPATH . 'wp-load.php');
+else
+ require_once('../wp-load.php');
+
+// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
+if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
+ $_COOKIE[SECURE_AUTH_COOKIE] = $_REQUEST['auth_cookie'];
+elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
+ $_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
+if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) )
+ $_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie'];
+unset($current_user);
+require_once('./admin.php');
+
+header('Content-Type: text/html; charset=' . get_option('blog_charset'));
+
+if ( !current_user_can('upload_files') )
+ wp_die(__('You do not have permission to upload files.'));
+
+// just fetch the detail form for that attachment
+if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) {
+ $post = get_post( $id );
+ if ( 'attachment' != $post->post_type )
+ wp_die( __( 'Unknown post type.' ) );
+ $post_type_object = get_post_type_object( 'attachment' );
+ if ( ! current_user_can( $post_type_object->cap->edit_post, $id ) )
+ wp_die( __( 'You are not allowed to edit this item.' ) );
+
+ if ( 2 == $_REQUEST['fetch'] ) {
+ add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
+ echo get_media_item($id, array( 'send' => false, 'delete' => true ));
+ } else {
+ add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2);
+ echo get_media_item($id);
+ }
+ exit;
+}
+
+check_admin_referer('media-form');
+
+$id = media_handle_upload('async-upload', $_REQUEST['post_id']);
+if ( is_wp_error($id) ) {
+ echo '<div class="error-div">
+ <a class="dismiss" href="#" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __('Dismiss') . '</a>
+ <strong>' . sprintf(__('&#8220;%s&#8221; has failed to upload due to an error'), esc_html($_FILES['async-upload']['name']) ) . '</strong><br />' .
+ esc_html($id->get_error_message()) . '</div>';
+ exit;
+}
+
+if ( $_REQUEST['short'] ) {
+ // short form response - attachment ID only
+ echo $id;
+} else {
+ // long form response - big chunk o html
+ $type = $_REQUEST['type'];
+ echo apply_filters("async_upload_{$type}", $id);
+}
View
294 wp-admin/comment.php
@@ -0,0 +1,294 @@
+<?php
+/**
+ * Comment Management Screen
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** Load WordPress Bootstrap */
+require_once('./admin.php');
+
+$parent_file = 'edit-comments.php';
+$submenu_file = 'edit-comments.php';
+
+wp_reset_vars( array('action') );
+
+if ( isset( $_POST['deletecomment'] ) )
+ $action = 'deletecomment';
+
+if ( 'cdc' == $action )
+ $action = 'delete';
+elseif ( 'mac' == $action )
+ $action = 'approve';
+
+if ( isset( $_GET['dt'] ) ) {
+ if ( 'spam' == $_GET['dt'] )
+ $action = 'spam';
+ elseif ( 'trash' == $_GET['dt'] )
+ $action = 'trash';
+}
+
+/**
+ * Display error message at bottom of comments.
+ *
+ * @param string $msg Error Message. Assumed to contain HTML and be sanitized.
+ */
+function comment_footer_die( $msg ) {
+ echo "<div class='wrap'><p>$msg</p></div>";
+ include('./admin-footer.php');
+ die;
+}
+
+switch( $action ) {
+
+case 'editcomment' :
+ $title = __('Edit Comment');
+
+ get_current_screen()->add_help_tab( array(
+ 'id' => 'overview',
+ 'title' => __('Overview'),
+ 'content' =>
+ '<p>' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '</p>' .
+ '<p>' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '</p>'
+ ) );
+
+ get_current_screen()->set_help_sidebar(
+ '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
+ '<p>' . __( '<a href="http://codex.wordpress.org/Administration_Screens#Comments" target="_blank">Documentation on Comments</a>' ) . '</p>' .
+ '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
+ );
+
+ wp_enqueue_script('comment');
+ require_once('./admin-header.php');
+
+ $comment_id = absint( $_GET['c'] );
+
+ if ( !$comment = get_comment( $comment_id ) )
+ comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );
+
+ if ( !current_user_can( 'edit_comment', $comment_id ) )
+ comment_footer_die( __('You are not allowed to edit this comment.') );
+
+ if ( 'trash' == $comment->comment_approved )
+ comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') );
+
+ $comment = get_comment_to_edit( $comment_id );
+
+ include('./edit-form-comment.php');
+
+ break;
+
+case 'delete' :
+case 'approve' :
+case 'trash' :
+case 'spam' :
+
+ $title = __('Moderate Comment');
+
+ $comment_id = absint( $_GET['c'] );
+
+ if ( !$comment = get_comment_to_edit( $comment_id ) ) {
+ wp_redirect( admin_url('edit-comments.php?error=1') );
+ die();
+ }
+
+ if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) {
+ wp_redirect( admin_url('edit-comments.php?error=2') );
+ die();
+ }
+
+ // No need to re-approve/re-trash/re-spam a comment.
+ if ( $action == str_replace( '1', 'approve', $comment->comment_approved ) ) {
+ wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) );
+ die();
+ }
+
+ require_once('./admin-header.php');
+
+ $formaction = $action . 'comment';
+ $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
+ $nonce_action .= $comment_id;
+
+?>
+<div class='wrap'>
+
+<div class="narrow">
+
+<?php screen_icon(); ?>
+<h2><?php echo esc_html( $title ); ?></h2>
+
+<?php
+switch ( $action ) {
+ case 'spam' :
+ $caution_msg = __('You are about to mark the following comment as spam:');
+ $button = __('Spam Comment');
+ break;
+ case 'trash' :
+ $caution_msg = __('You are about to move the following comment to the Trash:');
+ $button = __('Trash Comment');
+ break;
+ case 'delete' :
+ $caution_msg = __('You are about to delete the following comment:');
+ $button = __('Permanently Delete Comment');
+ break;
+ default :
+ $caution_msg = __('You are about to approve the following comment:');
+ $button = __('Approve Comment');
+ break;
+}
+
+if ( $comment->comment_approved != '0' ) { // if not unapproved
+ $message = '';
+ switch ( $comment->comment_approved ) {
+ case '1' :
+ $message = __('This comment is currently approved.');
+ break;
+ case 'spam' :
+ $message = __('This comment is currently marked as spam.');
+ break;
+ case 'trash' :
+ $message = __('This comment is currently in the Trash.');
+ break;
+ }
+ if ( $message )
+ echo '<div class="updated"><p>' . $message . '</p></div>';
+}
+?>
+<p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p>
+
+<table class="form-table comment-ays">
+<tr class="alt">
+<th scope="row"><?php _e('Author'); ?></th>
+<td><?php echo $comment->comment_author; ?></td>
+</tr>
+<?php if ( $comment->comment_author_email ) { ?>
+<tr>
+<th scope="row"><?php _e('E-mail'); ?></th>
+<td><?php echo $comment->comment_author_email; ?></td>
+</tr>
+<?php } ?>
+<?php if ( $comment->comment_author_url ) { ?>
+<tr>
+<th scope="row"><?php _e('URL'); ?></th>
+<td><a href="<?php echo $comment->comment_author_url; ?>"><?php echo $comment->comment_author_url; ?></a></td>
+</tr>
+<?php } ?>
+<tr>
+<th scope="row" valign="top"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>
+<td><?php echo $comment->comment_content; ?></td>
+</tr>
+</table>
+
+<p><?php _e('Are you sure you want to do this?'); ?></p>
+
+<form action='comment.php' method='get'>
+
+<table width="100%">
+<tr>
+<td><a class="button" href="<?php echo admin_url('edit-comments.php'); ?>"><?php esc_attr_e('No'); ?></a></td>
+<td class="textright"><?php submit_button( $button, 'button' ); ?></td>
+</tr>
+</table>
+
+<?php wp_nonce_field( $nonce_action ); ?>
+<input type='hidden' name='action' value='<?php echo esc_attr($formaction); ?>' />
+<input type='hidden' name='c' value='<?php echo esc_attr($comment->comment_ID); ?>' />
+<input type='hidden' name='noredir' value='1' />
+</form>
+
+</div>
+</div>
+<?php
+ break;
+
+case 'deletecomment' :
+case 'trashcomment' :
+case 'untrashcomment' :
+case 'spamcomment' :
+case 'unspamcomment' :
+case 'approvecomment' :
+case 'unapprovecomment' :
+ $comment_id = absint( $_REQUEST['c'] );
+
+ if ( in_array( $action, array( 'approvecomment', 'unapprovecomment' ) ) )
+ check_admin_referer( 'approve-comment_' . $comment_id );
+ else
+ check_admin_referer( 'delete-comment_' . $comment_id );
+
+ $noredir = isset($_REQUEST['noredir']);
+
+ if ( !$comment = get_comment($comment_id) )
+ comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
+ if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
+ comment_footer_die( __('You are not allowed to edit comments on this post.') );
+
+ if ( '' != wp_get_referer() && ! $noredir && false === strpos(wp_get_referer(), 'comment.php') )
+ $redir = wp_get_referer();
+ elseif ( '' != wp_get_original_referer() && ! $noredir )
+ $redir = wp_get_original_referer();
+ elseif ( in_array( $action, array( 'approvecomment', 'unapprovecomment' ) ) )
+ $redir = admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) );
+ else
+ $redir = admin_url('edit-comments.php');
+
+ $redir = remove_query_arg( array('spammed', 'unspammed', 'trashed', 'untrashed', 'deleted', 'ids', 'approved', 'unapproved'), $redir );
+
+ switch ( $action ) {
+ case 'deletecomment' :
+ wp_delete_comment( $comment_id );
+ $redir = add_query_arg( array('deleted' => '1'), $redir );
+ break;
+ case 'trashcomment' :
+ wp_trash_comment($comment_id);
+ $redir = add_query_arg( array('trashed' => '1', 'ids' => $comment_id), $redir );
+ break;
+ case 'untrashcomment' :
+ wp_untrash_comment($comment_id);
+ $redir = add_query_arg( array('untrashed' => '1'), $redir );
+ break;
+ case 'spamcomment' :
+ wp_spam_comment($comment_id);
+ $redir = add_query_arg( array('spammed' => '1', 'ids' => $comment_id), $redir );
+ break;
+ case 'unspamcomment' :
+ wp_unspam_comment($comment_id);
+ $redir = add_query_arg( array('unspammed' => '1'), $redir );
+ break;
+ case 'approvecomment' :
+ wp_set_comment_status( $comment_id, 'approve' );
+ $redir = add_query_arg( array( 'approved' => 1 ), $redir );
+ break;
+ case 'unapprovecomment' :
+ wp_set_comment_status( $comment_id, 'hold' );
+ $redir = add_query_arg( array( 'unapproved' => 1 ), $redir );
+ break;
+ }
+
+ wp_redirect( $redir );
+ die;
+ break;
+
+case 'editedcomment' :
+
+ $comment_id = absint( $_POST['comment_ID'] );
+ $comment_post_id = absint( $_POST['comment_post_ID'] );
+
+ check_admin_referer( 'update-comment_' . $comment_id );
+
+ edit_comment();
+
+ $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
+ $location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
+ wp_redirect( $location );
+
+ exit();
+ break;
+
+default:
+ wp_die( __('Unknown action.') );
+ break;
+
+} // end switch
+
+include('./admin-footer.php');
View
161 wp-admin/credits.php
@@ -0,0 +1,161 @@
+<?php
+/**
+ * Credits administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
+require_once( './admin.php' );
+
+$title = __( 'Credits' );
+
+function wp_credits() {
+ global $wp_version;
+ $locale = get_locale();
+
+ $results = get_site_transient( 'wordpress_credits_' . $locale );
+
+ if ( ! is_array( $results )
+ || ( isset( $results['data']['version'] ) && strpos( $wp_version, $results['data']['version'] ) !== 0 )
+ ) {
+ $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" );
+
+ if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
+ return false;
+
+ $results = maybe_unserialize( wp_remote_retrieve_body( $response ) );
+
+ if ( ! is_array( $results ) )
+ return false;
+
+ set_site_transient( 'wordpress_credits_' . $locale, $results, 86400 ); // One day
+ }
+
+ return $results;
+}
+
+function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) {
+ $display_name = '<a href="' . esc_url( sprintf( $profiles, $username ) ) . '">' . esc_html( $display_name ) . '</a>';
+}
+
+function _wp_credits_build_object_link( &$data ) {
+ $data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0] . '</a>';
+}
+
+list( $display_version ) = explode( '-', $wp_version );
+
+include( ABSPATH . 'wp-admin/admin-header.php' );
+?>
+<div class="wrap about-wrap">
+
+<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
+
+<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s is already making your website better, faster, and more attractive, just like you!' ), $display_version ); ?></div>
+
+<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
+
+<h2 class="nav-tab-wrapper">
+ <a href="about.php" class="nav-tab">
+ <?php _e( 'What&#8217;s New' ); ?>
+ </a><a href="credits.php" class="nav-tab nav-tab-active">
+ <?php _e( 'Credits' ); ?>
+ </a><a href="freedoms.php" class="nav-tab">
+ <?php _e( 'Freedoms' ); ?>
+ </a>
+</h2>
+
+<?php
+
+$credits = wp_credits();
+
+if ( ! $credits ) {
+ echo '<p class="about-description">' . sprintf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
+ 'http://wordpress.org/about/',
+ /* translators: Url to the codex documentation on contributing to WordPress used on the credits page */
+ __( 'http://codex.wordpress.org/Contributing_to_WordPress' ) ) . '</p>';
+ include( ABSPATH . 'wp-admin/admin-footer.php' );
+ exit;
+}
+
+echo '<p class="about-description">' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) . "</p>\n";
+
+$gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/';
+
+foreach ( $credits['groups'] as $group_slug => $group_data ) {
+ if ( $group_data['name'] ) {
+ if ( 'Translators' == $group_data['name'] ) {
+ // Considered a special slug in the API response. (Also, will never be returned for en_US.)