Changeset 32672
- Timestamp:
- 05/31/2015 03:17:50 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/comment.php
r32654 r32672 168 168 } 169 169 170 /** 171 * @since 2.7.0 172 */ 170 173 function enqueue_comment_hotkeys_js() { 171 174 if ( 'true' == get_user_option( 'comment_shortcuts' ) ) -
trunk/src/wp-admin/includes/dashboard.php
r32655 r32672 356 356 } 357 357 358 /** 359 * @since 3.1.0 360 */ 358 361 function wp_network_dashboard_right_now() { 359 362 $actions = array(); … … 1248 1251 } 1249 1252 1253 /** 1254 * @since 3.2.0 1255 * 1256 * @param array $classes 1257 * @return array 1258 */ 1250 1259 function dashboard_browser_nag_class( $classes ) { 1251 1260 $response = wp_check_browser_version(); -
trunk/src/wp-admin/includes/media.php
r32653 r32672 1575 1575 } 1576 1576 1577 /** 1578 * @since 3.5.0 1579 * 1580 * @param int $attachment_id 1581 * @param array $args 1582 * @return array 1583 */ 1577 1584 function get_compat_media_markup( $attachment_id, $args = null ) { 1578 1585 $post = get_post( $attachment_id ); -
trunk/src/wp-admin/includes/misc.php
r32653 r32672 311 311 } 312 312 313 /** 314 * @since 2.8.0 315 * 316 * @param string $content 317 * @return array 318 */ 313 319 function wp_doc_link_parse( $content ) { 314 320 if ( !is_string( $content ) || empty( $content ) ) … … 677 683 } 678 684 685 /** 686 * @since 3.3.0 687 */ 679 688 function _ipad_meta() { 680 689 if ( wp_is_mobile() ) { -
trunk/src/wp-admin/includes/ms-deprecated.php
r31679 r32672 65 65 } 66 66 67 /** 68 * @deprecated 3.4.0 69 * @see WP_Theme::get_allowed_on_network() 70 */ 67 71 function get_site_allowed_themes() { 68 72 _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_network()' ); … … 70 74 } 71 75 76 /** 77 * @deprecated 3.4.0 78 * @see WP_Theme::get_allowed_on_site() 79 */ 72 80 function wpmu_get_blog_allowedthemes( $blog_id = 0 ) { 73 81 _deprecated_function( __FUNCTION__, '3.4', 'WP_Theme::get_allowed_on_site()' ); … … 75 83 } 76 84 85 /** 86 * @deprecated 87 */ 77 88 function ms_deprecated_blogs_file() {} -
trunk/src/wp-admin/includes/plugin-install.php
r32655 r32672 131 131 } 132 132 133 /** 134 * @since 2.7.0 135 */ 133 136 function install_dashboard() { 134 137 ?> -
trunk/src/wp-admin/includes/plugin.php
r32653 r32672 1659 1659 } 1660 1660 1661 /** 1662 * @since 2.3.0 1663 * 1664 * @param string $plugin_page 1665 * @param string $parent_page 1666 * @return string|null 1667 */ 1661 1668 function get_plugin_page_hook( $plugin_page, $parent_page ) { 1662 1669 $hook = get_plugin_page_hookname( $plugin_page, $parent_page ); -
trunk/src/wp-admin/includes/theme-install.php
r32654 r32672 136 136 } 137 137 138 /** 139 * @since 2.8.0 140 */ 138 141 function install_themes_upload() { 139 142 ?> -
trunk/src/wp-admin/includes/update.php
r32654 r32672 260 260 } 261 261 262 /** 263 * @since 2.9.0 264 * 265 * @return array 266 */ 262 267 function get_plugin_updates() { 263 268 $all_plugins = get_plugins(); … … 274 279 } 275 280 281 /** 282 * @since 2.9.0 283 */ 276 284 function wp_plugin_update_rows() { 277 285 if ( !current_user_can('update_plugins' ) ) … … 378 386 } 379 387 388 /** 389 * @since 3.1.0 390 */ 380 391 function wp_theme_update_rows() { 381 392 if ( !current_user_can('update_themes' ) ) -
trunk/src/wp-admin/update-core.php
r32654 r32672 115 115 } 116 116 117 /** 118 * @since 2.7.0 119 */ 117 120 function dismissed_updates() { 118 121 $dismissed = get_core_updates( array( 'dismissed' => true, 'available' => false ) ); … … 306 309 } 307 310 311 /** 312 * @since 2.9.0 313 */ 308 314 function list_theme_updates() { 309 315 $themes = get_theme_updates(); … … 354 360 } 355 361 362 /** 363 * @since 3.7.0 364 */ 356 365 function list_translation_updates() { 357 366 $updates = wp_get_translation_updates(); … … 458 467 } 459 468 469 /** 470 * @since 2.7.0 471 */ 460 472 function do_dismiss_core_update() { 461 473 $version = isset( $_POST['version'] )? $_POST['version'] : false; … … 469 481 } 470 482 483 /** 484 * @since 2.7.0 485 */ 471 486 function do_undismiss_core_update() { 472 487 $version = isset( $_POST['version'] )? $_POST['version'] : false; -
trunk/src/wp-includes/compat.php
r32650 r32672 196 196 197 197 if ( !function_exists('json_decode') ) { 198 /** 199 * @global Services_JSON $wp_json 200 * @param string $string 201 * @param bool $assoc_array 202 * @return object|array 203 */ 198 204 function json_decode( $string, $assoc_array = false ) { 199 205 global $wp_json; … … 209 215 return $res; 210 216 } 217 218 /** 219 * @param object $data 220 * @return array 221 */ 211 222 function _json_decode_object_helper($data) { 212 223 if ( is_object($data) ) -
trunk/src/wp-includes/locale.php
r32608 r32672 192 192 } 193 193 194 /** 195 * @since 3.8.0 196 */ 194 197 function rtl_src_admin_notice() { 195 198 echo '<div class="error"><p>' . 'The <code>build</code> directory of the develop repository must be used for RTL.' . '</p></div>'; -
trunk/src/wp-includes/pomo/entry.php
r22349 r32672 67 67 } 68 68 69 /** 70 * @param object $other 71 */ 69 72 function merge_with(&$other) { 70 73 $this->flags = array_unique( array_merge( $this->flags, $other->flags ) ); -
trunk/src/wp-includes/pomo/mo.php
r30663 r32672 28 28 } 29 29 30 /** 31 * @param string $filename 32 * @return bool 33 */ 30 34 function export_to_file($filename) { 31 35 $fh = fopen($filename, 'wb'); … … 36 40 } 37 41 42 /** 43 * @return string|false 44 */ 38 45 function export() { 39 46 $tmp_fh = fopen("php://temp", 'r+'); … … 44 51 } 45 52 53 /** 54 * @param Translation_Entry $entry 55 * @return bool 56 */ 46 57 function is_entry_good_for_export( $entry ) { 47 58 if ( empty( $entry->translations ) ) { … … 56 67 } 57 68 69 /** 70 * @param resource $fh 71 * @return true 72 */ 58 73 function export_to_file_handle($fh) { 59 74 $entries = array_filter( $this->entries, array( $this, 'is_entry_good_for_export' ) ); … … 102 117 } 103 118 119 /** 120 * @param Translation_Entry $entry 121 * @return string 122 */ 104 123 function export_original($entry) { 105 124 //TODO: warnings for control characters … … 110 129 } 111 130 131 /** 132 * @param Translation_Entry $entry 133 * @return string 134 */ 112 135 function export_translations($entry) { 113 136 //TODO: warnings for control characters … … 115 138 } 116 139 140 /** 141 * @return string 142 */ 117 143 function export_headers() { 118 144 $exported = ''; … … 123 149 } 124 150 151 /** 152 * @param int $magic 153 * @return string|false 154 */ 125 155 function get_byteorder($magic) { 126 156 // The magic is 0x950412de … … 255 285 } 256 286 287 /** 288 * @param int $count 289 * @return string 290 */ 257 291 function select_plural_form($count) { 258 292 return $this->gettext_select_plural_form($count); 259 293 } 260 294 295 /** 296 * @return int 297 */ 261 298 function get_plural_forms_count() { 262 299 return $this->_nplurals; -
trunk/src/wp-includes/pomo/streams.php
r31829 r32672 102 102 } 103 103 104 104 /** 105 * @return int 106 */ 105 107 function pos() { 106 108 return $this->_pos; 107 109 } 108 110 111 /** 112 * @return true 113 */ 109 114 function is_resource() { 110 115 return true; 111 116 } 112 117 118 /** 119 * @return true 120 */ 113 121 function close() { 114 122 return true; … … 147 155 } 148 156 157 /** 158 * @return bool 159 */ 149 160 function is_resource() { 150 161 return is_resource($this->_f); 151 162 } 152 163 164 /** 165 * @return bool 166 */ 153 167 function feof() { 154 168 return feof($this->_f); 155 169 } 156 170 171 /** 172 * @return bool 173 */ 157 174 function close() { 158 175 return fclose($this->_f); 159 176 } 160 177 178 /** 179 * @return string 180 */ 161 181 function read_all() { 162 182 $all = ''; … … 204 224 } 205 225 226 /** 227 * @return int 228 */ 206 229 function length() { 207 230 return $this->strlen($this->_str); 208 231 } 209 232 233 /** 234 * @return string 235 */ 210 236 function read_all() { 211 237 return $this->substr($this->_str, $this->_pos, $this->strlen($this->_str)); -
trunk/src/wp-includes/pomo/translations.php
r30663 r32672 112 112 } 113 113 114 /** 115 * @return int 116 */ 114 117 function get_plural_forms_count() { 115 118 return 2; … … 147 150 } 148 151 152 /** 153 * @param object $other 154 */ 149 155 function merge_originals_with(&$other) { 150 156 foreach( $other->entries as $entry ) { … … 279 285 } 280 286 287 /** 288 * 289 * @param string $header 290 * @param string $value 291 */ 281 292 function set_header($header, $value) { 282 293 } 283 294 295 /** 296 * 297 * @param array $headers 298 */ 284 299 function set_headers($headers) { 285 300 } 286 301 302 /** 303 * @param string $header 304 * @return false 305 */ 287 306 function get_header($header) { 288 307 return false; 289 308 } 290 309 310 /** 311 * @param Translation_Entry $entry 312 * @return false 313 */ 291 314 function translate_entry(&$entry) { 292 315 return false; … … 301 324 } 302 325 326 /** 327 * 328 * @param int $count 329 * @return bool 330 */ 303 331 function select_plural_form($count) { 304 332 return 1 == $count? 0 : 1; 305 333 } 306 334 335 /** 336 * @return int 337 */ 307 338 function get_plural_forms_count() { 308 339 return 2; … … 319 350 } 320 351 352 /** 353 * @param object $other 354 */ 321 355 function merge_with(&$other) { 322 356 } -
trunk/src/wp-login.php
r32116 r32672 242 242 } 243 243 244 /** 245 * @since 3.0.0 246 */ 244 247 function wp_shake_js() { 245 248 if ( wp_is_mobile() ) … … 256 259 } 257 260 261 /** 262 * @since 3.7.0 263 */ 258 264 function wp_login_viewport_meta() { 259 265 ?>
Note: See TracChangeset
for help on using the changeset viewer.