From 3f557063bec144714f1bf0576301a6ef4ce7d00b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 11 Sep 2015 05:03:55 +0000 Subject: [PATCH] Create a new file, `wp-admin/includes/noop.php`, which loads all of the noop functions for `load-script|styles.php` and is only loaded by those files. DRYs in the process. See #33813. git-svn-id: https://develop.svn.wordpress.org/trunk@34037 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/noop.php | 106 ++++++++++++++++++++++++++++++++ src/wp-admin/load-scripts.php | 108 +-------------------------------- src/wp-admin/load-styles.php | 87 +------------------------- 3 files changed, 110 insertions(+), 191 deletions(-) create mode 100644 src/wp-admin/includes/noop.php diff --git a/src/wp-admin/includes/noop.php b/src/wp-admin/includes/noop.php new file mode 100644 index 0000000000..43264c2451 --- /dev/null +++ b/src/wp-admin/includes/noop.php @@ -0,0 +1,106 @@ +