Make WordPress Core


Ignore:
Timestamp:
09/01/2013 12:36:45 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Move get_real_file_to_edit() to wp-admin/includes/deprecated.php. props iamfriendly. fixes #23680.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/deprecated.php

    r23577 r25201  
    10241024    return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
    10251025}
     1026
     1027/**
     1028 * Get the real filesystem path to a file to edit within the admin.
     1029 *
     1030 * @since 1.5.0
     1031 * @deprecated 2.9.0
     1032 * @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
     1033 *
     1034 * @param string $file Filesystem path relative to the wp-content directory.
     1035 * @return string Full filesystem path to edit.
     1036 */
     1037function get_real_file_to_edit( $file ) {
     1038    _deprecated_function( __FUNCTION__, '2.9' );
     1039
     1040    return WP_CONTENT_DIR . $file;
     1041}
Note: See TracChangeset for help on using the changeset viewer.