The Events Calendar - Version 4.4.2

Version Description

= [4.3] =

Please see the changelog for the complete list of changes in this release. Remember to always make a backup of your database and files before updating!

Download this release

Release Info

Developer barry.hughes
Plugin Icon The Events Calendar
Version 4.4.2
Comparing to
See all releases

Code changes from version 4.4.1 to 4.4.2

Files changed (435) hide show
  1. common/lang/tribe-common-af.mo +0 -0
  2. common/lang/tribe-common-af.po +0 -0
  3. common/lang/tribe-common-ar.mo +0 -0
  4. common/lang/tribe-common-ar.po +0 -0
  5. common/lang/tribe-common-bg_BG.mo +0 -0
  6. common/lang/tribe-common-bg_BG.po +0 -0
  7. common/lang/tribe-common-ca.mo +0 -0
  8. common/lang/tribe-common-ca.po +0 -0
  9. common/lang/tribe-common-cs_CZ.mo +0 -0
  10. common/lang/tribe-common-cs_CZ.po +0 -0
  11. common/lang/tribe-common-da_DK.mo +0 -0
  12. common/lang/tribe-common-da_DK.po +0 -0
  13. common/lang/tribe-common-de_DE.mo +0 -0
  14. common/lang/tribe-common-de_DE.po +0 -0
  15. common/lang/tribe-common-el.mo +0 -0
  16. common/lang/tribe-common-el.po +0 -0
  17. common/lang/tribe-common-en_GB.mo +0 -0
  18. common/lang/tribe-common-en_GB.po +0 -0
  19. common/lang/tribe-common-es_ES.mo +0 -0
  20. common/lang/tribe-common-es_ES.po +0 -0
  21. common/lang/tribe-common-et.mo +0 -0
  22. common/lang/tribe-common-et.po +0 -0
  23. common/lang/tribe-common-fi.mo +0 -0
  24. common/lang/tribe-common-fi.po +0 -0
  25. common/lang/tribe-common-fr_CA.mo +0 -0
  26. common/lang/tribe-common-fr_CA.po +0 -0
  27. common/lang/tribe-common-fr_FR.mo +0 -0
  28. common/lang/tribe-common-fr_FR.po +0 -0
  29. common/lang/tribe-common-hu_HU.mo +0 -0
  30. common/lang/tribe-common-hu_HU.po +0 -0
  31. common/lang/tribe-common-id_ID.mo +0 -0
  32. common/lang/tribe-common-id_ID.po +0 -0
  33. common/lang/tribe-common-is_IS.mo +0 -0
  34. common/lang/tribe-common-is_IS.po +0 -0
  35. common/lang/tribe-common-it_IT.mo +0 -0
  36. common/lang/tribe-common-it_IT.po +0 -0
  37. common/lang/tribe-common-lt_LT.mo +0 -0
  38. common/lang/tribe-common-lt_LT.po +0 -0
  39. common/lang/tribe-common-lv.mo +0 -0
  40. common/lang/tribe-common-lv.po +0 -0
  41. common/lang/tribe-common-nb_NO.mo +0 -0
  42. common/lang/tribe-common-nb_NO.po +0 -0
  43. common/lang/tribe-common-nl_NL.mo +0 -0
  44. common/lang/tribe-common-nl_NL.po +0 -0
  45. common/lang/tribe-common-pl_PL.mo +0 -0
  46. common/lang/tribe-common-pl_PL.po +0 -0
  47. common/lang/tribe-common-pt_BR.mo +0 -0
  48. common/lang/tribe-common-pt_BR.po +0 -0
  49. common/lang/tribe-common-pt_PT.mo +0 -0
  50. common/lang/tribe-common-pt_PT.po +0 -0
  51. common/lang/tribe-common-ro_RO.mo +0 -0
  52. common/lang/tribe-common-ro_RO.po +0 -0
  53. common/lang/tribe-common-ru_RU.mo +0 -0
  54. common/lang/tribe-common-ru_RU.po +0 -0
  55. common/lang/tribe-common-sk_SK.mo +0 -0
  56. common/lang/tribe-common-sk_SK.po +0 -0
  57. common/lang/tribe-common-sl_SI.mo +0 -0
  58. common/lang/tribe-common-sl_SI.po +0 -0
  59. common/lang/tribe-common-sr_RS.mo +0 -0
  60. common/lang/tribe-common-sr_RS.po +0 -0
  61. common/lang/tribe-common-sv_SE.mo +0 -0
  62. common/lang/tribe-common-sv_SE.po +0 -0
  63. common/lang/tribe-common-tr_TR.mo +0 -0
  64. common/lang/tribe-common-tr_TR.po +0 -0
  65. common/lang/tribe-common-zh_CN.mo +0 -0
  66. common/lang/tribe-common-zh_CN.po +0 -0
  67. common/lang/tribe-common-zh_TW.mo +0 -0
  68. common/lang/tribe-common-zh_TW.po +0 -0
  69. common/lang/tribe-common.pot +0 -0
  70. common/readme.txt +0 -0
  71. common/src/Tribe/Admin/Activation_Page.php +0 -0
  72. common/src/Tribe/Admin/Help_Page.php +0 -0
  73. common/src/Tribe/Admin/Helpers.php +0 -0
  74. common/src/Tribe/Admin/Live_Date_Preview.php +0 -0
  75. common/src/Tribe/Admin/Notice/Plugin_Download.php +0 -0
  76. common/src/Tribe/Admin/Notice/Plugin_Upgrade_Notice.php +0 -0
  77. common/src/Tribe/Admin/Notices.php +0 -0
  78. common/src/Tribe/Ajax/Operations.php +0 -0
  79. common/src/Tribe/Asset/Data.php +0 -0
  80. common/src/Tribe/Asset/Factory.php +0 -0
  81. common/src/Tribe/Assets.php +0 -0
  82. common/src/Tribe/Container.php +2 -2
  83. common/src/Tribe/Cost_Utils.php +0 -0
  84. common/src/Tribe/Customizer.php +0 -0
  85. common/src/Tribe/Customizer/Section.php +0 -0
  86. common/src/Tribe/Debug.php +0 -0
  87. common/src/Tribe/Dependency.php +0 -0
  88. common/src/Tribe/Deprecation.php +0 -0
  89. common/src/Tribe/Documentation/Swagger/Builder_Interface.php +29 -0
  90. common/src/Tribe/Documentation/Swagger/Cost_Details_Definition_Provider.php +49 -0
  91. common/src/Tribe/Documentation/Swagger/Date_Details_Definition_Provider.php +60 -0
  92. common/src/Tribe/Documentation/Swagger/Image_Definition_Provider.php +61 -0
  93. common/src/Tribe/Documentation/Swagger/Image_Size_Definition_Provider.php +52 -0
  94. common/src/Tribe/Documentation/Swagger/Provider_Interface.php +17 -0
  95. common/src/Tribe/Documentation/Swagger/Term_Definition_Provider.php +68 -0
  96. common/src/Tribe/Error.php +0 -0
  97. common/src/Tribe/Exception.php +0 -0
  98. common/src/Tribe/Extension.php +0 -0
  99. common/src/Tribe/Extension_Loader.php +0 -0
  100. common/src/Tribe/Languages/Map_Interface.php +0 -0
  101. common/src/Tribe/Languages/Recaptcha_Map.php +0 -0
  102. common/src/Tribe/Log.php +0 -0
  103. common/src/Tribe/Log/Admin.php +0 -0
  104. common/src/Tribe/Log/File_Logger.php +0 -0
  105. common/src/Tribe/Log/Logger.php +0 -0
  106. common/src/Tribe/Log/Null_Logger.php +0 -0
  107. common/src/Tribe/Main.php +0 -0
  108. common/src/Tribe/Notices.php +0 -0
  109. common/src/Tribe/PUE/Notices.php +0 -0
  110. common/src/Tribe/PUE/Package_Handler.php +0 -0
  111. common/src/Tribe/Plugin_Meta_Links.php +0 -0
  112. common/src/Tribe/Plugins.php +0 -0
  113. common/src/Tribe/Post_History.php +0 -0
  114. common/src/Tribe/Post_Transient.php +0 -0
  115. common/src/Tribe/REST/Endpoints/Endpoint_Interface.php +14 -0
  116. common/src/Tribe/REST/Exceptions/Exception.php +25 -0
  117. common/src/Tribe/REST/Headers/Base_Header.php +19 -0
  118. common/src/Tribe/REST/Headers/Base_Interface.php +40 -0
  119. common/src/Tribe/REST/Headers/Disabled.php +23 -0
  120. common/src/Tribe/REST/Headers/Headers_Interface.php +18 -0
  121. common/src/Tribe/REST/Headers/Supported.php +52 -0
  122. common/src/Tribe/REST/Headers/Unsupported.php +39 -0
  123. common/src/Tribe/REST/Main.php +149 -0
  124. common/src/Tribe/REST/Messages_Interface.php +30 -0
  125. common/src/Tribe/REST/Post_Repository_Interface.php +14 -0
  126. common/src/Tribe/REST/System.php +14 -0
  127. common/src/Tribe/REST/Validator.php +14 -0
  128. common/src/Tribe/Rewrite.php +0 -0
  129. common/src/Tribe/Settings_Manager.php +0 -0
  130. common/src/Tribe/Simple_Table.php +0 -0
  131. common/src/Tribe/Support/Obfuscator.php +0 -0
  132. common/src/Tribe/Support/Template_Checker.php +0 -0
  133. common/src/Tribe/Support/Template_Checker_Report.php +0 -0
  134. common/src/Tribe/Tabbed_View.php +0 -0
  135. common/src/Tribe/Tabbed_View/Tab.php +0 -0
  136. common/src/Tribe/Templates.php +0 -0
  137. common/src/Tribe/Timezones.php +8 -8
  138. common/src/Tribe/Utils/Array.php +0 -0
  139. common/src/Tribe/Utils/Color.php +0 -0
  140. common/src/Tribe/Utils/Coordinates_Provider.php +0 -0
  141. common/src/Tribe/Utils/JSON.php +0 -0
  142. common/src/Tribe/Utils/Plugins.php +0 -0
  143. common/src/Tribe/Utils/Post_Root_Pool.php +0 -0
  144. common/src/admin-views/app-shop.php +0 -0
  145. common/src/admin-views/event-log.php +0 -0
  146. common/src/admin-views/tabbed-view/tab.php +0 -0
  147. common/src/admin-views/tabbed-view/tabbed-view.php +0 -0
  148. common/src/deprecated/Tribe__Admin__Notice__Archive_Slug_Conflict.php +0 -0
  149. common/src/deprecated/Tribe__Events__Abstract_Deactivation.php +0 -0
  150. common/src/deprecated/Tribe__Events__Admin__Helpers.php +0 -0
  151. common/src/deprecated/Tribe__Events__App_Shop.php +0 -0
  152. common/src/deprecated/Tribe__Events__Autoloader.php +0 -0
  153. common/src/deprecated/Tribe__Events__Cache.php +0 -0
  154. common/src/deprecated/Tribe__Events__Cache_Listener.php +0 -0
  155. common/src/deprecated/Tribe__Events__Changelog_Reader.php +0 -0
  156. common/src/deprecated/Tribe__Events__Credits.php +0 -0
  157. common/src/deprecated/Tribe__Events__Date_Utils.php +0 -0
  158. common/src/deprecated/Tribe__Events__Field.php +0 -0
  159. common/src/deprecated/Tribe__Events__Settings.php +0 -0
  160. common/src/deprecated/Tribe__Events__Settings_Tab.php +0 -0
  161. common/src/deprecated/Tribe__Events__Support.php +0 -0
  162. common/src/deprecated/Tribe__Events__Template_Part_Cache.php +0 -0
  163. common/src/deprecated/Tribe__Events__Validate.php +0 -0
  164. common/src/deprecated/Tribe__Events__View_Helpers.php +0 -0
  165. common/src/deprecated/Tribe__Plugin_Download_Notice.php +0 -0
  166. common/src/functions/utils.php +0 -0
  167. common/src/resources/css/app-shop.css +0 -0
  168. common/src/resources/css/app-shop.min.css +0 -0
  169. common/src/resources/css/bumpdown.css +0 -0
  170. common/src/resources/css/bumpdown.min.css +0 -0
  171. common/src/resources/css/buttonset.css +0 -0
  172. common/src/resources/css/buttonset.min.css +0 -0
  173. common/src/resources/css/datatables.css +0 -0
  174. common/src/resources/css/datatables.min.css +0 -0
  175. common/src/resources/css/datepicker.css +0 -0
  176. common/src/resources/css/datepicker.min.css +0 -0
  177. common/src/resources/css/dependency.css +0 -0
  178. common/src/resources/css/dependency.min.css +0 -0
  179. common/src/resources/css/tribe-common-admin.css +0 -0
  180. common/src/resources/css/tribe-common-admin.min.css +0 -0
  181. common/src/resources/images/app-shop-banner.jpg +0 -0
  182. common/src/resources/images/app-shop-community-tickets.jpg +0 -0
  183. common/src/resources/images/app-shop-community.jpg +0 -0
  184. common/src/resources/images/app-shop-eventbrite.jpg +0 -0
  185. common/src/resources/images/app-shop-filter-bar.jpg +0 -0
  186. common/src/resources/images/app-shop-ical.jpg +0 -0
  187. common/src/resources/images/app-shop-pro.jpg +0 -0
  188. common/src/resources/images/app-shop-tickets-plus.jpg +0 -0
  189. common/src/resources/images/donate-link-pro-screenshot.jpg +0 -0
  190. common/src/resources/images/donate-link-screenshot.jpg +0 -0
  191. common/src/resources/images/modern-tribe.png +0 -0
  192. common/src/resources/images/modern-tribe@2x.png +0 -0
  193. common/src/resources/images/spirit-animal.png +0 -0
  194. common/src/resources/images/tribe-loading.gif +0 -0
  195. common/src/resources/images/tribe-loading@2x.gif +0 -0
  196. common/src/resources/js/admin-date-preview.js +0 -0
  197. common/src/resources/js/admin-date-preview.min.js +0 -0
  198. common/src/resources/js/admin-log-controls.js +0 -0
  199. common/src/resources/js/admin-log-controls.min.js +0 -0
  200. common/src/resources/js/app-shop.js +0 -0
  201. common/src/resources/js/app-shop.min.js +0 -0
  202. common/src/resources/js/bumpdown.js +0 -0
  203. common/src/resources/js/bumpdown.min.js +0 -0
  204. common/src/resources/js/buttonset.js +0 -0
  205. common/src/resources/js/buttonset.min.js +0 -0
  206. common/src/resources/js/dependency.js +0 -0
  207. common/src/resources/js/dependency.min.js +0 -0
  208. common/src/resources/js/dropdowns.js +0 -0
  209. common/src/resources/js/dropdowns.min.js +0 -0
  210. common/src/resources/js/notice-dismiss.js +0 -0
  211. common/src/resources/js/notice-dismiss.min.js +0 -0
  212. common/src/resources/js/pue-notices.js +0 -0
  213. common/src/resources/js/pue-notices.min.js +0 -0
  214. common/src/resources/js/tribe-common.js +0 -0
  215. common/src/resources/js/tribe-common.min.js +0 -0
  216. common/src/resources/js/tribe-datatables.js +0 -0
  217. common/src/resources/js/tribe-datatables.min.js +0 -0
  218. common/src/resources/postcss/app-shop.pcss +0 -0
  219. common/src/resources/postcss/bumpdown.pcss +0 -0
  220. common/src/resources/postcss/buttonset.pcss +0 -0
  221. common/src/resources/postcss/datatables.pcss +0 -0
  222. common/src/resources/postcss/datepicker.pcss +0 -0
  223. common/src/resources/postcss/dependency.pcss +0 -0
  224. common/src/resources/postcss/tribe-common-admin.pcss +0 -0
  225. common/tribe-autoload.php +0 -0
  226. common/tribe-common.php +0 -0
  227. common/vendor/autoload.php +1 -1
  228. common/vendor/autoload_52.php +1 -1
  229. common/vendor/clipboard/clipboard.js +0 -0
  230. common/vendor/clipboard/clipboard.min.js +0 -0
  231. common/vendor/composer/ClassLoader.php +0 -0
  232. common/vendor/composer/ClassLoader52.php +0 -0
  233. common/vendor/composer/LICENSE +0 -0
  234. common/vendor/composer/autoload_classmap.php +0 -0
  235. common/vendor/composer/autoload_namespaces.php +0 -0
  236. common/vendor/composer/autoload_psr4.php +0 -0
  237. common/vendor/composer/autoload_real.php +0 -0
  238. common/vendor/composer/autoload_real_52.php +3 -3
  239. common/vendor/composer/autoload_static.php +0 -0
  240. common/vendor/composer/installed.json +0 -0
  241. common/vendor/datatables/extensions/FixedHeader/css/fixedHeader.dataTables.css +0 -0
  242. common/vendor/datatables/extensions/FixedHeader/css/fixedHeader.dataTables.min.css +0 -0
  243. common/vendor/datatables/extensions/FixedHeader/js/dataTables.fixedHeader.js +0 -0
  244. common/vendor/datatables/extensions/FixedHeader/js/dataTables.fixedHeader.min.js +0 -0
  245. common/vendor/datatables/extensions/Responsive/css/responsive.dataTables.css +0 -0
  246. common/vendor/datatables/extensions/Responsive/css/responsive.dataTables.min.css +0 -0
  247. common/vendor/datatables/extensions/Responsive/js/dataTables.responsive.js +0 -0
  248. common/vendor/datatables/extensions/Responsive/js/dataTables.responsive.min.js +0 -0
  249. common/vendor/datatables/extensions/Scroller/css/scroller.dataTables.css +0 -0
  250. common/vendor/datatables/extensions/Scroller/css/scroller.dataTables.min.css +0 -0
  251. common/vendor/datatables/extensions/Scroller/js/dataTables.scroller.js +0 -0
  252. common/vendor/datatables/extensions/Scroller/js/dataTables.scroller.min.js +0 -0
  253. common/vendor/datatables/extensions/Select/css/select.dataTables.css +0 -0
  254. common/vendor/datatables/extensions/Select/css/select.dataTables.min.css +0 -0
  255. common/vendor/datatables/extensions/Select/js/dataTables.select.js +0 -0
  256. common/vendor/datatables/extensions/Select/js/dataTables.select.min.js +0 -0
  257. common/vendor/datatables/media/css/jquery.dataTables.css +0 -0
  258. common/vendor/datatables/media/css/jquery.dataTables.min.css +0 -0
  259. common/vendor/datatables/media/css/jquery.dataTables_themeroller.css +0 -0
  260. common/vendor/datatables/media/images/sort_asc.png +0 -0
  261. common/vendor/datatables/media/images/sort_asc_disabled.png +0 -0
  262. common/vendor/datatables/media/images/sort_both.png +0 -0
  263. common/vendor/datatables/media/images/sort_desc.png +0 -0
  264. common/vendor/datatables/media/images/sort_desc_disabled.png +0 -0
  265. common/vendor/datatables/media/js/jquery.dataTables.js +0 -0
  266. common/vendor/datatables/media/js/jquery.dataTables.min.js +0 -0
  267. common/vendor/jquery-timepicker/GruntFile.js +0 -0
  268. common/vendor/jquery-timepicker/jquery.timepicker.js +0 -0
  269. common/vendor/jquery-timepicker/jquery.timepicker.min.js +0 -0
  270. common/vendor/jquery-timepicker/lib/bootstrap-datepicker.css +0 -0
  271. common/vendor/jquery-timepicker/lib/site.css +0 -0
  272. common/vendor/jquery-timepicker/lib/site.js +0 -0
  273. common/vendor/jquery/ui.datepicker.css +0 -0
  274. common/vendor/lucatume/di52/src/tad/DI52/Arg.php +0 -0
  275. common/vendor/lucatume/di52/src/tad/DI52/Bindings/AbstractImplementation.php +0 -0
  276. common/vendor/lucatume/di52/src/tad/DI52/Bindings/CallbackImplementation.php +0 -0
  277. common/vendor/lucatume/di52/src/tad/DI52/Bindings/ConstructorImplementation.php +0 -0
  278. common/vendor/lucatume/di52/src/tad/DI52/Bindings/ImplementationInterface.php +0 -0
  279. common/vendor/lucatume/di52/src/tad/DI52/Bindings/InstanceImplementation.php +0 -0
  280. common/vendor/lucatume/di52/src/tad/DI52/Bindings/Resolver.php +0 -0
  281. common/vendor/lucatume/di52/src/tad/DI52/Bindings/ResolverInterface.php +0 -0
  282. common/vendor/lucatume/di52/src/tad/DI52/Container.php +0 -0
  283. common/vendor/lucatume/di52/src/tad/DI52/Ctor.php +0 -0
  284. common/vendor/lucatume/di52/src/tad/DI52/NewInstanceArgValue.php +0 -0
  285. common/vendor/lucatume/di52/src/tad/DI52/RealArgValue.php +0 -0
  286. common/vendor/lucatume/di52/src/tad/DI52/ReferredArgValue.php +0 -0
  287. common/vendor/lucatume/di52/src/tad/DI52/ReferredInstanceArgValue.php +0 -0
  288. common/vendor/lucatume/di52/src/tad/DI52/ReferredVarArgValue.php +0 -0
  289. common/vendor/lucatume/di52/src/tad/DI52/ServiceProvider.php +0 -0
  290. common/vendor/lucatume/di52/src/tad/DI52/ServiceProviderInterface.php +0 -0
  291. common/vendor/lucatume/di52/src/tad/DI52/Singleton.php +0 -0
  292. common/vendor/lucatume/di52/src/tad/DI52/Var.php +0 -0
  293. common/vendor/select2/select2-bootstrap.css +0 -0
  294. common/vendor/select2/select2-spinner.gif +0 -0
  295. common/vendor/select2/select2.css +0 -0
  296. common/vendor/select2/select2.js +0 -0
  297. common/vendor/select2/select2.min.js +0 -0
  298. common/vendor/select2/select2.png +0 -0
  299. common/vendor/select2/select2_locale_ar.js +0 -0
  300. common/vendor/select2/select2_locale_az.js +0 -0
  301. common/vendor/select2/select2_locale_bg.js +0 -0
  302. common/vendor/select2/select2_locale_ca.js +0 -0
  303. common/vendor/select2/select2_locale_cs.js +0 -0
  304. common/vendor/select2/select2_locale_da.js +0 -0
  305. common/vendor/select2/select2_locale_de.js +0 -0
  306. common/vendor/select2/select2_locale_el.js +0 -0
  307. common/vendor/select2/select2_locale_es.js +0 -0
  308. common/vendor/select2/select2_locale_et.js +0 -0
  309. common/vendor/select2/select2_locale_eu.js +0 -0
  310. common/vendor/select2/select2_locale_fa.js +0 -0
  311. common/vendor/select2/select2_locale_fi.js +0 -0
  312. common/vendor/select2/select2_locale_fr.js +0 -0
  313. common/vendor/select2/select2_locale_gl.js +0 -0
  314. common/vendor/select2/select2_locale_he.js +0 -0
  315. common/vendor/select2/select2_locale_hr.js +0 -0
  316. common/vendor/select2/select2_locale_hu.js +0 -0
  317. common/vendor/select2/select2_locale_id.js +0 -0
  318. common/vendor/select2/select2_locale_is.js +0 -0
  319. common/vendor/select2/select2_locale_it.js +0 -0
  320. common/vendor/select2/select2_locale_ja.js +0 -0
  321. common/vendor/select2/select2_locale_ka.js +0 -0
  322. common/vendor/select2/select2_locale_ko.js +0 -0
  323. common/vendor/select2/select2_locale_lt.js +0 -0
  324. common/vendor/select2/select2_locale_lv.js +0 -0
  325. common/vendor/select2/select2_locale_mk.js +0 -0
  326. common/vendor/select2/select2_locale_ms.js +0 -0
  327. common/vendor/select2/select2_locale_nb.js +0 -0
  328. common/vendor/select2/select2_locale_nl.js +0 -0
  329. common/vendor/select2/select2_locale_pl.js +0 -0
  330. common/vendor/select2/select2_locale_pt-BR.js +0 -0
  331. common/vendor/select2/select2_locale_pt-PT.js +0 -0
  332. common/vendor/select2/select2_locale_ro.js +0 -0
  333. common/vendor/select2/select2_locale_rs.js +0 -0
  334. common/vendor/select2/select2_locale_ru.js +0 -0
  335. common/vendor/select2/select2_locale_sk.js +0 -0
  336. common/vendor/select2/select2_locale_sv.js +0 -0
  337. common/vendor/select2/select2_locale_th.js +0 -0
  338. common/vendor/select2/select2_locale_tr.js +0 -0
  339. common/vendor/select2/select2_locale_ug-CN.js +0 -0
  340. common/vendor/select2/select2_locale_uk.js +0 -0
  341. common/vendor/select2/select2_locale_vi.js +0 -0
  342. common/vendor/select2/select2_locale_zh-CN.js +0 -0
  343. common/vendor/select2/select2_locale_zh-TW.js +0 -0
  344. common/vendor/select2/select2x2.png +0 -0
  345. lang/the-events-calendar-af.mo +0 -0
  346. lang/the-events-calendar-af.po +110 -106
  347. lang/the-events-calendar-ary.mo +0 -0
  348. lang/the-events-calendar-ary.po +0 -0
  349. lang/the-events-calendar-az.mo +0 -0
  350. lang/the-events-calendar-az.po +0 -0
  351. lang/the-events-calendar-bg_BG.mo +0 -0
  352. lang/the-events-calendar-bg_BG.po +110 -106
  353. lang/the-events-calendar-ca.mo +0 -0
  354. lang/the-events-calendar-ca.po +110 -106
  355. lang/the-events-calendar-cs_CZ.mo +0 -0
  356. lang/the-events-calendar-cs_CZ.po +109 -105
  357. lang/the-events-calendar-cy.mo +0 -0
  358. lang/the-events-calendar-cy.po +110 -106
  359. lang/the-events-calendar-da_DK.mo +0 -0
  360. lang/the-events-calendar-da_DK.po +110 -106
  361. lang/the-events-calendar-de_DE.mo +0 -0
  362. lang/the-events-calendar-de_DE.po +113 -109
  363. lang/the-events-calendar-el.mo +0 -0
  364. lang/the-events-calendar-el.po +110 -106
  365. lang/the-events-calendar-en_AU.mo +0 -0
  366. lang/the-events-calendar-en_AU.po +0 -0
  367. lang/the-events-calendar-en_CA.mo +0 -0
  368. lang/the-events-calendar-en_CA.po +110 -106
  369. lang/the-events-calendar-en_GB.mo +0 -0
  370. lang/the-events-calendar-en_GB.po +110 -106
  371. lang/the-events-calendar-en_NZ.mo +0 -0
  372. lang/the-events-calendar-en_NZ.po +0 -0
  373. lang/the-events-calendar-es_ES.mo +0 -0
  374. lang/the-events-calendar-es_ES.po +110 -106
  375. lang/the-events-calendar-et.mo +0 -0
  376. lang/the-events-calendar-et.po +109 -105
  377. lang/the-events-calendar-eu.mo +0 -0
  378. lang/the-events-calendar-eu.po +109 -105
  379. lang/the-events-calendar-fi.mo +0 -0
  380. lang/the-events-calendar-fi.po +110 -106
  381. lang/the-events-calendar-fr-ca.mo +0 -0
  382. lang/the-events-calendar-fr-ca.po +0 -0
  383. lang/the-events-calendar-fr_CA.mo +0 -0
  384. lang/the-events-calendar-fr_CA.po +109 -105
  385. lang/the-events-calendar-fr_FR.mo +0 -0
  386. lang/the-events-calendar-fr_FR.po +110 -106
  387. lang/the-events-calendar-he_IL.mo +0 -0
  388. lang/the-events-calendar-he_IL.po +109 -105
  389. lang/the-events-calendar-hu_HU.mo +0 -0
  390. lang/the-events-calendar-hu_HU.po +110 -106
  391. lang/the-events-calendar-hy.mo +0 -0
  392. lang/the-events-calendar-hy.po +0 -0
  393. lang/the-events-calendar-id_ID.mo +0 -0
  394. lang/the-events-calendar-id_ID.po +111 -107
  395. lang/the-events-calendar-is_IS.mo +0 -0
  396. lang/the-events-calendar-is_IS.po +109 -105
  397. lang/the-events-calendar-it_IT.mo +0 -0
  398. lang/the-events-calendar-it_IT.po +115 -111
  399. lang/the-events-calendar-ja.mo +0 -0
  400. lang/the-events-calendar-ja.po +109 -105
  401. lang/the-events-calendar-lt_LT.mo +0 -0
  402. lang/the-events-calendar-lt_LT.po +110 -106
  403. lang/the-events-calendar-lv.mo +0 -0
  404. lang/the-events-calendar-lv.po +110 -106
  405. lang/the-events-calendar-nb_NO.mo +0 -0
  406. lang/the-events-calendar-nb_NO.po +109 -105
  407. lang/the-events-calendar-nl_NL.mo +0 -0
  408. lang/the-events-calendar-nl_NL.po +110 -106
  409. lang/the-events-calendar-pl_PL.mo +0 -0
  410. lang/the-events-calendar-pl_PL.po +0 -0
  411. lang/the-events-calendar-pt_BR.mo +0 -0
  412. lang/the-events-calendar-pt_BR.po +110 -106
  413. lang/the-events-calendar-pt_PT.mo +0 -0
  414. lang/the-events-calendar-pt_PT.po +110 -106
  415. lang/the-events-calendar-ro_RO.mo +0 -0
  416. lang/the-events-calendar-ro_RO.po +110 -106
  417. lang/the-events-calendar-ru_RU.mo +0 -0
  418. lang/the-events-calendar-ru_RU.po +109 -105
  419. lang/the-events-calendar-sk_SK.mo +0 -0
  420. lang/the-events-calendar-sk_SK.po +110 -106
  421. lang/the-events-calendar-sl_SI.mo +0 -0
  422. lang/the-events-calendar-sl_SI.po +110 -106
  423. lang/the-events-calendar-sr_RS.mo +0 -0
  424. lang/the-events-calendar-sr_RS.po +109 -105
  425. lang/the-events-calendar-sv_SE.mo +0 -0
  426. lang/the-events-calendar-sv_SE.po +110 -106
  427. lang/the-events-calendar-tr_TR.mo +0 -0
  428. lang/the-events-calendar-tr_TR.po +110 -106
  429. lang/the-events-calendar-uk.mo +0 -0
  430. lang/the-events-calendar-uk.po +0 -0
  431. lang/the-events-calendar-zh_CN.mo +0 -0
  432. lang/the-events-calendar-zh_CN.po +109 -105
  433. lang/the-events-calendar-zh_TW.mo +0 -0
  434. lang/the-events-calendar-zh_TW.po +109 -105
  435. lang/the-events-calendar.pot +1188 -1015
