Ticket #34032: 34032.patch
| File 34032.patch, 33.0 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/custom-background.php
18 18 /** 19 19 * Callback for administration header. 20 20 * 21 * @var call back21 * @var callable 22 22 * @since 3.0.0 23 23 */ 24 24 public $admin_header_callback; … … 26 26 /** 27 27 * Callback for header div. 28 28 * 29 * @var call back29 * @var callable 30 30 * @since 3.0.0 31 31 */ 32 32 public $admin_image_div_callback; … … 44 44 * Constructor - Register administration header callback. 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 = '') { 51 51 $this->admin_header_callback = $admin_header_callback; -
src/wp-admin/custom-header.php
18 18 /** 19 19 * Callback for administration header. 20 20 * 21 * @var call back21 * @var callable 22 22 * @since 2.1.0 23 23 */ 24 24 public $admin_header_callback; … … 26 26 /** 27 27 * Callback for header div. 28 28 * 29 * @var call back29 * @var callable 30 30 * @since 3.0.0 31 31 */ 32 32 public $admin_image_div_callback; … … 53 53 * Constructor - Register administration header callback. 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 = '') { 60 60 $this->admin_header_callback = $admin_header_callback; -
src/wp-admin/includes/class-wp-upgrader.php
2147 2147 * @access public 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. 2153 2153 * @param array $args { -
src/wp-admin/includes/dashboard.php
135 135 * 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 */ 142 142 function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null ) { … … 886 886 * @since 2.5.0 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. 892 892 */ -
src/wp-admin/includes/file.php
909 909 * 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. 915 915 * @param string $context Optional. Full path to the directory that is tested -
src/wp-admin/includes/import.php
48 48 * @param string $id Importer tag. Used to uniquely identify importer. 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 */ 54 54 function register_importer( $id, $name, $description, $callback ) { -
src/wp-admin/includes/meta-boxes.php
345 345 * 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 * } 351 351 */ … … 386 386 * 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. 392 392 * … … 442 442 * 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. 448 448 * -
src/wp-admin/includes/plugin.php
1014 1014 * @param string $menu_title The text to be used for the menu 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. 1020 1020 * This should begin with 'data:image/svg+xml;base64,'. … … 1074 1074 * @param string $menu_title The text to be used for the menu 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 * 1080 1080 * @return string The resulting page's hook_suffix … … 1102 1102 * @param string $menu_title The text to be used for the menu 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 * 1108 1108 * @return string The resulting page's hook_suffix … … 1136 1136 * @param string $menu_title The text to be used for the menu 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. 1142 1142 */ … … 1202 1202 * @param string $menu_title The text to be used for the menu 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. 1208 1208 */ … … 1223 1223 * @param string $menu_title The text to be used for the menu 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. 1229 1229 */ … … 1244 1244 * @param string $menu_title The text to be used for the menu 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. 1250 1250 */ … … 1265 1265 * @param string $menu_title The text to be used for the menu 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. 1271 1271 */ … … 1286 1286 * @param string $menu_title The text to be used for the menu 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. 1292 1292 */ … … 1310 1310 * @param string $menu_title The text to be used for the menu 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. 1316 1316 */ … … 1331 1331 * @param string $menu_title The text to be used for the menu 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. 1337 1337 */ … … 1352 1352 * @param string $menu_title The text to be used for the menu 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. 1358 1358 */ … … 1373 1373 * @param string $menu_title The text to be used for the menu 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. 1379 1379 */ … … 1394 1394 * @param string $menu_title The text to be used for the menu 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. 1400 1400 */ … … 1415 1415 * @param string $menu_title The text to be used for the menu 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. 1421 1421 */ -
src/wp-admin/includes/template-functions.php
850 850 * 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 856 856 * type, 'link', or 'comment'). Default is the current screen. -
src/wp-includes/SimplePie/Parse/Date.php
613 613 * 614 614 * @final 615 615 * @access public 616 * @param call back$callback616 * @param callable $callback 617 617 */ 618 618 public function add_callback($callback) 619 619 { -
src/wp-includes/deprecated.php
2080 2080 * @see wp_register_sidebar_widget() 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. 2086 2086 */ … … 2135 2135 * @see wp_register_widget_control() 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. 2141 2141 */ … … 2928 2928 * @deprecated 3.4.0 Use add_theme_support() 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 = '' ) { 2936 2936 _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' ); … … 2964 2964 * @deprecated 3.4.0 Use add_theme_support() 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 = '' ) { 2972 2972 _deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' ); -
src/wp-includes/functions.php
1873 1873 * 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 */ 1879 1879 function wp_unique_filename( $dir, $filename, $unique_filename_callback = null ) { … … 2395 2395 * 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' ); 2401 2401 } elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) { … … 2404 2404 * 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' ); 2410 2410 } else { … … 2413 2413 * 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' ); 2419 2419 } … … 4475 4475 * @since 3.1.0 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 ). 4481 4481 * Use null to always use $callback … … 4500 4500 * @since 3.1.0 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. 4506 4506 * Default empty array. -
src/wp-includes/media.php
2187 2187 * 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. 2193 2193 */ … … 2373 2373 * 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 ); 2379 2379 … … 2382 2382 * 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 ); 2388 2388 } -
src/wp-includes/nav-menu-template.php
219 219 * @type string $container Whether to wrap the ul, and what to wrap it with. Default 'div'. 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. 225 225 * @type string $after Text after the link text. Default empty. -
src/wp-includes/plugin.php
91 91 * it doesn't need to run through that process. 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. 97 97 * Lower numbers correspond with earlier execution, … … 117 117 * @global array $wp_filter Stores all of the filters. 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 123 123 * hook is returned, or false if the function is not attached. When using the … … 314 314 * @global array $merged_filters Merges the filter hooks using this function. 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. 320 320 */ … … 445 445 * @since 1.2.0 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. 451 451 * Lower numbers correspond with earlier execution, … … 613 613 * @see has_filter() has_action() is an alias of has_filter(). 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 619 619 * hook is returned, or false if the function is not attached. When using the … … 635 635 * @since 1.2.0 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. 641 641 */ … … 771 771 * @since 2.0.0 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) { 777 777 $file = plugin_basename($file); … … 794 794 * @since 2.0.0 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) { 800 800 $file = plugin_basename($file); … … 824 824 * @since 2.7.0 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 */ 830 830 function register_uninstall_hook( $file, $callback ) { … … 900 900 * @staticvar int $filter_id_count 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 906 906 * id only if it already has one, false otherwise. -
src/wp-includes/post-functions.php
940 940 * Default false. 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. 946 946 * @type array $taxonomies An array of taxonomy identifiers that will be registered for the -
src/wp-includes/rewrite-functions.php
86 86 * @global WP_Rewrite $wp_rewrite 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 */ 92 92 function add_feed($feedname, $function) { -
src/wp-includes/widget-functions.php
222 222 * 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. 228 228 * … … 364 364 * 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 */ 370 370 function wp_register_widget_control( $id, $name, $control_callback, $options = array() ) { … … 613 613 * 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. 619 619 * @type array $params An associative array of multi-widget arguments. -
src/wp-includes/widgets/class-wp-nav-menu-widget.php
53 53 * @param array $nav_menu_args { 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 * } 59 59 * @param stdClass $nav_menu Nav menu object for the current menu.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)