Make WordPress Core

Changeset 25208


Ignore:
Timestamp:
09/02/2013 11:18:35 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Move get_real_file_to_edit() upper in the file for consistency with the existing order of functions. Some phpdoc fixes and additions. see #23680.

File:
1 edited

Legend:

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

    r25201 r25208  
    1414
    1515/**
    16  * @since 2.1
    17  * @deprecated 2.1
     16 * @since 2.1.0
     17 * @deprecated 2.1.0
    1818 * @deprecated Use wp_editor().
    1919 * @see wp_editor()
     
    2828 * Unused Admin function.
    2929 *
    30  * @since 2.0
    31  * @deprecated 2.5
     30 * @since 2.0.0
     31 * @deprecated 2.5.0
    3232 *
    3333 */
     
    105105    global $link_id;
    106106    wp_link_category_checklist( $link_id );
     107}
     108
     109/**
     110 * Get the real filesystem path to a file to edit within the admin.
     111 *
     112 * @since 1.5.0
     113 * @deprecated 2.9.0
     114 * @uses WP_CONTENT_DIR Full filesystem path to the wp-content directory.
     115 *
     116 * @param string $file Filesystem path relative to the wp-content directory.
     117 * @return string Full filesystem path to edit.
     118 */
     119function get_real_file_to_edit( $file ) {
     120    _deprecated_function( __FUNCTION__, '2.9' );
     121
     122    return WP_CONTENT_DIR . $file;
    107123}
    108124
     
    208224 * Determine whether to use CodePress.
    209225 *
    210  * @since 2.8
     226 * @since 2.8.0
    211227 * @deprecated 3.0.0
    212228**/
     
    720736/**
    721737 * @since 2.7.0
    722  * @deprecated 3.3
     738 * @deprecated 3.3.0
    723739 * @deprecated Use wp_editor()
    724740 * @see wp_editor()
     
    925941 *
    926942 * @since 1.5.0
     943 * @deprecated 3.4.0
    927944 *
    928945 * @return unknown
     
    948965 *
    949966 * @since 2.0.0
     967 * @deprecated 3.4.0
    950968 *
    951969 * @return unknown
     
    10241042    return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
    10251043}
    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  */
    1037 function 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.