Rev | Line | |
---|
[44] | 1 | <?php
|
---|
| 2 | /**
|
---|
| 3 | * Handle default dashboard widgets options AJAX.
|
---|
| 4 | *
|
---|
| 5 | * @package WordPress
|
---|
| 6 | * @subpackage Administration
|
---|
| 7 | */
|
---|
| 8 |
|
---|
| 9 | /** Load WordPress Bootstrap */
|
---|
| 10 | require_once('admin.php');
|
---|
| 11 |
|
---|
| 12 | /** Load WordPress Administration Dashboard API */
|
---|
| 13 | require( 'includes/dashboard.php' );
|
---|
| 14 |
|
---|
| 15 | /** Load Magpie RSS API or custom RSS API */
|
---|
| 16 | require_once (ABSPATH . WPINC . '/rss.php');
|
---|
| 17 |
|
---|
| 18 | @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
---|
| 19 |
|
---|
| 20 | switch ( $_GET['jax'] ) {
|
---|
| 21 |
|
---|
| 22 | case 'dashboard_incoming_links' :
|
---|
| 23 | wp_dashboard_incoming_links_output();
|
---|
| 24 | break;
|
---|
| 25 |
|
---|
| 26 | case 'dashboard_primary' :
|
---|
| 27 | wp_dashboard_rss_output( 'dashboard_primary' );
|
---|
| 28 | break;
|
---|
| 29 |
|
---|
| 30 | case 'dashboard_secondary' :
|
---|
| 31 | wp_dashboard_secondary_output();
|
---|
| 32 | break;
|
---|
| 33 |
|
---|
| 34 | case 'dashboard_plugins' :
|
---|
| 35 | wp_dashboard_plugins_output();
|
---|
| 36 | break;
|
---|
| 37 |
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | ?> |
---|
Note:
See
TracBrowser
for help on using the repository browser.