Skip to:
Content
Pages
Categories
Search
Top
Bottom

“deep” integration – class.wp-http.php and http.php


  • capsx
    Participant

    @capsx

    /bb-includes/backpress/class.wp-http.php (bbPress 1.1-alpha revision 2412)

    BBPRESS functions:

    function &_wp_http_get_object() {

    function wp_remote_request($url, $args = array()) {

    function wp_remote_get($url, $args = array()) {

    function wp_remote_post($url, $args = array()) {

    function wp_remote_head($url, $args = array()) {

    function wp_remote_retrieve_headers(&$response) {

    function wp_remote_retrieve_header(&$response, $header) {

    function wp_remote_retrieve_response_code(&$response) {

    function wp_remote_retrieve_response_message(&$response) {

    function wp_remote_retrieve_body(&$response) {

    conflict with WORDPRESS (WordPress 3.0-alpha revision 13909) /wp-includes/http.php the same functions

Viewing 4 replies - 1 through 4 (of 4 total)

  • gerikg
    Member

    @gerikg

    What are the steps your took to achieve the “deep” integration?


    Gautam Gupta
    Participant

    @gautamgupta

    This is a fix just to solve your problem:

    1. Open /bb-includes/backpress/class.wp-http.php
    2. At the starting, after <?php put (on a new line):

      if ( !class_exists( 'WP_Http ' ) ) {

    3. And at the end put:

      }

    I would probably report this issue on the BackPress trac


    capsx
    Participant

    @capsx

    i commented those functions with #

    other way to solve that problem is – instead of class_exists we must use function_exists to all functions, because those functions are not a class functions


    capsx
    Participant

    @capsx

    Guatam:

    added in bb-config.php

    require_once(dirname(__FILE__) . ‘/../wp-load.php’);

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar