Make WordPress Core

Changeset 1265


Ignore:
Timestamp:
05/12/2004 07:55:37 AM (21 years ago)
Author:
saxmatt
Message:

Possible fix to pingback problem. Parse error in blog-header.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r1259 r1265  
    377377    if ($prev_status != 'publish' && $post_status == 'publish') {
    378378        generic_ping();
     379        if ($post_pingback) {
     380            pingback($content, $post_ID);
     381        }
    379382    } // end if moving from draft/private to published
    380383    if ($post_status == 'publish') {
  • trunk/wp-blog-header.php

    r1255 r1265  
    11<?php
    22
    3 $curpath = dirname(__FILE__).'/';
    4 
    5 if (!file_exists($curpath . '/wp-config.php'))
     3require(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');
     4
     5if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php'))
    66    die(__("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/install-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."));
    77
    8 require_once($curpath . '/wp-config.php');
     8require_once(dirname(__FILE__).'/' . '/wp-config.php');
    99
    1010// Process PATH_INFO, if set.
Note: See TracChangeset for help on using the changeset viewer.