简体   繁体   中英

I have a random `t` at the top of my wordpress site, but it is not in any theme files

I have a random letter 't' at the top of my Wordpress site. I am not sure where it is coming from though as it's not in any theme files. I know this because I am working on my theme with another developer using git, and I do not push this 't' up when pushing my up my work on the theme. Anywhere else it could be coming from? It is appearing here on every page:

t<!-- Template Name: Home
 -->

<!DOCTYPE html>
<html lang="en-US">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

Here's what the 't' is looking like when showing up on each page

You will need to search for the text of

Template Name:

in your project's source-code. It is either a text plainly put somewhere or inside a function. When you find it, try to modify it, remove any caches you use and see when it is modified. When you successfully modify it, take a look at it. If it is a plain text, then you will either find at before it or some functionality. If it is inside a function, then throw an Exception inside it, so you will get a stack trace in your error log. When you see the stack trace, you will easily find the first function called. t should be before the function call.

找到了-在我的wp-config文件的第一行上有一个“ t”,并且在每个页面上都生成。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM