Make WordPress Core

Ticket #5474: abspath.patch

File abspath.patch, 2.1 KB (added by gimler, 18 years ago)

add patch for tiny_mce :)

  • tiny_mce_config.php

     
    11<?php
    2        @ require('../../../wp-config.php');
     2       $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php';
     3       require_once( $config_path );
     4
    35       cache_javascript_headers();
    46
    57       function wp_translate_tinymce_lang($text) {
  • tiny_mce_gzip.php

     
    99 * enables the browser to do two requests instead of one for each .js file.
    1010 * Notice: This script defaults the button_tile_map option to true for extra performance.
    1111 */
     12       $config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php';
     13       require_once( $config_path );
    1214
    13        @require_once('../../../wp-config.php');  // For get_bloginfo().
    14 
    1515       // Get input
    1616       $plugins = explode(',', getParam("plugins", ""));
    1717       $languages = explode(',', getParam("languages", ""));
  • var/www/blog.chip.de/ecom/wp-admin/admin.php

     
    11<?php
    2 if ( defined('ABSPATH') )
    3        require_once( ABSPATH . 'wp-config.php');
    4 else
    5     require_once('../wp-config.php');
     2$config_path = dirname($_SERVER["SCRIPT_FILENAME"]) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'wp-config.php';
     3require_once( $config_path );
    64
    75if ( get_option('db_version') != $wp_db_version ) {
    86       wp_redirect(get_option('siteurl') . '/wp-admin/upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI'])));