From b9bbdabfe7b5fcf47fd8f5ca18712a81362a1b68 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 11 Sep 2015 05:04:23 +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. Built from https://develop.svn.wordpress.org/trunk@34037 git-svn-id: http://core.svn.wordpress.org/trunk@34005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/noop.php | 106 ++++++++++++++++++++++++++++++++++++ wp-admin/load-scripts.php | 108 ++----------------------------------- wp-admin/load-styles.php | 87 +----------------------------- wp-includes/version.php | 2 +- 4 files changed, 111 insertions(+), 192 deletions(-) create mode 100644 wp-admin/includes/noop.php diff --git a/wp-admin/includes/noop.php b/wp-admin/includes/noop.php new file mode 100644 index 0000000000..43264c2451 --- /dev/null +++ b/wp-admin/includes/noop.php @@ -0,0 +1,106 @@ +