回答編集履歴
1
PHP 5\.3 でも動くように修正
test
CHANGED
@@ -136,23 +136,23 @@
|
|
136
136
|
|
137
137
|
// Style of the Twenty Fifteen Child
|
138
138
|
|
139
|
-
wp_enqueue_style( 'twentyfifteen-child', get_stylesheet_directory_uri() . '/style.css',
|
139
|
+
wp_enqueue_style( 'twentyfifteen-child', get_stylesheet_directory_uri() . '/style.css', array( 'twentyfifteen' ) );
|
140
140
|
|
141
141
|
// Style of the MaxImage 2.0
|
142
142
|
|
143
|
-
wp_enqueue_style( 'jquery-maximage', get_stylesheet_directory_uri() . '/assets/css/jquery.maximage.min.css',
|
143
|
+
wp_enqueue_style( 'jquery-maximage', get_stylesheet_directory_uri() . '/assets/css/jquery.maximage.min.css', array( 'twentyfifteen-child' ) );
|
144
144
|
|
145
145
|
|
146
146
|
|
147
147
|
// Script of the MaxImage 2.0
|
148
148
|
|
149
|
-
wp_enqueue_script( 'jquery-cycle-all', get_stylesheet_directory_uri() . '/assets/js/jquery.cycle.all.min.js',
|
149
|
+
wp_enqueue_script( 'jquery-cycle-all', get_stylesheet_directory_uri() . '/assets/js/jquery.cycle.all.min.js', array( 'jquery' ), false, true );
|
150
|
-
|
150
|
+
|
151
|
-
wp_enqueue_script( 'jquery-maximage', get_stylesheet_directory_uri() . '/assets/js/jquery.maximage.min.js',
|
151
|
+
wp_enqueue_script( 'jquery-maximage', get_stylesheet_directory_uri() . '/assets/js/jquery.maximage.min.js', array( 'jquery', 'jquery-cycle-all' ), false, true );
|
152
152
|
|
153
153
|
// Script of the Twenty Fifteen Child
|
154
154
|
|
155
|
-
wp_enqueue_script( 'twentyfifteen-child', get_stylesheet_directory_uri() . '/assets/js/apps.js',
|
155
|
+
wp_enqueue_script( 'twentyfifteen-child', get_stylesheet_directory_uri() . '/assets/js/apps.js', array( 'jquery', 'jquery-cycle-all', 'jquery-maximage' ), false, true );
|
156
156
|
|
157
157
|
}
|
158
158
|
|