heiybb
V2EX  ›  问与答

Wordpress 中$is_chrome 不生效求指点

  •  
  •   heiybb · Nov 8, 2015 · 1703 views
    This topic created in 4034 days ago, the information mentioned may be changed or developed.
    在 functions.php 中添加了下面这段代码

    感觉没写错但是$is_chrome 这个判断并没有生效,求指点
    zsx
    zsx
    Nov 8, 2015
    1
    is_chrome 是哪里的变量=_=是全局的就要显式声明 global $is_chrome 后才能调用
    heiybb
    heiybb
    OP
    Nov 8, 2015
    2
    解决了。。。忘了加 global $is_chrome;
    =、= ( 逃...
    heiybb
    heiybb
    OP
    Nov 8, 2015
    3
    @zsx 刚刚发现=、=已经解决了谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4346 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:00 · PVG 14:00 · LAX 22:00 · JFK 01:00
    ♥ Do have faith in what you're doing.