Changes in trunk/wp-includes/load.php [17194:18293]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/load.php
r17194 r18293 272 272 } 273 273 } else { 274 if ( defined( 'E_RECOVERABLE_ERROR' ) ) 275 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); 276 else 277 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING ); 274 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); 278 275 } 279 276 } … … 284 281 * To set directory manually, define <code>WP_LANG_DIR</code> in wp-config.php. 285 282 * 286 * First looks for language folder in WP_CONTENT_DIR and uses that folder if it 287 * exists. Or it uses the "languages" folder in WPINC. 283 * If the language directory exists within WP_CONTENT_DIR that is used 284 * Otherwise if the language directory exists within WPINC, that's used 285 * Finally, If neither of the preceeding directories is found, 286 * WP_CONTENT_DIR/languages is used. 288 287 * 289 288 * The WP_LANG_DIR constant was introduced in 2.1.0. … … 294 293 function wp_set_lang_dir() { 295 294 if ( !defined( 'WP_LANG_DIR' ) ) { 296 if ( file_exists( WP_CONTENT_DIR . '/languages' ) && @is_dir( WP_CONTENT_DIR . '/languages' ) ) {295 if ( file_exists( WP_CONTENT_DIR . '/languages' ) && @is_dir( WP_CONTENT_DIR . '/languages' ) || !@is_dir(ABSPATH . WPINC . '/languages') ) { 297 296 define( 'WP_LANG_DIR', WP_CONTENT_DIR . '/languages' ); // no leading slash, no trailing slash, full path, not relative to ABSPATH 298 297 if ( !defined( 'LANGDIR' ) ) { … … 555 554 * Copy an object. 556 555 * 557 * Returns a cloned copy of an object.558 *559 556 * @since 2.7.0 557 * @deprecated 3.2 560 558 * 561 559 * @param object $object The object to clone 562 560 * @return object The cloned object 563 561 */ 562 564 563 function wp_clone( $object ) { 565 static $can_clone; 566 if ( !isset( $can_clone ) ) 567 $can_clone = version_compare( phpversion(), '5.0', '>=' ); 568 569 return $can_clone ? clone( $object ) : $object; 564 return clone $object; 570 565 } 571 566
Note: See TracChangeset
for help on using the changeset viewer.