回答編集履歴

1

PHP 5\.3 でも動くように修正

2016/06/07 13:26

投稿

退会済みユーザー
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', [ 'twentyfifteen' ] );
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', [ 'twentyfifteen-child' ] );
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', [ 'jquery' ], false, true );
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', [ 'jquery', 'jquery-cycle-all' ], false, true );
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', [ 'jquery', 'jquery-cycle-all', 'jquery-maximage' ], false, true );
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