@@ -613,7 +613,7 @@ function is_network_only_plugin( $plugin ) {
613613 * @param bool $network_wide Optional. Whether to enable the plugin for all sites in the network
614614 * or just the current site. Multisite only. Default false.
615615 * @param bool $silent Optional. Whether to prevent calling activation hooks. Default false.
616- * @return null|WP_Error WP_Error on invalid file or null on success .
616+ * @return null|WP_Error Null on success, WP_Error on invalid file .
617617 */
618618function activate_plugin ( $ plugin , $ redirect = '' , $ network_wide = false , $ silent = false ) {
619619 $ plugin = plugin_basename ( trim ( $ plugin ) );
@@ -1342,7 +1342,7 @@ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $func
13421342 * to be compatible with sanitize_key().
13431343 * @param callable $function The function to be called to output the content for this page.
13441344 * @param int $position The position in the menu order this item should appear.
1345- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1345+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
13461346 */
13471347function add_submenu_page ( $ parent_slug , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
13481348 global $ submenu , $ menu , $ _wp_real_parent_file , $ _wp_submenu_nopriv ,
@@ -1454,7 +1454,7 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability,
14541454 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
14551455 * @param callable $function The function to be called to output the content for this page.
14561456 * @param int $position The position in the menu order this item should appear.
1457- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1457+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
14581458 */
14591459function add_management_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
14601460 return add_submenu_page ( 'tools.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1478,7 +1478,7 @@ function add_management_page( $page_title, $menu_title, $capability, $menu_slug,
14781478 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
14791479 * @param callable $function The function to be called to output the content for this page.
14801480 * @param int $position The position in the menu order this item should appear.
1481- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1481+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
14821482 */
14831483function add_options_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
14841484 return add_submenu_page ( 'options-general.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1502,7 +1502,7 @@ function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $f
15021502 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
15031503 * @param callable $function The function to be called to output the content for this page.
15041504 * @param int $position The position in the menu order this item should appear.
1505- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1505+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
15061506 */
15071507function add_theme_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
15081508 return add_submenu_page ( 'themes.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1526,7 +1526,7 @@ function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $fun
15261526 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
15271527 * @param callable $function The function to be called to output the content for this page.
15281528 * @param int $position The position in the menu order this item should appear.
1529- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1529+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
15301530 */
15311531function add_plugins_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
15321532 return add_submenu_page ( 'plugins.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1550,7 +1550,7 @@ function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $f
15501550 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
15511551 * @param callable $function The function to be called to output the content for this page.
15521552 * @param int $position The position in the menu order this item should appear.
1553- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1553+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
15541554 */
15551555function add_users_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
15561556 if ( current_user_can ( 'edit_users ' ) ) {
@@ -1579,7 +1579,7 @@ function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $fun
15791579 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
15801580 * @param callable $function The function to be called to output the content for this page.
15811581 * @param int $position The position in the menu order this item should appear.
1582- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1582+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
15831583 */
15841584function add_dashboard_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
15851585 return add_submenu_page ( 'index.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1603,7 +1603,7 @@ function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug,
16031603 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
16041604 * @param callable $function The function to be called to output the content for this page.
16051605 * @param int $position The position in the menu order this item should appear.
1606- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1606+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
16071607 */
16081608function add_posts_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
16091609 return add_submenu_page ( 'edit.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1627,7 +1627,7 @@ function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $fun
16271627 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
16281628 * @param callable $function The function to be called to output the content for this page.
16291629 * @param int $position The position in the menu order this item should appear.
1630- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1630+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
16311631 */
16321632function add_media_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
16331633 return add_submenu_page ( 'upload.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1651,7 +1651,7 @@ function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $fun
16511651 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
16521652 * @param callable $function The function to be called to output the content for this page.
16531653 * @param int $position The position in the menu order this item should appear.
1654- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1654+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
16551655 */
16561656function add_links_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
16571657 return add_submenu_page ( 'link-manager.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1675,7 +1675,7 @@ function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $fun
16751675 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
16761676 * @param callable $function The function to be called to output the content for this page.
16771677 * @param int $position The position in the menu order this item should appear.
1678- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1678+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
16791679 */
16801680function add_pages_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
16811681 return add_submenu_page ( 'edit.php?post_type=page ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
@@ -1699,7 +1699,7 @@ function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $fun
16991699 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
17001700 * @param callable $function The function to be called to output the content for this page.
17011701 * @param int $position The position in the menu order this item should appear.
1702- * @return false| string The resulting page's hook_suffix, or false if the user does not have the capability required.
1702+ * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
17031703 */
17041704function add_comments_page ( $ page_title , $ menu_title , $ capability , $ menu_slug , $ function = '' , $ position = null ) {
17051705 return add_submenu_page ( 'edit-comments.php ' , $ page_title , $ menu_title , $ capability , $ menu_slug , $ function , $ position );
0 commit comments