Make WordPress Core

Ticket #40334: 40334.patch

File 40334.patch, 662 bytes (added by thamaraiselvam, 7 years ago)

This sample patch but it should be done everywhere

  • wp-includes/default-constants.php

    diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php
    index dcad997..c26dc64 100644
    a b function wp_initial_constants() { 
    135135 */
    136136function wp_plugin_directory_constants() {
    137137        if ( !defined('WP_CONTENT_URL') )
    138                 define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
     138                define('WP_CONTENT_URL', trim(get_option('siteurl')) . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
    139139
    140140        /**
    141141         * Allows for the plugins directory to be moved from the default location.