Make WordPress Core

Changeset 20063 for trunk/wp-app.php


Ignore:
Timestamp:
03/01/2012 09:35:15 PM (13 years ago)
Author:
nacin
Message:

New wp_die_app_handler context in wp_die() for APP requests. Introduces _scalar_wp_die_handler() as a generic handler that wraps die(), for use by plugins. Move deprecated function to the end of the wp-app.php file (same as xmlrpc.php). see #20042.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r20062 r20063  
    2727$_SERVER['PATH_INFO'] = preg_replace( '/.*\/wp-app\.php/', '', $_SERVER['REQUEST_URI'] );
    2828
     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
     36exit;
     37
    2938/**
    3039 * Writes logging info to a file.
     
    4352            error_log( $label . ' - ' . $message );
    4453}
    45 
    46 // Allow for a plugin to insert a different class to handle requests.
    47 $wp_atom_server_class = apply_filters('wp_atom_server_class', 'wp_atom_server');
    48 $wp_atom_server = new $wp_atom_server_class;
    49 
    50 // Handle the request
    51 $wp_atom_server->handle_request();
Note: See TracChangeset for help on using the changeset viewer.