Changeset 46695
- Timestamp:
- 11/11/2019 12:03:53 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r46694 r46695 1757 1757 1758 1758 /** 1759 * Get the urlto access a particular menu page based on the slug it was registered with.1760 * 1761 * If the slug hasn't been registered properly no url will be returned1759 * Get the URL to access a particular menu page based on the slug it was registered with. 1760 * 1761 * If the slug hasn't been registered properly, no URL will be returned. 1762 1762 * 1763 1763 * @since 3.0.0 … … 1765 1765 * @global array $_parent_pages 1766 1766 * 1767 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu) 1768 * @param bool $echo Whether or not to echo the url - default is true1769 * @return string the url1767 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1768 * @param bool $echo Whether or not to echo the URL. Default true. 1769 * @return string The menu page URL. 1770 1770 */ 1771 1771 function menu_page_url( $menu_slug, $echo = true ) { … … 2187 2187 * @since 2.7.0 2188 2188 * 2189 * @param string $option_group A settings group name. This should match the group name used in register_setting(). 2189 * @param string $option_group A settings group name. This should match the group name 2190 * used in register_setting(). 2190 2191 */ 2191 2192 function settings_fields( $option_group ) { … … 2196 2197 2197 2198 /** 2198 * Clears the Plugins cache used by get_plugins() and by default, the Plugin Updatecache.2199 * Clears the plugins cache used by get_plugins() and by default, the plugin updates cache. 2199 2200 * 2200 2201 * @since 3.7.0 2201 2202 * 2202 * @param bool $clear_update_cache Whether to clear the Plugin updates cache2203 * @param bool $clear_update_cache Whether to clear the plugin updates cache. Default true. 2203 2204 */ 2204 2205 function wp_clean_plugins_cache( $clear_update_cache = true ) { … … 2242 2243 * @since 4.9.6 2243 2244 * 2244 * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy. 2245 * @param string $plugin_name The name of the plugin or theme that is suggesting content 2246 * for the site's privacy policy. 2245 2247 * @param string $policy_text The suggested content for inclusion in the policy. 2246 2248 */ … … 2288 2290 * 2289 2291 * @param string $plugin Path to the plugin file relative to the plugins directory. 2290 * @return bool True, if in the list of paused plugins. False, not in the list.2292 * @return bool True, if in the list of paused plugins. False, if not in the list. 2291 2293 */ 2292 2294 function is_plugin_paused( $plugin ) { … … 2309 2311 * @since 5.2.0 2310 2312 * 2311 * @param string $plugin Path to the plugin file relative to the plugins 2312 * directory. 2313 * @return array|false Array of error information as it was returned by 2314 * `error_get_last()`, or false if none was recorded. 2313 * @param string $plugin Path to the plugin file relative to the plugins directory. 2314 * @return array|false Array of error information as returned by `error_get_last()`, 2315 * or false if none was recorded. 2315 2316 */ 2316 2317 function wp_get_plugin_error( $plugin ) { … … 2340 2341 * @since 5.2.0 2341 2342 * 2342 * @param string $plugin 2343 * @param string $redirect 2343 * @param string $plugin Single plugin to resume. 2344 * @param string $redirect Optional. URL to redirect to. Default empty string. 2344 2345 * @return bool|WP_Error True on success, false if `$plugin` was not paused, 2345 2346 * `WP_Error` on failure.
Note: See TracChangeset
for help on using the changeset viewer.