mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 01:24:27 +00:00
Docs: Switch more docs over to typed array notation, plus some fixes.
See #48303, #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@46596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -704,8 +704,8 @@ function wp_get_active_and_valid_plugins() {
|
||||
*
|
||||
* @since 5.2.0
|
||||
*
|
||||
* @param array $plugins List of absolute plugin main file paths.
|
||||
* @return array Filtered value of $plugins, without any paused plugins.
|
||||
* @param string[] $plugins Array of absolute plugin main file paths.
|
||||
* @return string[] Filtered array of plugins, without any paused plugins.
|
||||
*/
|
||||
function wp_skip_paused_plugins( array $plugins ) {
|
||||
$paused_plugins = wp_paused_plugins()->get_all();
|
||||
@@ -774,8 +774,8 @@ function wp_get_active_and_valid_themes() {
|
||||
*
|
||||
* @since 5.2.0
|
||||
*
|
||||
* @param array $themes List of absolute theme directory paths.
|
||||
* @return array Filtered value of $themes, without any paused themes.
|
||||
* @param string[] $themes Array of absolute theme directory paths.
|
||||
* @return string[] Filtered array of themes, without any paused themes.
|
||||
*/
|
||||
function wp_skip_paused_themes( array $themes ) {
|
||||
$paused_themes = wp_paused_themes()->get_all();
|
||||
@@ -882,7 +882,7 @@ function is_protected_ajax_action() {
|
||||
*
|
||||
* @since 5.2.0
|
||||
*
|
||||
* @param array $actions_to_protect Array of strings with AJAX actions to protect.
|
||||
* @param string[] $actions_to_protect Array of strings with AJAX actions to protect.
|
||||
*/
|
||||
$actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user