0

我一直在挖掘每一行代码删除、注释和检查,直到我到达这些代码行:

/* Retrieve Shortcodes
* @see http://fwp.drewsymo.com/shortcodes/
*/

$foundation_shortcodes = trailingslashit( get_template_directory() ) . 'inc/shortcodes.php';

if (file_exists($foundation_shortcodes)) {
require( $foundation_shortcodes );
}

删除/评论时,媒体库将显示图像。直播时,媒体库将无法使用。我已经检查了所有其他可能性,插件,shortcodes.php 文件中的代码(删除了文件中的所有内容并进行了测试),但上面的代码破坏了一些东西。怎么了?

我不是一个php人,这段代码有什么问题?它必须部分正确,因为它会将 shortcodes.php 内容拉入,并且短代码在页面上工作。

(functions.php中的代码)

4

1 回答 1

0

If the gallery works when this code is removed it suggests that the code being added in the shortcodes.php file is what is causing your issue.

Examine the code in that file.

Before you do that though you may want to watch the php error log too. This will likely give you the exact location of the error.

于 2013-10-31T20:15:40.603 回答