回答編集履歴

1

補足の追加。

2016/05/01 18:26

投稿

kei344
kei344

スコア69400

test CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  function my_scripts_method() {
8
8
 
9
- wp_deregister_script('jquery');
9
+ wp_deregister_script( 'jquery' );
10
10
 
11
- wp_enqueue_script('jquery','https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js', array(), '1.12.2');
11
+ wp_enqueue_script( 'jquery','https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js', array(), '1.12.2' );
12
12
 
13
- wp_enqueue_script('slick', get_template_directory_uri().'/js/slick.min.js', array('jquery'), '1.5.9', true );
13
+ wp_enqueue_script( 'slick', get_template_directory_uri().'/js/slick.min.js', array( 'jquery' ), '1.5.9', true );
14
14
 
15
15
  }
16
16
 
@@ -27,3 +27,19 @@
27
27
  【get_option() | Function | WordPress Developer Resources】
28
28
 
29
29
  [https://developer.wordpress.org/reference/functions/get_option/](https://developer.wordpress.org/reference/functions/get_option/)
30
+
31
+
32
+
33
+ ---
34
+
35
+
36
+
37
+ > jQueryは <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js?ver=1.12.2"></script> との記述がhtmlの<head></head>内に出力されていました。
38
+
39
+
40
+
41
+ 修正依頼のコメントでこう書かれていたので、多分こっちは問題ありません。(目的のものが出力されているので)
42
+
43
+
44
+
45
+ また、`'1.5.9', true )` の `true` を付けるとFooterに出力されると思われます。