WP-Admin File Level Inline Documentation from santosj. see #7496

git-svn-id: http://svn.automattic.com/wordpress/trunk@8618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-11 20:26:31 +00:00
parent f43cf39f19
commit 175c2b6fb1
16 changed files with 245 additions and 16 deletions

View File

@ -1,4 +1,16 @@
<?php <?php
/**
* WordPress AJAX Process Execution.
*
* @package WordPress
* @subpackage Administration
*/
/**
* Executing AJAX process.
*
* @since unknown
*/
define('DOING_AJAX', true); define('DOING_AJAX', true);
require_once('../wp-load.php'); require_once('../wp-load.php');

View File

@ -1,3 +1,11 @@
<?php
/**
* WordPress Administration Template Footer
*
* @package WordPress
* @subpackage Administration
*/
?>
</div><!-- wpbody --> </div><!-- wpbody -->
</div><!-- wpcontent --> </div><!-- wpcontent -->
</div><!-- wpwrap --> </div><!-- wpwrap -->

View File

@ -1,5 +1,16 @@
<?php <?php
// Deprecated. Use includes/admin.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' ); _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'); require_once(ABSPATH . 'wp-admin/includes/admin.php');
?> ?>

View File

@ -1,4 +1,11 @@
<?php <?php
/**
* WordPress Administration Template Header
*
* @package WordPress
* @subpackage Administration
*/
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if (!isset($_GET["page"])) require_once('admin.php'); if (!isset($_GET["page"])) require_once('admin.php');
if ( $editing ) { if ( $editing ) {

View File

@ -1,5 +1,13 @@
<?php <?php
define('WP_ADMIN', TRUE); /**
* WordPress Administration Generic POST Handler.
*
* @package WordPress
* @subpackage Administration
*/
/** We are located in WordPress Administration Panels */
define('WP_ADMIN', true);
if ( defined('ABSPATH') ) if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php'); require_once(ABSPATH . 'wp-load.php');

View File

@ -1,4 +1,16 @@
<?php <?php
/**
* WordPress Administration Bootstrap
*
* @package WordPress
* @subpackage Administration
*/
/**
* In WordPress Administration Panels
*
* @since unknown
*/
define('WP_ADMIN', TRUE); define('WP_ADMIN', TRUE);
if ( defined('ABSPATH') ) if ( defined('ABSPATH') )

View File

@ -1,8 +1,10 @@
<?php <?php
/**
/* This accepts file uploads from swfupload or other asynchronous upload methods. * Accepts file uploads from swfupload or other asynchronous upload methods.
*
*/ * @package WordPress
* @subpackage Administration
*/
if ( defined('ABSPATH') ) if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php'); require_once(ABSPATH . 'wp-load.php');

View File

@ -1,4 +1,12 @@
<?php <?php
/**
* Categories Management Panel
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once('admin.php'); require_once('admin.php');
$title = __('Categories'); $title = __('Categories');

View File

@ -1,4 +1,12 @@
<?php <?php
/**
* Comment Management Panel
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once('admin.php'); require_once('admin.php');
$parent_file = 'edit-comments.php'; $parent_file = 'edit-comments.php';
@ -9,7 +17,12 @@ wp_reset_vars( array('action') );
if ( isset( $_POST['deletecomment'] ) ) if ( isset( $_POST['deletecomment'] ) )
$action = 'deletecomment'; $action = 'deletecomment';
function comment_footer_die( $msg ) { // $msg is assumed to contain HTML and be sanitized /**
* 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>"; echo "<div class='wrap'><p>$msg</p></div>";
include('admin-footer.php'); include('admin-footer.php');
die; die;

View File

@ -1,5 +1,15 @@
<?php <?php
/**
* WordPress Export Administration Panel
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once ('admin.php'); require_once ('admin.php');
/** Load WordPress export API */
require_once('includes/export.php'); require_once('includes/export.php');
$title = __('Export'); $title = __('Export');
$parent_file = 'edit.php'; $parent_file = 'edit.php';

View File

@ -1,20 +1,91 @@
<?php <?php
/**
* Define Gears manifest for Google Gears storage.
*
* @package WordPress
* @subpackage Administration
*/
/** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) ); define( 'ABSPATH', dirname(dirname(__FILE__)) );
define( 'WPINC', '/wp-includes' ); define( 'WPINC', '/wp-includes' );
/**
* @package WordPress
* @subpackage Dummy
*/
function __() {} function __() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function add_filter() {} function add_filter() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function attribute_escape() {} function attribute_escape() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function apply_filters() {} function apply_filters() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function get_option() {} function get_option() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function is_lighttpd_before_150() {} function is_lighttpd_before_150() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function add_action() {} function add_action() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function do_action_ref_array() {} function do_action_ref_array() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function get_bloginfo() {} function get_bloginfo() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function is_admin() {return true;} function is_admin() {return true;}
/**
* @package WordPress
* @subpackage Dummy
*/
function site_url() {} function site_url() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function admin_url() {} function admin_url() {}
/**
* @package WordPress
* @subpackage Dummy
*/
function wp_guess_url() {} function wp_guess_url() {}
require(ABSPATH . '/wp-includes/script-loader.php'); require(ABSPATH . '/wp-includes/script-loader.php');

View File

@ -1,4 +1,12 @@
<?php <?php
/**
* Import WordPress Administration Panel
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once ('admin.php'); require_once ('admin.php');
$title = __('Import'); $title = __('Import');
$parent_file = 'edit.php'; $parent_file = 'edit.php';

View File

@ -1,20 +1,54 @@
<?php <?php
/**
* Includes all of the WordPress Administration API files.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Bookmark Administration API */
require_once(ABSPATH . 'wp-admin/includes/bookmark.php'); require_once(ABSPATH . 'wp-admin/includes/bookmark.php');
/** WordPress Comment Administration API */
require_once(ABSPATH . 'wp-admin/includes/comment.php'); require_once(ABSPATH . 'wp-admin/includes/comment.php');
/** WordPress Administration File API */
require_once(ABSPATH . 'wp-admin/includes/file.php'); require_once(ABSPATH . 'wp-admin/includes/file.php');
/** WordPress Image Administration API */
require_once(ABSPATH . 'wp-admin/includes/image.php'); require_once(ABSPATH . 'wp-admin/includes/image.php');
/** WordPress Media Administration API */
require_once(ABSPATH . 'wp-admin/includes/media.php'); require_once(ABSPATH . 'wp-admin/includes/media.php');
/** WordPress Import Administration API */
require_once(ABSPATH . 'wp-admin/includes/import.php'); require_once(ABSPATH . 'wp-admin/includes/import.php');
/** WordPress Misc Administration API */
require_once(ABSPATH . 'wp-admin/includes/misc.php'); require_once(ABSPATH . 'wp-admin/includes/misc.php');
/** WordPress Plugin Administration API */
require_once(ABSPATH . 'wp-admin/includes/plugin.php'); require_once(ABSPATH . 'wp-admin/includes/plugin.php');
/** WordPress Post Administration API */
require_once(ABSPATH . 'wp-admin/includes/post.php'); require_once(ABSPATH . 'wp-admin/includes/post.php');
/** WordPress Taxonomy Administration API */
require_once(ABSPATH . 'wp-admin/includes/taxonomy.php'); require_once(ABSPATH . 'wp-admin/includes/taxonomy.php');
/** WordPress Template Administration API */
require_once(ABSPATH . 'wp-admin/includes/template.php'); require_once(ABSPATH . 'wp-admin/includes/template.php');
/** WordPress Theme Administration API */
require_once(ABSPATH . 'wp-admin/includes/theme.php'); require_once(ABSPATH . 'wp-admin/includes/theme.php');
/** WordPress User Administration API */
require_once(ABSPATH . 'wp-admin/includes/user.php'); require_once(ABSPATH . 'wp-admin/includes/user.php');
/** WordPress Update Administration API */
require_once(ABSPATH . 'wp-admin/includes/update.php'); require_once(ABSPATH . 'wp-admin/includes/update.php');
/** WordPress Registration API */
require_once(ABSPATH . WPINC . '/registration.php'); require_once(ABSPATH . WPINC . '/registration.php');
?> ?>

View File

@ -1,6 +1,18 @@
<?php <?php
/**
* Handle default dashboard widgets options AJAX.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once('admin.php'); require_once('admin.php');
/** Load WordPress Administration Dashboard API */
require( 'includes/dashboard.php' ); require( 'includes/dashboard.php' );
/** Load Magpie RSS API or custom RSS API */
require_once (ABSPATH . WPINC . '/rss.php'); require_once (ABSPATH . WPINC . '/rss.php');
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));

View File

@ -1,11 +1,24 @@
<?php <?php
/**
* Dashboard Administration Panel
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once('admin.php'); require_once('admin.php');
/** Load WordPress dashboard API */
require_once(ABSPATH . 'wp-admin/includes/dashboard.php'); require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
wp_dashboard_setup(); wp_dashboard_setup();
/**
* Display dashboard widget custom JavaScript.
*
* @since unknown
*/
function index_js() { function index_js() {
?> ?>
<script type="text/javascript"> <script type="text/javascript">