变更集1410642
时间戳: 2016年4月5日下午11:59:52 ( 8年 前) 位置: twitter/中继 文件夹: -
添加了1个 7已编辑
-
自述.txt (已修改) ( 3个差异 ) -
src/Twitter/WordPress/PluginLoader.php (已修改) ( 1个差异 ) -
src/Twitter/WordPress/Shortcodes/EmbeddedTweet.php (已修改) ( 5个差异 ) -
src/Twitter/WordPress/Shortcodes/EmbeddedTweetVideo.php (已修改) ( 1个差异 ) -
src/Twitter/WordPress/Shortcodes/Moment.php (已修改) ( 1个差异 ) -
src/Twitter/WordPress/Shortcodes/PublishOEmbedEndpoint.php (新增) -
src/Twitter/WordPress/Shortcodes/TweetGrid.php (已修改) ( 5个差异 ) -
推特.php (已修改) ( 2个差异 )
图例:
未修改 补充 远离的
-
twitter/trunk/readme.txt 1383722兰特 1410642兰特 4 4 要求至少:3.9 5 5 测试达到:4.5 6 稳定标签:1。 4 .0 6 稳定标签:1。 5 .0 7 7 许可证:麻省理工学院 8 8 许可证URI: http://opensource.org/licenses/MIT … … 67 67 68 68 ==升级通知== 69 = 1.5.0 = 70 更新管理菜单功能以与WordPress 4.5+兼容。 71 69 72 = 1.4.0 = 70 73 删除分享计数的推特按钮选项。 通过粘贴Twitter配置文件URL显示Follow按钮。 … … 83 86 84 87 ==变更日志== 88 = 1.5.0 = 89 *将Twitter管理菜单作为常规菜单项,而不是弃用的实用程序菜单。 WordPress 4.5兼容性功能。 90 *将publish.twitter.com o嵌入API端点用于单个Tweet o嵌入 91 85 92 = 1.4.0 = 86 93 *删除推文按钮选项以进行共享计数并对齐显示,匹配推特的更改 -
twitter/trunk/src/twitter/WordPress/PluginLoader.php 1291201兰特 1410642兰特 42 42 *@type字符串 43 43 */ 44 const VERSION=“1。 4 .0'; 44 const VERSION=“1。 5 .0'; 45 45 46 46 /** -
twitter/trunk/src/twitter/WordPress/Shortcodes/EmbeddedTweet.php 1291201兰特 1410642兰特 31 31 *@自1.0.0起 32 32 */ 33 类EmbeddedTweet实现ShortcodeInterface 33 类EmbeddedTweet实现ShortcodeInterface ,发布嵌入端点 34 34 { 35 35 使用OEmbedTrait; … … 45 45 46 46 /** 47 *用于提取oEmbed数据的PHP类 47 *o嵌入WordPress Core注册的regex 48 * 49 *@自1.0.0起 50 * 51 *@type字符串 52 */ 53 const OEMBED_CORE_REGEX=“#https?:// (www\.)? 推特\.com/.+/ 状态?/*# i’; 54 55 /** 56 *Regex用于在文本中匹配推文 57 * 58 *比WordPress核心正则表达式更具体 59 * 60 *@自1.0.0起 61 * 62 *@类型字符串 63 */ 64 const TWEET_URL_REGEX='#^https?:// (www\.)? twitter \.com/[a-z0-9_]{1,20}/状态/ ([0-9]+)#i'; 65 66 /** 67 *用于重建推文URL的基本URL 48 68 * 49 69 *@自1.3.0起 … … 51 71 *@type字符串 52 72 */ 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 */ 91 73 常量BASE_URL=' https://twitter.com/_/status网站/ '; 92 74 … … 118 100 公共静态函数init() 119 101 { 102 $classname=获取调用类(); 103 120 104 //注册我们的短代码及其处理程序 121 add_shortcode(self::shortcode_TAG,数组( __类别__ ,'shortcodeHandler'); 105 add_shortcode(self::shortcode_TAG,数组( $类名称 ,'shortcodeHandler'); 122 106 123 107 //短代码UI(如果支持) 124 108 添加操作(_A)( 125 109 '注册表短代码用户界面', 126 阵列( __类别__ ,'shortcodeUI'), 110 阵列( $类名称 ,'shortcodeUI'), 127 111 5, 128 112 0 … … 136 120 自身::SHORTCODE_TAG, 137 121 静态::TWEET_URL_REGEX, 138 阵列( __类别__ ,“linkHandler”), 122 阵列( $类名称 ,“linkHandler”), 139 123 1 140 124 ); -
twitter/trunk/src/twitter/WordPress/Shortcodes/EmbeddedTweetVideo.php 1269818兰特 1410642兰特 61 61 公共静态函数init() 62 62 { 63 $classname=获取调用类(); 64 63 65 //注册我们的短代码及其处理程序 64 add_shortcode(self::shortcode_TAG,数组( __类别__ ,'shortcodeHandler'); 66 add_shortcode(self::shortcode_TAG,数组( $类名称 ,'shortcodeHandler'); 65 67 66 68 //短代码UI,如果支持 67 69 添加操作(_A)( 68 70 '注册表短代码用户界面', 69 阵列( __类别__ ,“shortcodeUI”), 71 阵列( $类名称 ,'shortcodeUI'), 70 72 5, 71 73 0 -
twitter/trunk/src/twitter/WordPress/Shortcodes/Moment.php 1269818兰特 1410642兰特 44 44 45 45 /** 46 *o嵌入WordPress Core注册的regex 47 * 48 *@自1.5.0起 49 * 50 *@type字符串 51 */ 52 const OEMBED_CORE_REGEX=“#https?:// (www\.)? 推特\.com/i/momes/.*i'; 53 54 /** 46 55 *要在div包装器中使用的HTML类 47 56 * -
twitter/trunk/src/twitter/WordPress/Shortcodes/TweetGrid.php 1277019元 1410642兰特 31 31 *@自1.3.0起 32 32 */ 33 类TweetGrid实现ShortcodeInterface 33 类TweetGrid实现ShortcodeInterface ,发布嵌入式端点 34 34 { 35 35 使用OEmbedTrait; … … 45 45 46 46 /** 47 *o嵌入WordPress Core注册的regex 48 * 49 *@自1.5.0起 50 * 51 *@type字符串 52 */ 53 const OEMBED_CORE_REGEX=“#https?:// (www.)? 推特\.com/.+/ 时间表/.*#i'; 54 55 /** 47 56 *要在div包装器中使用的HTML类 48 57 * … … 70 79 */ 71 80 常量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”; 90 81 91 82 /** … … 111 102 //注册我们的短代码及其处理程序 112 103 add_shortcode(静态::shortcode_TAG,数组($classname,'shortcodeHandler')); 113 114 //将URL转换为等效的缩写 115 wp嵌入寄存器处理程序( 116 静态::SHORTCODE_TAG, 117 静态::URL_REGEX, 118 数组($classname,'linkHandler'), 119 1 120 ); 121 104 122 105 //短代码UI(如果支持) … … 127 110 0 128 111 ); 112 113 如果(!is_admin()){ 114 //取消挂接WordPress Core oEmbed处理程序 115 wp_oembed_remove_provider(静态::oembed_CORE_REGEX); 116 117 //将URL转换为等效的缩写 118 wp_embed_register_处理程序( 119 静态::SHORTCODE_TAG, 120 静态::URL_REGEX, 121 数组($classname,'linkHandler'), 122 1 123 ); 124 } 129 125 } 130 126 -
twitter/trunk/twitter.php 291201卢比 1410642兰特 25 25 /** 26 26 *@package推特 27 *@版本1。 4 .0 27 *@版本1。 5 .0 28 28 */ 29 29 /* … … 31 31 插件URI: http://wordpress.org/plugins/twitter/ 32 32 描述:WordPress的官方推特插件。 嵌入推特内容并在推特上增加你的受众。 需要PHP 5.4或更高版本。 33 版本:1。 4 .0 33 版本:1。 5 .0 34 34 作者:推特 35 35 作者URI: https://dev.twitter.com/