~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to wp-admin/includes/deprecated.php

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-11-13 20:41:09 UTC
  • mfrom: (1.2.30)
  • Revision ID: package-import@ubuntu.com-20131113204109-eab47hggfl05n16g
Tags: 3.7.1+dfsg-1
* New upstream release.
* Enable usage of php5-mysqlnd as an alternative to php5-mysql.
  Closes: #722552
* Improve wp-setup to cope with plugins/themes directories with
  spaces. Thanks to Oskar Liljeblad <oskar@osk.mine.nu> for the patch.
  Closes: #723074
* Refresh patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 */
14
14
 
15
15
/**
16
 
 * @since 2.1
17
 
 * @deprecated 2.1
 
16
 * @since 2.1.0
 
17
 * @deprecated 2.1.0
18
18
 * @deprecated Use wp_editor().
19
19
 * @see wp_editor()
20
20
 */
27
27
/**
28
28
 * Unused Admin function.
29
29
 *
30
 
 * @since 2.0
31
 
 * @deprecated 2.5
 
30
 * @since 2.0.0
 
31
 * @deprecated 2.5.0
32
32
 *
33
33
 */
34
34
function documentation_link() {
107
107
}
108
108
 
109
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
 */
 
119
function get_real_file_to_edit( $file ) {
 
120
        _deprecated_function( __FUNCTION__, '2.9' );
 
121
 
 
122
        return WP_CONTENT_DIR . $file;
 
123
}
 
124
 
 
125
/**
110
126
 * {@internal Missing Short Description}}
111
127
 *
112
128
 * @since 1.2.0
207
223
/**
208
224
 * Determine whether to use CodePress.
209
225
 *
210
 
 * @since 2.8
 
226
 * @since 2.8.0
211
227
 * @deprecated 3.0.0
212
228
**/
213
229
function use_codepress() {
719
735
 
720
736
/**
721
737
 * @since 2.7.0
722
 
 * @deprecated 3.3
 
738
 * @deprecated 3.3.0
723
739
 * @deprecated Use wp_editor()
724
740
 * @see wp_editor()
725
741
 */
924
940
 * {@internal Missing Short Description}}
925
941
 *
926
942
 * @since 1.5.0
 
943
 * @deprecated 3.4.0
927
944
 *
928
945
 * @return unknown
929
946
 */
947
964
 * {@internal Missing Short Description}}
948
965
 *
949
966
 * @since 2.0.0
 
967
 * @deprecated 3.4.0
950
968
 *
951
969
 * @return unknown
952
970
 */
1023
1041
        _deprecated_function( __FUNCTION__, '3.5', 'image_resize()' );
1024
1042
        return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
1025
1043
}
 
1044
 
 
1045
/**
 
1046
 * This was once used to display a metabox for the nav menu theme locations.
 
1047
 *
 
1048
 * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen.
 
1049
 *
 
1050
 * @since 3.0.0
 
1051
 * @deprecated 3.6.0
 
1052
 */
 
1053
function wp_nav_menu_locations_meta_box() {
 
1054
        _deprecated_function( __FUNCTION__, '3.6' );
 
1055
}
 
1056
 
 
1057
/**
 
1058
 * This was once used to kick-off the Core Updater.
 
1059
 *
 
1060
 * Deprecated in favor of instantating a Core_Upgrader instance directly,
 
1061
 * and calling the 'upgrade' method.
 
1062
 *
 
1063
 * @since 2.7.0
 
1064
 * @deprecated 3.7.0
 
1065
 */
 
1066
function wp_update_core($current, $feedback = '') {
 
1067
        _deprecated_function( __FUNCTION__, '3.7', 'new Core_Upgrader();' );
 
1068
 
 
1069
        if ( !empty($feedback) )
 
1070
                add_filter('update_feedback', $feedback);
 
1071
 
 
1072
        include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
 
1073
        $upgrader = new Core_Upgrader();
 
1074
        return $upgrader->upgrade($current);
 
1075
 
 
1076
}
 
1077
 
 
1078
/**
 
1079
 * This was once used to kick-off the Plugin Updater.
 
1080
 *
 
1081
 * Deprecated in favor of instantating a Plugin_Upgrader instance directly,
 
1082
 * and calling the 'upgrade' method.
 
1083
 * Unused since 2.8.0.
 
1084
 *
 
1085
 * @since 2.5.0
 
1086
 * @deprecated 3.7.0
 
1087
 */
 
1088
function wp_update_plugin($plugin, $feedback = '') {
 
1089
        _deprecated_function( __FUNCTION__, '3.7', 'new Plugin_Upgrader();' );
 
1090
 
 
1091
        if ( !empty($feedback) )
 
1092
                add_filter('update_feedback', $feedback);
 
1093
 
 
1094
        include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
 
1095
        $upgrader = new Plugin_Upgrader();
 
1096
        return $upgrader->upgrade($plugin);
 
1097
}
 
1098
 
 
1099
/**
 
1100
 * This was once used to kick-off the Plugin Updater.
 
1101
 *
 
1102
 * Deprecated in favor of instantating a Plugin_Upgrader instance directly,
 
1103
 * and calling the 'upgrade' method.
 
1104
 * Unused since 2.8.0.
 
1105
 *
 
1106
 * @since 2.7.0
 
1107
 * @deprecated 3.7.0
 
1108
 */
 
1109
function wp_update_theme($theme, $feedback = '') {
 
1110
        _deprecated_function( __FUNCTION__, '3.7', 'new Theme_Upgrader();' );
 
1111
 
 
1112
        if ( !empty($feedback) )
 
1113
                add_filter('update_feedback', $feedback);
 
1114
 
 
1115
        include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
 
1116
        $upgrader = new Theme_Upgrader();
 
1117
        return $upgrader->upgrade($theme);
 
1118
}
 
1119
 
 
1120
/**
 
1121
 * This was once used to display attachment links. Now it is deprecated and stubbed.
 
1122
 *
 
1123
 * {@internal Missing Short Description}}
 
1124
 *
 
1125
 * @since 2.0.0
 
1126
 * @deprecated 3.7.0
 
1127
 *
 
1128
 * @param unknown_type $id
 
1129
 * @return unknown
 
1130
 */
 
1131
function the_attachment_links( $id = false ) {
 
1132
        _deprecated_function( __FUNCTION__, '3.7' );
 
1133
}