common/lang/tribe-common-af.mo CHANGED
File without changes
common/lang/tribe-common-af.po CHANGED
File without changes
common/lang/tribe-common-ar.mo CHANGED
File without changes
common/lang/tribe-common-ar.po CHANGED
File without changes
common/lang/tribe-common-bg_BG.mo CHANGED
File without changes
common/lang/tribe-common-bg_BG.po CHANGED
File without changes
common/lang/tribe-common-ca.mo CHANGED
File without changes
common/lang/tribe-common-ca.po CHANGED
File without changes
common/lang/tribe-common-cs_CZ.mo CHANGED
File without changes
common/lang/tribe-common-cs_CZ.po CHANGED
File without changes
common/lang/tribe-common-da_DK.mo CHANGED
File without changes
common/lang/tribe-common-da_DK.po CHANGED
File without changes
common/lang/tribe-common-de_DE.mo CHANGED
File without changes
common/lang/tribe-common-de_DE.po CHANGED
File without changes
common/lang/tribe-common-el.mo CHANGED
File without changes
common/lang/tribe-common-el.po CHANGED
File without changes
common/lang/tribe-common-en_GB.mo CHANGED
File without changes
common/lang/tribe-common-en_GB.po CHANGED
File without changes
common/lang/tribe-common-es_ES.mo CHANGED
File without changes
common/lang/tribe-common-es_ES.po CHANGED
File without changes
common/lang/tribe-common-et.mo CHANGED
File without changes
common/lang/tribe-common-et.po CHANGED
File without changes
common/lang/tribe-common-fi.mo CHANGED
File without changes
common/lang/tribe-common-fi.po CHANGED
File without changes
common/lang/tribe-common-fr_CA.mo CHANGED
File without changes
common/lang/tribe-common-fr_CA.po CHANGED
File without changes
common/lang/tribe-common-fr_FR.mo CHANGED
File without changes
common/lang/tribe-common-fr_FR.po CHANGED
File without changes
common/lang/tribe-common-hu_HU.mo CHANGED
File without changes
common/lang/tribe-common-hu_HU.po CHANGED
File without changes
common/lang/tribe-common-id_ID.mo CHANGED
File without changes
common/lang/tribe-common-id_ID.po CHANGED
File without changes
common/lang/tribe-common-is_IS.mo CHANGED
File without changes
common/lang/tribe-common-is_IS.po CHANGED
File without changes
common/lang/tribe-common-it_IT.mo CHANGED
File without changes
common/lang/tribe-common-it_IT.po CHANGED
File without changes
common/lang/tribe-common-lt_LT.mo CHANGED
File without changes
common/lang/tribe-common-lt_LT.po CHANGED
File without changes
common/lang/tribe-common-lv.mo CHANGED
File without changes
common/lang/tribe-common-lv.po CHANGED
File without changes
common/lang/tribe-common-nb_NO.mo CHANGED
File without changes
common/lang/tribe-common-nb_NO.po CHANGED
File without changes
common/lang/tribe-common-nl_NL.mo CHANGED
File without changes
common/lang/tribe-common-nl_NL.po CHANGED
File without changes
common/lang/tribe-common-pl_PL.mo CHANGED
File without changes
common/lang/tribe-common-pl_PL.po CHANGED
File without changes
common/lang/tribe-common-pt_BR.mo CHANGED
File without changes
common/lang/tribe-common-pt_BR.po CHANGED
File without changes
common/lang/tribe-common-pt_PT.mo CHANGED
File without changes
common/lang/tribe-common-pt_PT.po CHANGED
File without changes
common/lang/tribe-common-ro_RO.mo CHANGED
File without changes
common/lang/tribe-common-ro_RO.po CHANGED
File without changes
common/lang/tribe-common-ru_RU.mo CHANGED
File without changes
common/lang/tribe-common-ru_RU.po CHANGED
File without changes
common/lang/tribe-common-sk_SK.mo CHANGED
File without changes
common/lang/tribe-common-sk_SK.po CHANGED
File without changes
common/lang/tribe-common-sl_SI.mo CHANGED
File without changes
common/lang/tribe-common-sl_SI.po CHANGED
File without changes
common/lang/tribe-common-sr_RS.mo CHANGED
File without changes
common/lang/tribe-common-sr_RS.po CHANGED
File without changes
common/lang/tribe-common-sv_SE.mo CHANGED
File without changes
common/lang/tribe-common-sv_SE.po CHANGED
File without changes
common/lang/tribe-common-tr_TR.mo CHANGED
File without changes
common/lang/tribe-common-tr_TR.po CHANGED
File without changes
common/lang/tribe-common-zh_CN.mo CHANGED
File without changes
common/lang/tribe-common-zh_CN.po CHANGED
File without changes
common/lang/tribe-common-zh_TW.mo CHANGED
File without changes
common/lang/tribe-common-zh_TW.po CHANGED
File without changes
common/lang/tribe-common.pot CHANGED
File without changes
common/readme.txt CHANGED
File without changes
common/src/Tribe/Admin/Activation_Page.php CHANGED
File without changes
common/src/Tribe/Admin/Help_Page.php CHANGED
File without changes
common/src/Tribe/Admin/Helpers.php CHANGED
File without changes
common/src/Tribe/Admin/Live_Date_Preview.php CHANGED
File without changes
common/src/Tribe/Admin/Notice/Plugin_Download.php CHANGED
File without changes
common/src/Tribe/Admin/Notice/Plugin_Upgrade_Notice.php CHANGED
File without changes
common/src/Tribe/Admin/Notices.php CHANGED
File without changes
common/src/Tribe/Ajax/Operations.php CHANGED
File without changes
common/src/Tribe/Asset/Data.php CHANGED
File without changes
common/src/Tribe/Asset/Factory.php CHANGED
File without changes
common/src/Tribe/Assets.php CHANGED
File without changes
common/src/Tribe/Container.php CHANGED
@@ -81,7 +81,7 @@ if ( ! function_exists( 'tribe_singleton' ) ) {
81
  * construction.
82
  */
83
  function tribe_singleton( $slug, $class, array $after_build_methods = null ) {
84
- Tribe__Container::instance()->singleton( $slug, $class, $after_build_methods );
85
  }
86
  }
