WordPress.org

Make WordPress Core

Ticket #9409: wordpress-2.7.1-hspaans-1.patch

File wordpress-2.7.1-hspaans-1.patch, 1.3 KB (added by hspaans, 13 years ago)
  • wp-admin/options-misc.php

    diff -aur wordpress-2.7.1/wp-admin/options-misc.php wordpress-2.7.1-hspaans/wp-admin/options-misc.php
    old new  
    3939</td>
    4040</tr>
    4141
     42<?php if ( !defined('WP_UPLOADS_USE_YEARMONTH_FOLDERS') ) { ?>
    4243<tr>
    4344<th scope="row" colspan="2" class="th-full">
    4445<label for="uploads_use_yearmonth_folders">
     
    4748</label>
    4849</th>
    4950</tr>
    50 <?php do_settings_fields('misc', 'default'); ?>
     51<?php
     52        }
     53        do_settings_fields('misc', 'default');
     54?>
    5155</table>
    5256
    5357<table class="form-table">
  • wp-includes/functions.php

    diff -aur wordpress-2.7.1/wp-includes/functions.php wordpress-2.7.1-hspaans/wp-includes/functions.php
    old new  
    18571857        $burl = $url;
    18581858
    18591859        $subdir = '';
    1860         if ( get_option( 'uploads_use_yearmonth_folders' ) ) {
     1860        if ( ( get_option( 'uploads_use_yearmonth_folders') && !defined('WP_UPLOADS_USE_YEARMONTH_FOLDERS')) ||
     1861             ( constant('WP_UPLOADS_USE_YEARMONTH_FOLDERS') ) ) {
    18611862                // Generate the yearly and monthly dirs
    18621863                if ( !$time )
    18631864                        $time = current_time( 'mysql' );