插件目录

变更集1410642


忽略:
时间戳:
2016年4月5日下午11:59:52(8年前)
作者:
尼尔·肯尼迪
消息:

WordPress(文字出版社)4.5兼容性更新

位置:
twitter/中继
文件夹:
添加了1个
7已编辑

图例:

未修改
补充
远离的
  • twitter/trunk/readme.txt

    1383722兰特 1410642兰特  
    44要求至少:3.9
    55测试达到:4.5
    6 稳定标签:1。4.0
     6稳定标签:1。5.0
    77许可证:麻省理工学院
    88许可证URI:http://opensource.org/licenses/MIT
     
    6767
    6868==升级通知==
     69= 1.5.0 =
     70更新管理菜单功能以与WordPress 4.5+兼容。
     71
    6972= 1.4.0 =
    7073删除分享计数的推特按钮选项。通过粘贴Twitter配置文件URL显示Follow按钮。
     
    8386
    8487==变更日志==
     88= 1.5.0 =
     89*将Twitter管理菜单作为常规菜单项,而不是弃用的实用程序菜单。WordPress 4.5兼容性功能。
     90*将publish.twitter.com o嵌入API端点用于单个Tweet o嵌入
     91
    8592= 1.4.0 =
    8693*删除推文按钮选项以进行共享计数并对齐显示,匹配推特的更改
  • twitter/trunk/src/twitter/WordPress/PluginLoader.php

    1291201兰特 1410642兰特  
    4242*@type字符串
    4343     */
    44 const VERSION=“1。4.0';
     44const VERSION=“1。5.0';
    4545
    4646    /**
  • twitter/trunk/src/twitter/WordPress/Shortcodes/EmbeddedTweet.php

    1291201兰特 1410642兰特  
    3131*@自1.0.0起
    3232 */
    33 类EmbeddedTweet实现ShortcodeInterface
     33类EmbeddedTweet实现ShortcodeInterface,发布嵌入端点
    3434{
    3535使用OEmbedTrait;
     
    4545
    4646    /**
    47 *用于提取oEmbed数据的PHP类
     47*o嵌入WordPress Core注册的regex
     48     *
     49*@自1.0.0起
     50     *
     51*@type字符串
     52     */
     53const OEMBED_CORE_REGEX=“#https?://(www\.)?推特\.com/.+/状态?/*#i’;
     54
     55    /**
     56*Regex用于在文本中匹配推文
     57     *
     58*比WordPress核心正则表达式更具体
     59     *
     60*@自1.0.0起
     61     *
     62*@类型字符串
     63     */
     64const TWEET_URL_REGEX='#^https?://(www\.)?twitter \.com/[a-z0-9_]{1,20}/状态/([0-9]+)#i';
     65
     66    /**
     67*用于重建推文URL的基本URL
    4868     *
    4969*@自1.3.0起
     
    5171*@type字符串
    5272     */
    53 const OEMBED_API_CLASS='\Twitter\WordPress\Helpers\TwitterAPI';
    54 
    55     /**
    56 *oEmbed API相对于Twitter API基本路径的相对路径
    57      *
    58 *@自1.0.0起
    59      *
    60 *@type字符串
    61      */
    62 const OEMBED_API_ENDPOINT='状态/OEMBED';
    63 
    64     /**
    65 *o嵌入WordPress Core注册的regex
    66      *
    67 *@自1.0.0起
    68      *
    69 *@type字符串
    70      */
    71 const OEMBED_CORE_REGEX=“#https?://(www\.)?推特\.com/.+/状态?/*#i’;
    72 
    73     /**
    74 *Regex用于在文本中匹配推文
    75      *
    76 *比WordPress核心正则表达式更具体
    77      *
    78 *@自1.0.0起
    79      *
    80 *@type字符串
    81      */
    82 const TWEET_URL_REGEX='#^https?://(www\.)?twitter\.com/[a-z0-9_]{1,20}/状态/([0-9]+)#i';
    83 
    84     /**
    85 *用于重建推文URL的基本URL
    86      *
    87 *@自1.3.0起
    88      *
    89 *@类型字符串
    90      */
    9173常量BASE_URL='https://twitter.com/_/status网站/';
    9274
     
    118100公共静态函数init()
    119101    {
     102$classname=获取调用类();
     103
    120104//注册我们的短代码及其处理程序
    121 add_shortcode(self::shortcode_TAG,数组(__类别__,'shortcodeHandler');
     105add_shortcode(self::shortcode_TAG,数组($类名称,'shortcodeHandler');
    122106
    123107//短代码UI(如果支持)
    124108添加操作(_A)(
    125109'注册表短代码用户界面',
    126 阵列(__类别__,'shortcodeUI'),
     110阵列($类名称,'shortcodeUI'),
    127111            5,
    128112            0
     
    136120自身::SHORTCODE_TAG,
    137121静态::TWEET_URL_REGEX,
    138 阵列(__类别__,“linkHandler”),
     122阵列($类名称,“linkHandler”),
    139123                1
    140124            );
  • twitter/trunk/src/twitter/WordPress/Shortcodes/EmbeddedTweetVideo.php

    1269818兰特 1410642兰特  
    6161公共静态函数init()
    6262    {
     63$classname=获取调用类();
     64
    6365//注册我们的短代码及其处理程序
    64 add_shortcode(self::shortcode_TAG,数组(__类别__,'shortcodeHandler');
     66add_shortcode(self::shortcode_TAG,数组($类名称,'shortcodeHandler');
    6567
    6668//短代码UI,如果支持
    6769添加操作(_A)(
    6870'注册表短代码用户界面',
    69 阵列(__类别__,“shortcodeUI”),
     71阵列($类名称,'shortcodeUI'),
    7072            5,
    7173            0
  • twitter/trunk/src/twitter/WordPress/Shortcodes/Moment.php

    1269818兰特 1410642兰特  
    4444
    4545    /**
     46*o嵌入WordPress Core注册的regex
     47     *
     48*@自1.5.0起
     49     *
     50*@type字符串
     51     */
     52const OEMBED_CORE_REGEX=“#https?://(www\.)?推特\.com/i/momes/.*i';
     53
     54    /**
    4655*要在div包装器中使用的HTML类
    4756     *
  • twitter/trunk/src/twitter/WordPress/Shortcodes/TweetGrid.php

    1277019元 1410642兰特  
    3131*@自1.3.0起
    3232 */
    33 类TweetGrid实现ShortcodeInterface
     33类TweetGrid实现ShortcodeInterface,发布嵌入式端点
    3434{
    3535使用OEmbedTrait;
     
    4545
    4646    /**
     47*o嵌入WordPress Core注册的regex
     48     *
     49*@自1.5.0起
     50     *
     51*@type字符串
     52     */
     53const OEMBED_CORE_REGEX=“#https?://(www.)?推特\.com/.+/时间表/.*#i';
     54
     55    /**
    4756*要在div包装器中使用的HTML类
    4857     *
     
    7079     */
    7180常量BASE_URL='https://twitter.com/_/timelines网站/';
    72 
    73     /**
    74 *用于提取oEmbed数据的PHP类
    75      *
    76 *@自1.3.0起
    77      *
    78 *@type字符串
    79      */
    80 const OEMBED_API_CLASS='\Twitter\WordPress\Helpers\TwitterOEmbed';
    81 
    82     /**
    83 *oEmbed API相对于Twitter发布者基本路径的相对路径
    84      *
    85 *@自1.3.0起
    86      *
    87 *@type字符串
    88      */
    89 const OEMBED_API_ENDPOINT=“OEMBED”;
    9081
    9182    /**
     
    111102//注册我们的短代码及其处理程序
    112103add_shortcode(静态::shortcode_TAG,数组($classname,'shortcodeHandler'));
    113 
    114 //将URL转换为等效的缩写
    115 wp嵌入寄存器处理程序(
    116 静态::SHORTCODE_TAG,
    117 静态::URL_REGEX,
    118 数组($classname,'linkHandler'),
    119             1
    120         );
    121104
    122105//短代码UI(如果支持)
     
    127110            0
    128111        );
     112
     113如果(!is_admin()){
     114//取消挂接WordPress Core oEmbed处理程序
     115wp_oembed_remove_provider(静态::oembed_CORE_REGEX);
     116
     117//将URL转换为等效的缩写
     118wp_embed_register_处理程序(
     119静态::SHORTCODE_TAG,
     120静态::URL_REGEX,
     121数组($classname,'linkHandler'),
     122                1
     123            );
     124        }
    129125    }
    130126
  • twitter/trunk/twitter.php

    291201卢比 1410642兰特  
    2525/**
    2626*@package推特
    27 *@版本1。4.0
     27*@版本1。5.0
    2828 */
    2929/*
     
    3131插件URI:http://wordpress.org/plugins/twitter/
    3232描述:WordPress的官方推特插件。嵌入推特内容并在推特上增加你的受众。需要PHP 5.4或更高版本。
    33 版本:1。4.0
     33版本:1。5.0
    3434作者:推特
    3535作者URI:https://dev.twitter.com/
注:请参见TracChangeset(跟踪变更集)获取有关使用变更集查看器的帮助。