87
 
@@ -145,7 +145,7 @@ if ( ! function_exists( 'tribe_register' ) ) {
145
  * will be called each time after the instance contstruction.
146
  */
147
  function tribe_register( $slug, $class, array $after_build_methods = null ) {
148
- Tribe__Container::instance()->bind( $slug, $class, $after_build_methods );
149
  }
150
  }
151
 
81
  * construction.
82
  */
83
  function tribe_singleton( $slug, $class, array $after_build_methods = null ) {
84
+ Tribe__Container::instance()->replaceSingleton( $slug, $class, $after_build_methods );
85
  }
86
  }
87
 
145
  * will be called each time after the instance contstruction.
146
  */
147
  function tribe_register( $slug, $class, array $after_build_methods = null ) {
148
+ Tribe__Container::instance()->replaceBind( $slug, $class, $after_build_methods );
149
  }
150
  }
151
 
common/src/Tribe/Cost_Utils.php CHANGED
File without changes
common/src/Tribe/Customizer.php CHANGED
File without changes
common/src/Tribe/Customizer/Section.php CHANGED
File without changes
common/src/Tribe/Debug.php CHANGED
File without changes
common/src/Tribe/Dependency.php CHANGED
File without changes
common/src/Tribe/Deprecation.php CHANGED
File without changes
common/src/Tribe/Documentation/Swagger/Builder_Interface.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ interface Tribe__Documentation__Swagger__Builder_Interface {
4
+ /**
5
+ * Registers a documentation provider for a path.
6
+ *
7
+ * @param $path
8
+ * @param Tribe__REST__Endpoints__Endpoint_Interface $endpoint
9
+ */
10
+ public function register_documentation_provider( $path, Tribe__Documentation__Swagger__Provider_Interface $endpoint );
11
+
12
+ /**
13
+ * @return Tribe__Documentation__Swagger__Provider_Interface[]
14
+ */
15
+ public function get_registered_documentation_providers();
16
+
17
+ /**
18
+ * Registers a documentation provider for a definition.
19
+ *
20
+ * @param string $type
21
+ * @param Tribe__Documentation__Swagger__Provider_Interface $provider
22
+ */
23
+ public function register_definition_provider( $type, Tribe__Documentation__Swagger__Provider_Interface $provider );
24
+
25
+ /**
26
+ * @return Tribe__Documentation__Swagger__Provider_Interface[]
27
+ */
28
+ public function get_registered_definition_providers();
29
+ }
common/src/Tribe/Documentation/Swagger/Cost_Details_Definition_Provider.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Tribe__Documentation__Swagger__Cost_Details_Definition_Provider
4
+ implements Tribe__Documentation__Swagger__Provider_Interface {
5
+
6
+ /**
7
+ * Returns an array in the format used by Swagger 2.0.
8
+ *
9
+ * While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
10
+ * or that of a document part.
11
+ * The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
12
+ * interface.
13
+ *
14
+ * @link http://swagger.io/
15
+ *
16
+ * @return array An array description of a Swagger supported component.
17
+ */
18
+ public function get_documentation() {
19
+ $documentation = array(
20
+ 'type' => 'array',
21
+ 'properties' => array(
22
+ 'currency_symbol' => array(
23
+ 'type' => 'string',
24
+ 'description' => __( 'The cost currency symbol', 'tribe-common' ),
25
+ ),
26
+ 'currency_position ' => array(
27
+ 'type' => 'string',
28
+ 'description' => __( 'The position of the currency symbol in the cost string', 'tribe-common' ),
29
+ 'enum' => array( 'prefix', 'postfix' ),
30
+ ),
31
+ 'values' => array(
32
+ 'type' => 'array',
33
+ 'description' => __( 'An sorted array of all the numeric values for the cost', 'tribe-common' ),
34
+ ),
35
+ ),
36
+ );
37
+
38
+ /**
39
+ * Filters the Swagger documentation generated for a cost details in the TEC REST API.
40
+ *
41
+ * @param array $documentation An associative PHP array in the format supported by Swagger.
42
+ *
43
+ * @link http://swagger.io/
44
+ */
45
+ $documentation = apply_filters( 'tribe_rest_swagger_cost_details_documentation', $documentation );
46
+
47
+ return $documentation;
48
+ }
49
+ }
common/src/Tribe/Documentation/Swagger/Date_Details_Definition_Provider.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Tribe__Documentation__Swagger__Date_Details_Definition_Provider
4
+ implements Tribe__Documentation__Swagger__Provider_Interface {
5
+
6
+ /**
7
+ * Returns an array in the format used by Swagger 2.0.
8
+ *
9
+ * While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
10
+ * or that of a document part.
11
+ * The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
12
+ * interface.
13
+ *
14
+ * @link http://swagger.io/
15
+ *
16
+ * @return array An array description of a Swagger supported component.
17
+ */
18
+ public function get_documentation() {
19
+ $documentation = array(
20
+ 'type' => 'array',
21
+ 'properties' => array(
22
+ 'year' => array(
23
+ 'type' => 'int',
24
+ 'description' => __( 'The date year', 'tribe-common' ),
25
+ ),
26
+ 'month' => array(
27
+ 'type' => 'int',
28
+ 'description' => __( 'The date month', 'tribe-common' ),
29
+ ),
30
+ 'day' => array(
31
+ 'type' => 'int',
32
+ 'description' => __( 'The date day', 'tribe-common' ),
33
+ ),
34
+ 'hour' => array(
35
+ 'type' => 'int',
36
+ 'description' => __( 'The date hour', 'tribe-common' ),
37
+ ),
38
+ 'minutes' => array(
39
+ 'type' => 'int',
40
+ 'description' => __( 'The date minutes', 'tribe-common' ),
41
+ ),
42
+ 'seconds' => array(
43
+ 'type' => 'int',
44
+ 'description' => __( 'The date seconds', 'tribe-common' ),
45
+ ),
46
+ ),
47
+ );
48
+
49
+ /**
50
+ * Filters the Swagger documentation generated for an date details in the TEC REST API.
51
+ *
52
+ * @param array $documentation An associative PHP array in the format supported by Swagger.
53
+ *
54
+ * @link http://swagger.io/
55
+ */
56
+ $documentation = apply_filters( 'tribe_rest_swagger_date_details_documentation', $documentation );
57
+
58
+ return $documentation;
59
+ }
60
+ }
common/src/Tribe/Documentation/Swagger/Image_Definition_Provider.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Tribe__Documentation__Swagger__Image_Definition_Provider
4
+ implements Tribe__Documentation__Swagger__Provider_Interface {
5
+
6
+ /**
7
+ * Returns an array in the format used by Swagger 2.0.
8
+ *
9
+ * While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
10
+ * or that of a document part.
11
+ * The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
12
+ * interface.
13
+ *
14
+ * @link http://swagger.io/
15
+ *
16
+ * @return array An array description of a Swagger supported component.
17
+ */
18
+ public function get_documentation() {
19
+ $documentation = array(
20
+ 'type' => 'object',
21
+ 'properties' => array(
22
+ 'url' => array(
23
+ 'type' =>'string',
24
+ 'description' =>__('The URL to the full size version of the image', 'tribe-common'),
25
+ ),
26
+ 'id' => array(
27
+ 'type' => 'int',
28
+ 'description' => __( 'The image WordPress post ID', 'tribe-common' ),
29
+ ),
30
+ 'extension' => array(
31
+ 'type' =>'string',
32
+ 'description' =>__('The image file extension', 'tribe-common'),
33
+ ),
34
+ 'width' => array(
35
+ 'type' => 'int',
36
+ 'description' => __( 'The image natural width in pixels', 'tribe-common' ),
37
+ ),
38
+ 'height' => array(
39
+ 'type' => 'int',
40
+ 'description' => __( 'The image natura height in pixels', 'tribe-common' ),
41
+ ),
42
+ 'sizes' => array(
43
+ 'type' => 'array',
44
+ 'description' => __( 'The details about each size available for the image', 'tribe-common' ),
45
+ '$ref' => '#/definitions/ImageSize',
46
+ ),
47
+ ),
48
+ );
49
+
50
+ /**
51
+ * Filters the Swagger documentation generated for an image deatails in the TEC REST API.
52
+ *
53
+ * @param array $documentation An associative PHP array in the format supported by Swagger.
54
+ *
55
+ * @link http://swagger.io/
56
+ */
57
+ $documentation = apply_filters( 'tribe_rest_swagger_image_details_documentation', $documentation );
58
+
59
+ return $documentation;
60
+ }
61
+ }
common/src/Tribe/Documentation/Swagger/Image_Size_Definition_Provider.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Tribe__Documentation__Swagger__Image_Size_Definition_Provider
4
+ implements Tribe__Documentation__Swagger__Provider_Interface {
5
+
6
+ /**
7
+ * Returns an array in the format used by Swagger 2.0.
8
+ *
9
+ * While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
10
+ * or that of a document part.
11
+ * The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
12
+ * interface.
13
+ *
14
+ * @link http://swagger.io/
15
+ *
16
+ * @return array An array description of a Swagger supported component.
17
+ */
18
+ public function get_documentation() {
19
+ $documentation = array(
20
+ 'type' => 'object',
21
+ 'properties' => array(
22
+ 'width' => array(
23
+ 'type' => 'int',
24
+ 'description' => __( 'The image width in pixels in the specified size', 'tribe-common' ),
25
+ ),
26
+ 'height' => array(
27
+ 'type' => 'int',
28
+ 'description' => __( 'The image height in pixels in the specified size', 'tribe-common' ),
29
+ ),
30
+ 'mime-type' => array(
31
+ 'type' => 'string',
32
+ 'description' => __( 'The image mime-type', 'tribe-common' ),
33
+ ),
34
+ 'url' => array(
35
+ 'type' => 'string',
36
+ 'description' => __( 'The link to the image in the specified size on the site', 'tribe-common' ),
37
+ ),
38
+ ),
39
+ );
40
+
41
+ /**
42
+ * Filters the Swagger documentation generated for an image size in the TEC REST API.
43
+ *
44
+ * @param array $documentation An associative PHP array in the format supported by Swagger.
45
+ *
46
+ * @link http://swagger.io/
47
+ */
48
+ $documentation = apply_filters( 'tribe_rest_swagger_image_size_documentation', $documentation );
49
+
50
+ return $documentation;
51
+ }
52
+ }
common/src/Tribe/Documentation/Swagger/Provider_Interface.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ interface Tribe__Documentation__Swagger__Provider_Interface {
4
+ /**
5
+ * Returns an array in the format used by Swagger 2.0.
6
+ *
7
+ * While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
8
+ * or that of a document part.
9
+ * The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
10
+ * interface.
11
+ *
12
+ * @link http://swagger.io/
13
+ *
14
+ * @return array An array description of a Swagger supported component.
15
+ */
16
+ public function get_documentation();
17
+ }
common/src/Tribe/Documentation/Swagger/Term_Definition_Provider.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Tribe__Documentation__Swagger__Term_Definition_Provider
4
+ implements Tribe__Documentation__Swagger__Provider_Interface {
5
+
6
+ /**
7
+ * Returns an array in the format used by Swagger 2.0.
8
+ *
9
+ * While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
10
+ * or that of a document part.
11
+ * The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
12
+ * interface.
13
+ *
14
+ * @link http://swagger.io/
15
+ *
16
+ * @return array An array description of a Swagger supported component.
17
+ */
18
+ public function get_documentation() {
19
+ $documentation = array(
20
+ 'type' => 'object',
21
+ 'properties' => array(
22
+ 'id' => array(
23
+ 'type' => 'int',
24
+ 'description' => __( 'The WordPress term ID', 'tribe-common' ),
25
+ ),
26
+ 'name' => array(
27
+ 'type' => 'string',
28
+ 'description' => __( 'The term name', 'tribe-common' ),
29
+ ),
30
+ 'slug' => array(
31
+ 'type' => 'string',
32
+ 'description' => __( 'The term slug', 'tribe-common' ),
33
+ ),
34
+ 'taxonomy' => array(
35
+ 'type' => 'string',
36
+ 'description' => __( 'The taxonomy the term belongs to', 'tribe-common' ),
37
+ ),
38
+ 'description' => array(
39
+ 'type' => 'string',
40
+ 'description' => __( 'The term description', 'tribe-common' ),
41
+ ),
42
+ 'parent' => array(
43
+ 'type' => 'int',
44
+ 'description' => __( 'The term parent term if any', 'tribe-common' ),
45
+ ),
46
+ 'count' => array(
47
+ 'type' => 'int',
48
+ 'description' => __( 'The number of posts associated with the term', 'tribe-common' ),
49
+ ),
50
+ 'link' => array(
51
+ 'type' => 'string',
52
+ 'description' => __( 'The URL to the term archive page', 'tribe-common' ),
53
+ ),
54
+ ),
55
+ );
56
+
57
+ /**
58
+ * Filters the Swagger documentation generated for an term in the TEC REST API.
59
+ *
60
+ * @param array $documentation An associative PHP array in the format supported by Swagger.
61
+ *
62
+ * @link http://swagger.io/
63
+ */
64
+ $documentation = apply_filters( 'tribe_rest_swagger_term_documentation', $documentation );
65
+
66
+ return $documentation;
67
+ }
68
+ }
common/src/Tribe/Error.php CHANGED
File without changes
common/src/Tribe/Exception.php CHANGED
File without changes
common/src/Tribe/Extension.php CHANGED
File without changes
common/src/Tribe/Extension_Loader.php CHANGED
File without changes
common/src/Tribe/Languages/Map_Interface.php CHANGED
File without changes
common/src/Tribe/Languages/Recaptcha_Map.php CHANGED
File without changes
common/src/Tribe/Log.php CHANGED
File without changes
common/src/Tribe/Log/Admin.php CHANGED
File without changes
common/src/Tribe/Log/File_Logger.php CHANGED
File without changes
common/src/Tribe/Log/Logger.php CHANGED
File without changes
common/src/Tribe/Log/Null_Logger.php CHANGED
File without changes
common/src/Tribe/Main.php CHANGED
File without changes
common/src/Tribe/Notices.php CHANGED
File without changes
common/src/Tribe/PUE/Notices.php CHANGED
File without changes
common/src/Tribe/PUE/Package_Handler.php CHANGED
File without changes
common/src/Tribe/Plugin_Meta_Links.php CHANGED
File without changes
common/src/Tribe/Plugins.php CHANGED
File without changes
common/src/Tribe/Post_History.php CHANGED
File without changes
common/src/Tribe/Post_Transient.php CHANGED
File without changes
common/src/Tribe/REST/Endpoints/Endpoint_Interface.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ interface Tribe__REST__Endpoints__Endpoint_Interface {
5
+
6
+ /**
7
+ * Handles GET requests on the endpoint.
8
+ *
9
+ * @param WP_REST_Request $request
10
+ *
11
+ * @return WP_Error|WP_REST_Response An array containing the data on success or a WP_Error instance on failure.
12
+ */
13
+ public function get( WP_REST_Request $request );
14
+ }
common/src/Tribe/REST/Exceptions/Exception.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class Tribe__REST__Exceptions__Exception
5
+ */
6
+ class Tribe__REST__Exceptions__Exception extends Exception {
7
+ /**
8
+ * @var int
9
+ */
10
+ protected $status;
11
+
12
+ public function __construct( $message, $code, $status ) {
13
+ $this->message = $message;
14
+ $this->code = $code;
15
+ $this->status = $status;
16
+ }
17
+
18
+ /**
19
+ * Return the error status.
20
+ * @return int
21
+ */
22
+ public function getStatus() {
23
+ return $this->status;
24
+ }
25
+ }
common/src/Tribe/REST/Headers/Base_Header.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ abstract class Tribe__REST__Headers__Base_Header {
5
+
6
+ /**
7
+ * @var Tribe__REST__Headers__Base_Interface
8
+ */
9
+ protected $base;
10
+
11
+ /**
12
+ * Tribe__REST__Headers__Base_Header constructor.
13
+ *
14
+ * @param Tribe__REST__Headers__Base_Interface $base
15
+ */
16
+ public function __construct( Tribe__REST__Headers__Base_Interface $base ) {
17
+ $this->base = $base;
18
+ }
19
+ }
common/src/Tribe/REST/Headers/Base_Interface.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /**
5
+ * Interface Tribe__REST__Headers__Base_Interface
6
+ *
7
+ * Provides basic information for the
8
+ */
9
+ interface Tribe__REST__Headers__Base_Interface {
10
+ /**
11
+ * Returns the header that the REST API will print on the page head to report
12
+ * its version.
13
+ *
14
+ * @return string
15
+ */
16
+ public function get_api_version_header();
17
+
18
+ /**
19
+ * Returns the header the REST API will print on the page head to report its root
20
+ * url.
21
+ *
22
+ * @return string
23
+ */
24
+ public function get_api_root_header();
25
+
26
+ /**
27
+ * Returns the `name` of the meta tag that will be printed on the page to indicate
28
+ * the REST API version.
29
+ *
30
+ * @return string
31
+ */
32
+ public function get_api_version_meta_name();
33
+
34
+ /**
35
+ * Returns the REST API URL.
36
+ *
37
+ * @return string
38
+ */
39
+ public function get_rest_url();
40
+ }
common/src/Tribe/REST/Headers/Disabled.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Tribe__REST__Headers__Disabled extends Tribe__REST__Headers__Base_Header implements Tribe__REST__Headers__Headers_Interface {
5
+
6
+ /**
7
+ * Prints TEC REST API related meta on the site.
8
+ */
9
+ public function add_header() {
10
+ // no-op
11
+ }
12
+
13
+ /**
14
+ * Sends TEC REST API related headers.
15
+ */
16
+ public function send_header() {
17
+ if ( headers_sent() ) {
18
+ return;
19
+ }
20
+
21
+ header( $this->base->get_api_version_header() . ': disabled' );
22
+ }
23
+ }
common/src/Tribe/REST/Headers/Headers_Interface.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class Tribe__REST__Headers__Headers_Interface
5
+ *
6
+ * Handles headers and header equivalent to be printed/sent in responses.
7
+ */
8
+ interface Tribe__REST__Headers__Headers_Interface {
9
+ /**
10
+ * Prints the REST API related meta on the site.
11
+ */
12
+ public function add_header();
13
+
14
+ /**
15
+ * Sends the REST API related headers.
16
+ */
17
+ public function send_header();
18
+ }
common/src/Tribe/REST/Headers/Supported.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Tribe__REST__Headers__Supported extends Tribe__REST__Headers__Base_Header implements Tribe__REST__Headers__Headers_Interface {
5
+
6
+ /**
7
+ * @var Tribe__Events__Main
8
+ */
9
+ protected $main;
10
+
11
+ public function __construct( Tribe__REST__Headers__Base_Interface $base, Tribe__REST__Main $main ) {
12
+ parent::__construct( $base );
13
+ $this->main = $main;
14
+ }
15
+
16
+ /**
17
+ * Prints TEC REST API related meta on the site.
18
+ */
19
+ public function add_header() {
20
+ $api_root = $this->base->get_rest_url();
21
+
22
+ if ( empty( $api_root ) ) {
23
+ return;
24
+ }
25
+
26
+ printf(
27
+ '<meta name="%s" content="%s"> <link rel="%s" href="%s" />',
28
+ esc_attr( $this->base->get_api_version_meta_name() ),
29
+ esc_attr( $this->main->get_version() ),
30
+ esc_attr( $this->main->get_reference_url() ),
31
+ esc_url( $api_root )
32
+ );
33
+ }
34
+
35
+ /**
36
+ * Sends TEC REST API related headers.
37
+ */
38
+ public function send_header() {
39
+ if ( headers_sent() ) {
40
+ return;
41
+ }
42
+
43
+ $api_root = $this->base->get_rest_url();
44
+
45
+ if ( empty( $api_root ) ) {
46
+ return;
47
+ }
48
+
49
+ header( $this->base->get_api_version_header() . ': ' . $this->main->get_version() );
50
+ header( $this->base->get_api_root_header() . ': ' . esc_url_raw( $api_root ) );
51
+ }
52
+ }
common/src/Tribe/REST/Headers/Unsupported.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Tribe__REST__Headers__Unsupported extends Tribe__REST__Headers__Base_Header implements Tribe__REST__Headers__Headers_Interface {
5
+
6
+ /**
7
+ * @var Tribe__REST__Main
8
+ */
9
+ protected $main;
10
+
11
+ /**
12
+ * Tribe__REST__Headers__Unsupported constructor.
13
+ *
14
+ * @param Tribe__REST__Headers__Base_Interface $base
15
+ * @param Tribe__REST__Main $main
16
+ */
17
+ public function __construct( Tribe__REST__Headers__Base_Interface $base, Tribe__REST__Main $main ) {
18
+ parent::__construct( $base );
19
+ $this->main = $main;
20
+ }
21
+
22
+ /**
23
+ * Prints TEC REST API related meta on the site.
24
+ */
25
+ public function add_header() {
26
+ // no-op
27
+ }
28
+
29
+ /**
30
+ * Sends TEC REST API related headers.
31
+ */
32
+ public function send_header() {
33
+ if ( headers_sent() ) {
34
+ return;
35
+ }
36
+
37
+ header( $this->main->get_api_version_header() . ': unsupported' );
38
+ }
39
+ }
common/src/Tribe/REST/Main.php ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ /**
5
+ * Class Tribe__REST__Main
6
+ *
7
+ * The main entry point for a Modern Tribe REST API implementation.
8
+ *
9
+ * This class should not contain business logic and merely set up and start the REST API support.
10
+ */
11
+ abstract class Tribe__REST__Main {
12
+
13
+ /**
14
+ * Modern Tribe REST APIs URL namespace.
15
+ *
16
+ * @var string
17
+ */
18
+ protected $namespace = '/tribe';
19
+
20
+ /**
21
+ * Returns the namespace of Modern Tribe REST APIs.
22
+ *
23
+ * @return string
24
+ */
25
+ public function get_namespace() {
26
+ return $this->namespace;
27
+ }
28
+
29
+ /**
30
+ * Returns the REST API URL prefix.
31
+ *
32
+ * @return string The REST API URL prefix.
33
+ */
34
+ public function get_url_prefix() {
35
+ $use_builtin = $this->use_builtin();
36
+
37
+ if ( $use_builtin ) {
38
+ $prefix = rest_get_url_prefix();
39
+ } else {
40
+ $prefix = apply_filters( 'rest_url_prefix', 'wp-json' );
41
+ }
42
+
43
+ $default_tec_prefix = $this->namespace . $this->url_prefix();
44
+ $prefix = rtrim( $prefix, '/' ) . $default_tec_prefix;
45
+
46
+ /**
47
+ * Filters the TEC REST API URL prefix
48
+ *
49
+ * @param string $prefix The complete URL prefix.
50
+ * @param string $default_tec_prefix The default URL prefix appended to the REST URL by The Events Calendar.
51
+ */
52
+ return apply_filters( 'tribe_events_rest_url_prefix', $prefix, $default_tec_prefix );
53
+ }
54
+
55
+ /**
56
+ * Retrieves the URL to a TEC REST endpoint on a site.
57
+ *
58
+ * Note: The returned URL is NOT escaped.
59
+ *
60
+ * @global WP_Rewrite $wp_rewrite