Changeset 34566
- Timestamp:
- 09/25/2015 11:57:46 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-background.php
r34490 r34566 19 19 * Callback for administration header. 20 20 * 21 * @var call back21 * @var callable 22 22 * @since 3.0.0 23 23 */ … … 27 27 * Callback for header div. 28 28 * 29 * @var call back29 * @var callable 30 30 * @since 3.0.0 31 31 */ … … 45 45 * 46 46 * @since 3.0.0 47 * @param call back$admin_header_callback48 * @param call back$admin_image_div_callback Optional custom image div output callback.47 * @param callable $admin_header_callback 48 * @param callable $admin_image_div_callback Optional custom image div output callback. 49 49 */ 50 50 public function __construct($admin_header_callback = '', $admin_image_div_callback = '') { -
trunk/src/wp-admin/custom-header.php
r34491 r34566 19 19 * Callback for administration header. 20 20 * 21 * @var call back21 * @var callable 22 22 * @since 2.1.0 23 23 */ … … 27 27 * Callback for header div. 28 28 * 29 * @var call back29 * @var callable 30 30 * @since 3.0.0 31 31 */ … … 54 54 * 55 55 * @since 2.1.0 56 * @param call back$admin_header_callback57 * @param call back$admin_image_div_callback Optional custom image div output callback.56 * @param callable $admin_header_callback 57 * @param callable $admin_image_div_callback Optional custom image div output callback. 58 58 */ 59 59 public function __construct($admin_header_callback, $admin_image_div_callback = '') { -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r34543 r34566 2148 2148 * 2149 2149 * @global WP_Filesystem_Base $wp_filesystem Subclass 2150 * @global call back$_wp_filesystem_direct_method2150 * @global callable $_wp_filesystem_direct_method 2151 2151 * 2152 2152 * @param object $current Response object for whether WordPress is current. -
trunk/src/wp-admin/includes/dashboard.php
r34565 r34566 136 136 * @param string $widget_id 137 137 * @param string $widget_name 138 * @param call back$callback139 * @param call back$control_callback138 * @param callable $callback 139 * @param callable $control_callback 140 140 * @param array $callback_args 141 141 */ … … 887 887 * 888 888 * @param string $widget_id 889 * @param call back$callback889 * @param callable $callback 890 890 * @param array $check_urls RSS feeds 891 891 * @return bool False on failure. True on success. -
trunk/src/wp-admin/includes/file.php
r34348 r34566 910 910 * @since 2.5.0 911 911 * 912 * @global call back$_wp_filesystem_direct_method912 * @global callable $_wp_filesystem_direct_method 913 913 * 914 914 * @param array $args Optional. Connection details. Default empty array. -
trunk/src/wp-admin/includes/import.php
r32655 r34566 49 49 * @param string $name Importer name and title. 50 50 * @param string $description Importer description. 51 * @param call back$callback Callback to run.51 * @param callable $callback Callback to run. 52 52 * @return WP_Error Returns WP_Error when $callback is WP_Error. 53 53 */ -
trunk/src/wp-admin/includes/meta-boxes.php
r34364 r34566 346 346 * @type string $id Meta box ID. 347 347 * @type string $title Meta box title. 348 * @type call back$callback Meta box display callback.348 * @type callable $callback Meta box display callback. 349 349 * @type array $args Extra meta box arguments. 350 350 * } … … 387 387 * @type string $id Meta box ID. 388 388 * @type string $title Meta box title. 389 * @type call back$callback Meta box display callback.389 * @type callable $callback Meta box display callback. 390 390 * @type array $args { 391 391 * Extra meta box arguments. … … 443 443 * @type string $id Meta box ID. 444 444 * @type string $title Meta box title. 445 * @type call back$callback Meta box display callback.445 * @type callable $callback Meta box display callback. 446 446 * @type array $args { 447 447 * Extra meta box arguments. -
trunk/src/wp-admin/includes/plugin.php
r34314 r34566 1015 1015 * @param string $capability The capability required for this menu to be displayed to the user. 1016 1016 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1017 * @param call back$function The function to be called to output the content for this page.1017 * @param callable $function The function to be called to output the content for this page. 1018 1018 * @param string $icon_url The url to the icon to be used for this menu. 1019 1019 * * Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme. … … 1075 1075 * @param string $capability The capability required for this menu to be displayed to the user. 1076 1076 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1077 * @param call back$function The function to be called to output the content for this page.1077 * @param callable $function The function to be called to output the content for this page. 1078 1078 * @param string $icon_url The url to the icon to be used for this menu 1079 1079 * … … 1103 1103 * @param string $capability The capability required for this menu to be displayed to the user. 1104 1104 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1105 * @param call back$function The function to be called to output the content for this page.1105 * @param callable $function The function to be called to output the content for this page. 1106 1106 * @param string $icon_url The url to the icon to be used for this menu 1107 1107 * … … 1137 1137 * @param string $capability The capability required for this menu to be displayed to the user. 1138 1138 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1139 * @param call back$function The function to be called to output the content for this page.1139 * @param callable $function The function to be called to output the content for this page. 1140 1140 * 1141 1141 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1203 1203 * @param string $capability The capability required for this menu to be displayed to the user. 1204 1204 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1205 * @param call back$function The function to be called to output the content for this page.1205 * @param callable $function The function to be called to output the content for this page. 1206 1206 * 1207 1207 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1224 1224 * @param string $capability The capability required for this menu to be displayed to the user. 1225 1225 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1226 * @param call back$function The function to be called to output the content for this page.1226 * @param callable $function The function to be called to output the content for this page. 1227 1227 * 1228 1228 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1245 1245 * @param string $capability The capability required for this menu to be displayed to the user. 1246 1246 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1247 * @param call back$function The function to be called to output the content for this page.1247 * @param callable $function The function to be called to output the content for this page. 1248 1248 * 1249 1249 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1266 1266 * @param string $capability The capability required for this menu to be displayed to the user. 1267 1267 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1268 * @param call back$function The function to be called to output the content for this page.1268 * @param callable $function The function to be called to output the content for this page. 1269 1269 * 1270 1270 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1287 1287 * @param string $capability The capability required for this menu to be displayed to the user. 1288 1288 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1289 * @param call back$function The function to be called to output the content for this page.1289 * @param callable $function The function to be called to output the content for this page. 1290 1290 * 1291 1291 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1311 1311 * @param string $capability The capability required for this menu to be displayed to the user. 1312 1312 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1313 * @param call back$function The function to be called to output the content for this page.1313 * @param callable $function The function to be called to output the content for this page. 1314 1314 * 1315 1315 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1332 1332 * @param string $capability The capability required for this menu to be displayed to the user. 1333 1333 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1334 * @param call back$function The function to be called to output the content for this page.1334 * @param callable $function The function to be called to output the content for this page. 1335 1335 * 1336 1336 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1353 1353 * @param string $capability The capability required for this menu to be displayed to the user. 1354 1354 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1355 * @param call back$function The function to be called to output the content for this page.1355 * @param callable $function The function to be called to output the content for this page. 1356 1356 * 1357 1357 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1374 1374 * @param string $capability The capability required for this menu to be displayed to the user. 1375 1375 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1376 * @param call back$function The function to be called to output the content for this page.1376 * @param callable $function The function to be called to output the content for this page. 1377 1377 * 1378 1378 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1395 1395 * @param string $capability The capability required for this menu to be displayed to the user. 1396 1396 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1397 * @param call back$function The function to be called to output the content for this page.1397 * @param callable $function The function to be called to output the content for this page. 1398 1398 * 1399 1399 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. … … 1416 1416 * @param string $capability The capability required for this menu to be displayed to the user. 1417 1417 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1418 * @param call back$function The function to be called to output the content for this page.1418 * @param callable $function The function to be called to output the content for this page. 1419 1419 * 1420 1420 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. -
trunk/src/wp-admin/includes/template-functions.php
r34427 r34566 851 851 * @param string $id String for use in the 'id' attribute of tags. 852 852 * @param string $title Title of the meta box. 853 * @param call back$callback Function that fills the box with the desired content.853 * @param callable $callback Function that fills the box with the desired content. 854 854 * The function should echo its output. 855 855 * @param string|WP_Screen $screen Optional. The screen on which to show the box (like a post -
trunk/src/wp-includes/SimplePie/Parse/Date.php
r22798 r34566 614 614 * @final 615 615 * @access public 616 * @param call back$callback616 * @param callable $callback 617 617 */ 618 618 public function add_callback($callback) -
trunk/src/wp-includes/deprecated.php
r33969 r34566 2081 2081 * 2082 2082 * @param string|int $name Widget ID. 2083 * @param call back$output_callback Run when widget is called.2083 * @param callable $output_callback Run when widget is called. 2084 2084 * @param string $classname Classname widget option. 2085 2085 * @param mixed $params ,... Widget parameters. … … 2136 2136 * 2137 2137 * @param int|string $name Sidebar ID. 2138 * @param call back$control_callback Widget control callback to display and process form.2138 * @param callable $control_callback Widget control callback to display and process form. 2139 2139 * @param int $width Widget width. 2140 2140 * @param int $height Widget height. … … 2929 2929 * @see add_theme_support() 2930 2930 * 2931 * @param call back$wp_head_callback Call on 'wp_head' action.2932 * @param call back$admin_head_callback Call on custom header administration screen.2933 * @param call back$admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.2931 * @param callable $wp_head_callback Call on 'wp_head' action. 2932 * @param callable $admin_head_callback Call on custom header administration screen. 2933 * @param callable $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional. 2934 2934 */ 2935 2935 function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) { … … 2965 2965 * @see add_theme_support() 2966 2966 * 2967 * @param call back$wp_head_callback Call on 'wp_head' action.2968 * @param call back$admin_head_callback Call on custom background administration screen.2969 * @param call back$admin_preview_callback Output a custom background image div on the custom background administration screen. Optional.2967 * @param callable $wp_head_callback Call on 'wp_head' action. 2968 * @param callable $admin_head_callback Call on custom background administration screen. 2969 * @param callable $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional. 2970 2970 */ 2971 2971 function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) { -
trunk/src/wp-includes/functions.php
r34512 r34566 1874 1874 * @param string $dir Directory. 1875 1875 * @param string $filename File name. 1876 * @param call back$unique_filename_callback Callback. Default null.1876 * @param callable $unique_filename_callback Callback. Default null. 1877 1877 * @return string New filename, if given wasn't unique. 1878 1878 */ … … 2396 2396 * @since 3.4.0 2397 2397 * 2398 * @param call back$function Callback function name.2398 * @param callable $function Callback function name. 2399 2399 */ 2400 2400 $function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' ); … … 2405 2405 * @since 3.4.0 2406 2406 * 2407 * @param call back$function Callback function name.2407 * @param callable $function Callback function name. 2408 2408 */ 2409 2409 $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' ); … … 2414 2414 * @since 3.0.0 2415 2415 * 2416 * @param call back$function Callback function name.2416 * @param callable $function Callback function name. 2417 2417 */ 2418 2418 $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' ); … … 4476 4476 * @access private 4477 4477 * 4478 * @param call back$callback Function that accepts ( ID, $callback_args ) and outputs parent_ID.4478 * @param callable $callback Function that accepts ( ID, $callback_args ) and outputs parent_ID. 4479 4479 * @param int $start The ID to start the loop check at. 4480 4480 * @param int $start_parent The parent_ID of $start to use instead of calling $callback( $start ). … … 4501 4501 * @access private 4502 4502 * 4503 * @param call back$callback Function that accepts ( ID, callback_arg, ... ) and outputs parent_ID.4503 * @param callable $callback Function that accepts ( ID, callback_arg, ... ) and outputs parent_ID. 4504 4504 * @param int $start The ID to start the loop check at. 4505 4505 * @param array $override Optional. An array of ( ID => parent_ID, ... ) to use instead of $callback. -
trunk/src/wp-includes/media.php
r34472 r34566 2188 2188 * @param string $id An internal ID/name for the handler. Needs to be unique. 2189 2189 * @param string $regex The regex that will be used to see if this handler should be used for a URL. 2190 * @param call back$callback The callback function that will be called if the regex is matched.2190 * @param callable $callback The callback function that will be called if the regex is matched. 2191 2191 * @param int $priority Optional. Used to specify the order in which the registered handlers will 2192 2192 * be tested. Default 10. … … 2374 2374 * @since 3.6.0 2375 2375 * 2376 * @param call back$handler Audio embed handler callback function.2376 * @param callable $handler Audio embed handler callback function. 2377 2377 */ 2378 2378 wp_embed_register_handler( 'audio', '#^https?://.+?\.(' . join( '|', wp_get_audio_extensions() ) . ')$#i', apply_filters( 'wp_audio_embed_handler', 'wp_embed_handler_audio' ), 9999 ); … … 2383 2383 * @since 3.6.0 2384 2384 * 2385 * @param call back$handler Video embed handler callback function.2385 * @param callable $handler Video embed handler callback function. 2386 2386 */ 2387 2387 wp_embed_register_handler( 'video', '#^https?://.+?\.(' . join( '|', wp_get_video_extensions() ) . ')$#i', apply_filters( 'wp_video_embed_handler', 'wp_embed_handler_video' ), 9999 ); -
trunk/src/wp-includes/nav-menu-template.php
r34507 r34566 220 220 * @type string $container_class Class that is applied to the container. Default 'menu-{menu slug}-container'. 221 221 * @type string $container_id The ID that is applied to the container. Default empty. 222 * @type call back|bool $fallback_cb If the menu doesn't exists, a callback function will fire.222 * @type callable|bool $fallback_cb If the menu doesn't exists, a callback function will fire. 223 223 * Default is 'wp_page_menu'. Set to false for no fallback. 224 224 * @type string $before Text before the link text. Default empty. -
trunk/src/wp-includes/plugin.php
r34288 r34566 92 92 * 93 93 * @param string $tag The name of the filter to hook the $function_to_add callback to. 94 * @param call back$function_to_add The callback to be run when the filter is applied.94 * @param callable $function_to_add The callback to be run when the filter is applied. 95 95 * @param int $priority Optional. Used to specify the order in which the functions 96 96 * associated with a particular action are executed. Default 10. … … 118 118 * 119 119 * @param string $tag The name of the filter hook. 120 * @param call back|bool $function_to_check Optional. The callback to check for. Default false.120 * @param callable|bool $function_to_check Optional. The callback to check for. Default false. 121 121 * @return false|int If $function_to_check is omitted, returns boolean for whether the hook has 122 122 * anything registered. When checking a specific function, the priority of that … … 315 315 * 316 316 * @param string $tag The filter hook to which the function to be removed is hooked. 317 * @param call back$function_to_remove The name of the function which should be removed.317 * @param callable $function_to_remove The name of the function which should be removed. 318 318 * @param int $priority Optional. The priority of the function. Default 10. 319 319 * @return bool Whether the function existed before it was removed. … … 446 446 * 447 447 * @param string $tag The name of the action to which the $function_to_add is hooked. 448 * @param call back$function_to_add The name of the function you wish to be called.448 * @param callable $function_to_add The name of the function you wish to be called. 449 449 * @param int $priority Optional. Used to specify the order in which the functions 450 450 * associated with a particular action are executed. Default 10. … … 614 614 * 615 615 * @param string $tag The name of the action hook. 616 * @param call back|bool $function_to_check Optional. The callback to check for. Default false.616 * @param callable|bool $function_to_check Optional. The callback to check for. Default false. 617 617 * @return bool|int If $function_to_check is omitted, returns boolean for whether the hook has 618 618 * anything registered. When checking a specific function, the priority of that … … 636 636 * 637 637 * @param string $tag The action hook to which the function to be removed is hooked. 638 * @param call back$function_to_remove The name of the function which should be removed.638 * @param callable $function_to_remove The name of the function which should be removed. 639 639 * @param int $priority Optional. The priority of the function. Default 10. 640 640 * @return bool Whether the function is removed. … … 772 772 * 773 773 * @param string $file The filename of the plugin including the path. 774 * @param call back$function The function hooked to the 'activate_PLUGIN' action.774 * @param callable $function The function hooked to the 'activate_PLUGIN' action. 775 775 */ 776 776 function register_activation_hook($file, $function) { … … 795 795 * 796 796 * @param string $file The filename of the plugin including the path. 797 * @param call back$function The function hooked to the 'deactivate_PLUGIN' action.797 * @param callable $function The function hooked to the 'deactivate_PLUGIN' action. 798 798 */ 799 799 function register_deactivation_hook($file, $function) { … … 825 825 * 826 826 * @param string $file Plugin file. 827 * @param call back$callback The callback to run when the hook is called. Must be827 * @param callable $callback The callback to run when the hook is called. Must be 828 828 * a static method or function. 829 829 */ … … 901 901 * 902 902 * @param string $tag Used in counting how many hooks were applied 903 * @param call back$function Used for creating unique id903 * @param callable $function Used for creating unique id 904 904 * @param int|bool $priority Used in counting how many hooks were applied. If === false 905 905 * and $function is an object reference, we return the unique -
trunk/src/wp-includes/post-functions.php
r34513 r34566 941 941 * @type array $supports An alias for calling {@see add_post_type_support()} directly. 942 942 * Defaults to array containing 'title' & 'editor'. 943 * @type call back$register_meta_box_cb Provide a callback function that sets up the meta boxes for the943 * @type callable $register_meta_box_cb Provide a callback function that sets up the meta boxes for the 944 944 * edit form. Do remove_meta_box() and add_meta_box() calls in the 945 945 * callback. Default null. -
trunk/src/wp-includes/rewrite-functions.php
r34492 r34566 87 87 * 88 88 * @param string $feedname 89 * @param call back$function Callback to run on feed display.89 * @param callable $function Callback to run on feed display. 90 90 * @return string Feed action name. 91 91 */ -
trunk/src/wp-includes/widget-functions.php
r34465 r34566 223 223 * @param int|string $id Widget ID. 224 224 * @param string $name Widget display title. 225 * @param call back$output_callback Run when widget is called.225 * @param callable $output_callback Run when widget is called. 226 226 * @param array $options { 227 227 * Optional. An array of supplementary widget options for the instance. … … 365 365 * @param int|string $id Sidebar ID. 366 366 * @param string $name Sidebar display name. 367 * @param call back$control_callback Run when sidebar is displayed.367 * @param callable $control_callback Run when sidebar is displayed. 368 368 * @param array|string $options Optional. Widget options. See description above. Default empty array. 369 369 */ … … 614 614 * @type string $name Name of the widget. 615 615 * @type string $id Widget ID. 616 * @type array|call back$callback When the hook is fired on the front-end, $callback is an array616 * @type array|callable $callback When the hook is fired on the front-end, $callback is an array 617 617 * containing the widget object. Fired on the back-end, $callback 618 618 * is 'wp_widget_control', see $_callback. -
trunk/src/wp-includes/widgets/class-wp-nav-menu-widget.php
r34428 r34566 54 54 * An array of arguments passed to wp_nav_menu() to retrieve a custom menu. 55 55 * 56 * @type call back|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty.56 * @type callable|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty. 57 57 * @type mixed $menu Menu ID, slug, or name. 58 58 * }
Note: See TracChangeset
for help on using the changeset viewer.