WordPress.org

Make WordPress Core

Ticket #11589: 11589.diff

File 11589.diff, 1.7 KB (added by westi, 8 years ago)

Implementation of this new feature.

  • wp-config-sample.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    6666 */
    6767define ('WPLANG', '');
    6868
     69/**
     70 * Whether or not to make the functions that have been deprecated available.
     71 *
     72 * Defaults to false for new installs but to true for old installs so that existing
     73 * sites are not broken on upgrade
     74 */
     75define( 'WP_ENABLE_DEPRECATED_FUNCTIONS', false );
     76
    6977/* That's all, stop editing! Happy blogging. */
    7078
    7179/** Absolute path to the WordPress directory. */
  • wp-settings.php

     
    378378require (ABSPATH . WPINC . '/kses.php');
    379379require (ABSPATH . WPINC . '/cron.php');
    380380require (ABSPATH . WPINC . '/version.php');
    381 require (ABSPATH . WPINC . '/deprecated.php');
    382381require (ABSPATH . WPINC . '/script-loader.php');
    383382require (ABSPATH . WPINC . '/taxonomy.php');
    384383require (ABSPATH . WPINC . '/update.php');
     
    388387require (ABSPATH . WPINC . '/http.php');
    389388require (ABSPATH . WPINC . '/widgets.php');
    390389
     390/**
     391 * Whether or not to make the functions we have deprecated available.
     392 *
     393 * @since 3.0.0
     394 */
     395if ( !defined( 'WP_ENABLE_DEPRECATED_FUNCTIONS' ) )
     396        define( 'WP_ENABLE_DEPRECATED_FUNCTIONS', true );
     397
     398if ( WP_ENABLE_DEPRECATED_FUNCTIONS )
     399        require (ABSPATH . WPINC . '/deprecated.php');
     400
     401
     402
    391403if ( !defined('WP_CONTENT_URL') )
    392404        define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
    393405