質問編集履歴

1

書式の改善

2020/03/12 05:50

投稿

maimaipm
maimaipm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -26,37 +26,9 @@
26
26
 
27
27
  ### 発生している問題・エラーメッセージ
28
28
 
29
+ Assigning the return value of new by reference is deprecated in PHP 5.3 and has been removed in PHP 7.0
29
30
 
30
-
31
- FILE: /home/users/2/ドメイン/web/wp-content/themes/wp.vicuna.ext/search.php
32
-
33
- ----------------------------------------------------------------------------------------------------------------------
34
-
35
- FOUND 1 ERROR AFFECTING 1 LINE
36
-
37
- ----------------------------------------------------------------------------------------------------------------------
38
-
39
- 18 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and has been removed in PHP 7.0
40
-
41
- ----------------------------------------------------------------------------------------------------------------------
42
-
43
-
44
-
45
-
46
-
47
- FILE: /home/users/2/ドメイン/web/wp-content/themes/wp.vicuna.ext/functions.php
48
-
49
- ----------------------------------------------------------------------------------------------------------------
50
-
51
- FOUND 2 ERRORS AFFECTING 2 LINES
52
-
53
- ----------------------------------------------------------------------------------------------------------------
54
-
55
- 358 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
31
+ Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
56
-
57
- 446 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
58
-
59
- ----------------------------------------------------------------------------------------------------------------
60
32
 
61
33
 
62
34
 
@@ -64,9 +36,67 @@
64
36
 
65
37
 
66
38
 
67
- ```ここに言語名を入力
39
+ ```
68
40
 
69
- ソースコード
41
+ <div id="content">
42
+
43
+ <div id="main">
44
+
45
+ <p class="topicPath"><a href="<?php bloginfo('home'); ?>" title="<?php _e('Home', 'vicuna'); ?>"><?php _e('Home', 'vicuna'); ?></a> &gt; <span class="current"><?php _e('検索結果', 'vicuna'); ?></span></p>
46
+
47
+ <h1><?php _e('検索結果', 'vicuna'); ?></h1>
48
+
49
+ <p><?php $allsearch =& new WP_Query("s=$s&showposts=-1"); printf(__('Result <span class="count">%s</span> for <em>%s</em>', 'vicuna'), $allsearch->post_count, wp_specialchars($s, 1)); ?></p>
50
+
51
+ <?php
52
+
53
+ ```
54
+
55
+
56
+
57
+ ```
58
+
59
+ function indent_entry_body($content) {
60
+
61
+ // indent depth (from div.textBody p)
62
+
63
+ $indent = 4;
64
+
65
+ for ($i = 0; $i < $indent; $i ++)
66
+
67
+ $indentText .= "\t";
68
+
69
+
70
+
71
+ $pre_flag = false;
72
+
73
+ $arr_content = split("\n", $content);
74
+
75
+
76
+
77
+ ```
78
+
79
+
80
+
81
+ ```ここに言語を入力
82
+
83
+ function indent_comment_body($content) {
84
+
85
+ // indent depth (from div.textBody p)
86
+
87
+ $indent = 7;
88
+
89
+ for ($i = 0; $i < $indent; $i ++)
90
+
91
+ $indentText .= "\t";
92
+
93
+
94
+
95
+ $pre_flag = false;
96
+
97
+ $arr_content = split("\n", $content);
98
+
99
+
70
100
 
71
101
  ```
72
102