質問編集履歴
1
書式の改善
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,29 +12,44 @@
|
|
12
12
|
|
13
13
|
PHPを勉強し始めたばかりの初心者です。ご教授お願い致します。
|
14
14
|
### 発生している問題・エラーメッセージ
|
15
|
+
Assigning the return value of new by reference is deprecated in PHP 5.3 and has been removed in PHP 7.0
|
16
|
+
Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
|
15
17
|
|
16
|
-
FILE: /home/users/2/ドメイン/web/wp-content/themes/wp.vicuna.ext/search.php
|
17
|
-
----------------------------------------------------------------------------------------------------------------------
|
18
|
-
|
18
|
+
### 該当のソースコード
|
19
|
-
----------------------------------------------------------------------------------------------------------------------
|
20
|
-
18 | ERROR | Assigning the return value of new by reference is deprecated in PHP 5.3 and has been removed in PHP 7.0
|
21
|
-
----------------------------------------------------------------------------------------------------------------------
|
22
19
|
|
20
|
+
```
|
21
|
+
<div id="content">
|
22
|
+
<div id="main">
|
23
|
+
<p class="topicPath"><a href="<?php bloginfo('home'); ?>" title="<?php _e('Home', 'vicuna'); ?>"><?php _e('Home', 'vicuna'); ?></a> > <span class="current"><?php _e('検索結果', 'vicuna'); ?></span></p>
|
24
|
+
<h1><?php _e('検索結果', 'vicuna'); ?></h1>
|
25
|
+
<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>
|
26
|
+
<?php
|
27
|
+
```
|
23
28
|
|
29
|
+
```
|
30
|
+
function indent_entry_body($content) {
|
24
|
-
|
31
|
+
// indent depth (from div.textBody p)
|
25
|
-
|
32
|
+
$indent = 4;
|
26
|
-
|
33
|
+
for ($i = 0; $i < $indent; $i ++)
|
27
|
-
----------------------------------------------------------------------------------------------------------------
|
28
|
-
|
34
|
+
$indentText .= "\t";
|
29
|
-
446 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
|
30
|
-
----------------------------------------------------------------------------------------------------------------
|
31
35
|
|
32
|
-
|
36
|
+
$pre_flag = false;
|
37
|
+
$arr_content = split("\n", $content);
|
33
38
|
|
34
|
-
```ここに言語名を入力
|
35
|
-
ソースコード
|
36
39
|
```
|
37
40
|
|
41
|
+
```ここに言語を入力
|
42
|
+
function indent_comment_body($content) {
|
43
|
+
// indent depth (from div.textBody p)
|
44
|
+
$indent = 7;
|
45
|
+
for ($i = 0; $i < $indent; $i ++)
|
46
|
+
$indentText .= "\t";
|
47
|
+
|
48
|
+
$pre_flag = false;
|
49
|
+
$arr_content = split("\n", $content);
|
50
|
+
|
51
|
+
```
|
52
|
+
|
38
53
|
### 試したこと
|
39
54
|
|
40
55
|
アップグレードをダウンさせたりしました。
|