WordPress.org

Make WordPress Core

Ticket #23680: 23680.diff

File 23680.diff, 731 bytes (added by iamfriendly, 19 months ago)
  • wp-admin/includes/file.php

    diff --git wp-admin/includes/file.php wp-admin/includes/file.php
    index ca42426..da3fd1f 100644
    function get_home_path() { 
    101101 * directory 
    102102 * 
    103103 * @since 1.5.0 
    104  * 
     104 * @deprecated 2.9 
    105105 * @uses get_home_path 
    106106 * @uses WP_CONTENT_DIR full filesystem path to the wp-content directory 
    107107 * @param string $file filesystem path relative to the WordPress install directory or to the wp-content directory 
    108108 * @return string full file system path to edit 
    109109 */ 
    110110function get_real_file_to_edit( $file ) { 
     111        _deprecated_function( __FUNCTION__, '2.9' ); 
     112 
    111113        if ('index.php' == $file || '.htaccess' == $file ) { 
    112114                $real_file = get_home_path() . $file; 
    113115        } else {