[ Index ]

PHP Cross Reference of Documentation Wordpress

title

Body

[close]

/ -> wp-app.php (source)

   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  }


Développement Wordpress responsive design Montréal
Generated: Thu Feb 21 16:28:30 2013 Cross-referenced by PHPXref 0.7.1