首页 » 调试日志 » 阅读文章

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.

2011-10-06 19:56 3422 0 发表评论
标签:

常见出错信息

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. 3edfdsafdsfsdfds

 

忘不了你的温柔

解决方案:

andhe

第一步,查找相关代码: 技术改造未来0abcd

grep -r “add_[a-zA-Z].*_page.*, [0-9],” .

抄袭是一种猥琐的表现

第二步 ,根据相关规则进行转化 www.0abcd.com

即,根据下面的进行转化 www.0abcd.com

User Level to Role Conversion

  • User Level 0 converts to Subscriber
  • User Level 1 converts to Contributor
  • User Level 2 converts to Author
  • User Level 3 converts to Editor
  • User Level 4 converts to Editor
  • User Level 5 converts to Editor
  • User Level 6 converts to Editor
  • User Level 7 converts to Editor
  • User Level 8 converts to Administrator
  • User Level 9 converts to Administrator
  • User Level 10 converts to Administrator

以前调用函数第三个参数为数字,根据上面信息转化为对应的字符串调用即可

为什么我的眼里长含泪水


收藏此文



评论 共0条 (RSS 2.0) 发表评论

  1. 暂无评论,快抢沙发吧。

发表评论

  • 使用新浪微博登陆
  • 
    疑问 冷笑 悲伤 坏蛋 感叹 微笑 脸红 大笑 吃惊 惊讶 困惑 酷 大声笑 恼火 古怪 转眼睛 给眼色 好主意 箭头 一般 哭了 绿人
  • want to say:

回到页首