| [ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Atom Publishing Protocol support for WordPress 4 * 5 * @version 1.0.5-dc 6 */ 7 8 /** 9 * WordPress is handling an Atom Publishing Protocol request. 10 * 11 * @var bool 12 */ 13 define('APP_REQUEST', true); 14 15 /** Set up WordPress environment */ 16 require_once ('./wp-load.php'); 17 18 /** Atom Publishing Protocol Class */ 19 require_once(ABSPATH . WPINC . '/atomlib.php'); 20 21 /** Atom Server **/ 22 require_once(ABSPATH . WPINC . '/class-wp-atom-server.php'); 23 24 /** Admin Image API for metadata updating */ 25 require_once (ABSPATH . '/wp-admin/includes/image.php'); 26 27 $_SERVER['PATH_INFO'] = preg_replace( '/.*\/wp-app\.php/', '', $_SERVER['REQUEST_URI'] ); 28 29 // Allow for a plugin to insert a different class to handle requests. 30 $wp_atom_server_class = apply_filters('wp_atom_server_class', 'wp_atom_server'); 31 $wp_atom_server = new $wp_atom_server_class; 32 33 // Handle the request 34 $wp_atom_server->handle_request(); 35 36 exit; 37 38 /** 39 * Writes logging info to a file. 40 * 41 * @since 2.2.0 42 * @deprecated 3.4.0 43 * @deprecated Use error_log() 44 * @link http://www.php.net/manual/en/function.error-log.php 45 * 46 * @param string $label Type of logging 47 * @param string $msg Information describing logging reason. 48 */ 49 function log_app( $label, $msg ) { 50 _deprecated_function( __FUNCTION__, '3.4', 'error_log()' ); 51 if ( ! empty( $GLOBALS['app_logging'] ) ) 52 error_log( $label . ' - ' . $msg ); 53 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Sep 11 03:56:19 2012 | Hosted by follow the white rabbit. |