]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/update.php
WordPress 3.8
[autoinstalls/wordpress.git] / wp-admin / update.php
index b89ada27deeeeee7185e050d1a166fd35e910fab..4290e58d78a90eebedc174cbb8629a976dd69cb2 100644 (file)
@@ -252,6 +252,15 @@ if ( isset($_GET['action']) ) {
                include(ABSPATH . 'wp-admin/admin-footer.php');
 
        } else {
                include(ABSPATH . 'wp-admin/admin-footer.php');
 
        } else {
-               do_action('update-custom_' . $action);
+               /**
+                * Fires when a custom plugin or theme update request is received.
+                *
+                * The dynamic portion of the hook name, $action, refers to the action
+                * provided in the request for wp-admin/update.php. Can be used to
+                * provide custom update functionality for themes and plugins.
+                *
+                * @since 2.8.0
+                */
+               do_action( "update-custom_{$action}" );
        }
 }
        }
 }