stump-cli 0.1.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1243) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/README.md +9 -5
  4. data/bin/stump-cli +77 -27
  5. data/lib/{wp/.gitignore → .gitignore.erb} +2 -2
  6. data/lib/stump-cli/version.rb +1 -1
  7. data/lib/style.erb +11 -0
  8. data/stump-cli.gemspec +2 -0
  9. metadata +56 -1268
  10. data/lib/wp/Movefile-example +0 -62
  11. data/lib/wp/README.md +0 -25
  12. data/lib/wp/index.php +0 -17
  13. data/lib/wp/license.txt +0 -385
  14. data/lib/wp/readme.html +0 -96
  15. data/lib/wp/wp-activate.php +0 -131
  16. data/lib/wp/wp-admin/about.php +0 -193
  17. data/lib/wp/wp-admin/admin-ajax.php +0 -98
  18. data/lib/wp/wp-admin/admin-footer.php +0 -99
  19. data/lib/wp/wp-admin/admin-functions.php +0 -15
  20. data/lib/wp/wp-admin/admin-header.php +0 -243
  21. data/lib/wp/wp-admin/admin-post.php +0 -71
  22. data/lib/wp/wp-admin/admin.php +0 -347
  23. data/lib/wp/wp-admin/async-upload.php +0 -114
  24. data/lib/wp/wp-admin/comment.php +0 -299
  25. data/lib/wp/wp-admin/credits.php +0 -192
  26. data/lib/wp/wp-admin/css/about-rtl.css +0 -446
  27. data/lib/wp/wp-admin/css/about.css +0 -446
  28. data/lib/wp/wp-admin/css/admin-menu-rtl.css +0 -917
  29. data/lib/wp/wp-admin/css/admin-menu.css +0 -917
  30. data/lib/wp/wp-admin/css/color-picker-rtl.css +0 -127
  31. data/lib/wp/wp-admin/css/color-picker-rtl.min.css +0 -1
  32. data/lib/wp/wp-admin/css/color-picker.css +0 -127
  33. data/lib/wp/wp-admin/css/color-picker.min.css +0 -1
  34. data/lib/wp/wp-admin/css/colors/_admin.scss +0 -525
  35. data/lib/wp/wp-admin/css/colors/_mixins.scss +0 -43
  36. data/lib/wp/wp-admin/css/colors/_variables.scss +0 -58
  37. data/lib/wp/wp-admin/css/colors/blue/colors-rtl.css +0 -341
  38. data/lib/wp/wp-admin/css/colors/blue/colors-rtl.min.css +0 -1
  39. data/lib/wp/wp-admin/css/colors/blue/colors.css +0 -341
  40. data/lib/wp/wp-admin/css/colors/blue/colors.min.css +0 -1
  41. data/lib/wp/wp-admin/css/colors/blue/colors.scss +0 -11
  42. data/lib/wp/wp-admin/css/colors/coffee/colors-rtl.css +0 -341
  43. data/lib/wp/wp-admin/css/colors/coffee/colors-rtl.min.css +0 -1
  44. data/lib/wp/wp-admin/css/colors/coffee/colors.css +0 -341
  45. data/lib/wp/wp-admin/css/colors/coffee/colors.min.css +0 -1
  46. data/lib/wp/wp-admin/css/colors/coffee/colors.scss +0 -7
  47. data/lib/wp/wp-admin/css/colors/ectoplasm/colors-rtl.css +0 -341
  48. data/lib/wp/wp-admin/css/colors/ectoplasm/colors-rtl.min.css +0 -1
  49. data/lib/wp/wp-admin/css/colors/ectoplasm/colors.css +0 -341
  50. data/lib/wp/wp-admin/css/colors/ectoplasm/colors.min.css +0 -1
  51. data/lib/wp/wp-admin/css/colors/ectoplasm/colors.scss +0 -8
  52. data/lib/wp/wp-admin/css/colors/light/colors-rtl.css +0 -349
  53. data/lib/wp/wp-admin/css/colors/light/colors-rtl.min.css +0 -1
  54. data/lib/wp/wp-admin/css/colors/light/colors.css +0 -349
  55. data/lib/wp/wp-admin/css/colors/light/colors.min.css +0 -1
  56. data/lib/wp/wp-admin/css/colors/light/colors.scss +0 -38
  57. data/lib/wp/wp-admin/css/colors/midnight/colors-rtl.css +0 -341
  58. data/lib/wp/wp-admin/css/colors/midnight/colors-rtl.min.css +0 -1
  59. data/lib/wp/wp-admin/css/colors/midnight/colors.css +0 -341
  60. data/lib/wp/wp-admin/css/colors/midnight/colors.min.css +0 -1
  61. data/lib/wp/wp-admin/css/colors/midnight/colors.scss +0 -5
  62. data/lib/wp/wp-admin/css/colors/ocean/colors-rtl.css +0 -341
  63. data/lib/wp/wp-admin/css/colors/ocean/colors-rtl.min.css +0 -1
  64. data/lib/wp/wp-admin/css/colors/ocean/colors.css +0 -341
  65. data/lib/wp/wp-admin/css/colors/ocean/colors.min.css +0 -1
  66. data/lib/wp/wp-admin/css/colors/ocean/colors.scss +0 -8
  67. data/lib/wp/wp-admin/css/colors/sunrise/colors-rtl.css +0 -341
  68. data/lib/wp/wp-admin/css/colors/sunrise/colors-rtl.min.css +0 -1
  69. data/lib/wp/wp-admin/css/colors/sunrise/colors.css +0 -341
  70. data/lib/wp/wp-admin/css/colors/sunrise/colors.min.css +0 -1
  71. data/lib/wp/wp-admin/css/colors/sunrise/colors.scss +0 -6
  72. data/lib/wp/wp-admin/css/common-rtl.css +0 -3212
  73. data/lib/wp/wp-admin/css/common.css +0 -3212
  74. data/lib/wp/wp-admin/css/customize-controls-rtl.css +0 -889
  75. data/lib/wp/wp-admin/css/customize-controls-rtl.min.css +0 -1
  76. data/lib/wp/wp-admin/css/customize-controls.css +0 -889
  77. data/lib/wp/wp-admin/css/customize-controls.min.css +0 -1
  78. data/lib/wp/wp-admin/css/customize-widgets-rtl.css +0 -603
  79. data/lib/wp/wp-admin/css/customize-widgets-rtl.min.css +0 -1
  80. data/lib/wp/wp-admin/css/customize-widgets.css +0 -603
  81. data/lib/wp/wp-admin/css/customize-widgets.min.css +0 -1
  82. data/lib/wp/wp-admin/css/dashboard-rtl.css +0 -1116
  83. data/lib/wp/wp-admin/css/dashboard.css +0 -1116
  84. data/lib/wp/wp-admin/css/deprecated-media-rtl.css +0 -371
  85. data/lib/wp/wp-admin/css/deprecated-media-rtl.min.css +0 -1
  86. data/lib/wp/wp-admin/css/deprecated-media.css +0 -371
  87. data/lib/wp/wp-admin/css/deprecated-media.min.css +0 -1
  88. data/lib/wp/wp-admin/css/edit-rtl.css +0 -1501
  89. data/lib/wp/wp-admin/css/edit.css +0 -1501
  90. data/lib/wp/wp-admin/css/farbtastic-rtl.css +0 -41
  91. data/lib/wp/wp-admin/css/farbtastic.css +0 -41
  92. data/lib/wp/wp-admin/css/forms-rtl.css +0 -992
  93. data/lib/wp/wp-admin/css/forms.css +0 -992
  94. data/lib/wp/wp-admin/css/ie-rtl.css +0 -785
  95. data/lib/wp/wp-admin/css/ie-rtl.min.css +0 -1
  96. data/lib/wp/wp-admin/css/ie.css +0 -785
  97. data/lib/wp/wp-admin/css/ie.min.css +0 -1
  98. data/lib/wp/wp-admin/css/install-rtl.css +0 -389
  99. data/lib/wp/wp-admin/css/install-rtl.min.css +0 -1
  100. data/lib/wp/wp-admin/css/install.css +0 -389
  101. data/lib/wp/wp-admin/css/install.min.css +0 -1
  102. data/lib/wp/wp-admin/css/l10n-rtl.css +0 -101
  103. data/lib/wp/wp-admin/css/l10n.css +0 -101
  104. data/lib/wp/wp-admin/css/list-tables-rtl.css +0 -1875
  105. data/lib/wp/wp-admin/css/list-tables.css +0 -1875
  106. data/lib/wp/wp-admin/css/login-rtl.css +0 -269
  107. data/lib/wp/wp-admin/css/login-rtl.min.css +0 -1
  108. data/lib/wp/wp-admin/css/login.css +0 -269
  109. data/lib/wp/wp-admin/css/login.min.css +0 -1
  110. data/lib/wp/wp-admin/css/media-rtl.css +0 -1196
  111. data/lib/wp/wp-admin/css/media.css +0 -1196
  112. data/lib/wp/wp-admin/css/nav-menus-rtl.css +0 -857
  113. data/lib/wp/wp-admin/css/nav-menus.css +0 -857
  114. data/lib/wp/wp-admin/css/press-this-rtl.css +0 -458
  115. data/lib/wp/wp-admin/css/press-this.css +0 -458
  116. data/lib/wp/wp-admin/css/revisions-rtl.css +0 -574
  117. data/lib/wp/wp-admin/css/revisions.css +0 -574
  118. data/lib/wp/wp-admin/css/themes-rtl.css +0 -1732
  119. data/lib/wp/wp-admin/css/themes.css +0 -1732
  120. data/lib/wp/wp-admin/css/widgets-rtl.css +0 -577
  121. data/lib/wp/wp-admin/css/widgets.css +0 -577
  122. data/lib/wp/wp-admin/css/wp-admin-rtl.css +0 -14
  123. data/lib/wp/wp-admin/css/wp-admin-rtl.min.css +0 -1
  124. data/lib/wp/wp-admin/css/wp-admin.css +0 -14
  125. data/lib/wp/wp-admin/css/wp-admin.min.css +0 -1
  126. data/lib/wp/wp-admin/custom-background.php +0 -482
  127. data/lib/wp/wp-admin/custom-header.php +0 -1366
  128. data/lib/wp/wp-admin/customize.php +0 -278
  129. data/lib/wp/wp-admin/edit-comments.php +0 -254
  130. data/lib/wp/wp-admin/edit-form-advanced.php +0 -636
  131. data/lib/wp/wp-admin/edit-form-comment.php +0 -160
  132. data/lib/wp/wp-admin/edit-link-form.php +0 -150
  133. data/lib/wp/wp-admin/edit-tag-form.php +0 -204
  134. data/lib/wp/wp-admin/edit-tags.php +0 -591
  135. data/lib/wp/wp-admin/edit.php +0 -330
  136. data/lib/wp/wp-admin/export.php +0 -243
  137. data/lib/wp/wp-admin/freedoms.php +0 -57
  138. data/lib/wp/wp-admin/images/align-center-2x.png +0 -0
  139. data/lib/wp/wp-admin/images/align-center.png +0 -0
  140. data/lib/wp/wp-admin/images/align-left-2x.png +0 -0
  141. data/lib/wp/wp-admin/images/align-left.png +0 -0
  142. data/lib/wp/wp-admin/images/align-none-2x.png +0 -0
  143. data/lib/wp/wp-admin/images/align-none.png +0 -0
  144. data/lib/wp/wp-admin/images/align-right-2x.png +0 -0
  145. data/lib/wp/wp-admin/images/align-right.png +0 -0
  146. data/lib/wp/wp-admin/images/arrows-2x.png +0 -0
  147. data/lib/wp/wp-admin/images/arrows.png +0 -0
  148. data/lib/wp/wp-admin/images/bubble_bg-2x.gif +0 -0
  149. data/lib/wp/wp-admin/images/bubble_bg.gif +0 -0
  150. data/lib/wp/wp-admin/images/comment-grey-bubble-2x.png +0 -0
  151. data/lib/wp/wp-admin/images/comment-grey-bubble.png +0 -0
  152. data/lib/wp/wp-admin/images/date-button-2x.gif +0 -0
  153. data/lib/wp/wp-admin/images/date-button.gif +0 -0
  154. data/lib/wp/wp-admin/images/generic.png +0 -0
  155. data/lib/wp/wp-admin/images/icons32-2x.png +0 -0
  156. data/lib/wp/wp-admin/images/icons32-vs-2x.png +0 -0
  157. data/lib/wp/wp-admin/images/icons32-vs.png +0 -0
  158. data/lib/wp/wp-admin/images/icons32.png +0 -0
  159. data/lib/wp/wp-admin/images/imgedit-icons-2x.png +0 -0
  160. data/lib/wp/wp-admin/images/imgedit-icons.png +0 -0
  161. data/lib/wp/wp-admin/images/list-2x.png +0 -0
  162. data/lib/wp/wp-admin/images/list.png +0 -0
  163. data/lib/wp/wp-admin/images/loading.gif +0 -0
  164. data/lib/wp/wp-admin/images/marker.png +0 -0
  165. data/lib/wp/wp-admin/images/mask.png +0 -0
  166. data/lib/wp/wp-admin/images/media-button-2x.png +0 -0
  167. data/lib/wp/wp-admin/images/media-button-image.gif +0 -0
  168. data/lib/wp/wp-admin/images/media-button-music.gif +0 -0
  169. data/lib/wp/wp-admin/images/media-button-other.gif +0 -0
  170. data/lib/wp/wp-admin/images/media-button-video.gif +0 -0
  171. data/lib/wp/wp-admin/images/media-button.png +0 -0
  172. data/lib/wp/wp-admin/images/menu-2x.png +0 -0
  173. data/lib/wp/wp-admin/images/menu-vs-2x.png +0 -0
  174. data/lib/wp/wp-admin/images/menu-vs.png +0 -0
  175. data/lib/wp/wp-admin/images/menu.png +0 -0
  176. data/lib/wp/wp-admin/images/no.png +0 -0
  177. data/lib/wp/wp-admin/images/post-formats-vs.png +0 -0
  178. data/lib/wp/wp-admin/images/post-formats.png +0 -0
  179. data/lib/wp/wp-admin/images/post-formats32-vs.png +0 -0
  180. data/lib/wp/wp-admin/images/post-formats32.png +0 -0
  181. data/lib/wp/wp-admin/images/resize-2x.gif +0 -0
  182. data/lib/wp/wp-admin/images/resize-rtl-2x.gif +0 -0
  183. data/lib/wp/wp-admin/images/resize-rtl.gif +0 -0
  184. data/lib/wp/wp-admin/images/resize.gif +0 -0
  185. data/lib/wp/wp-admin/images/se.png +0 -0
  186. data/lib/wp/wp-admin/images/sort-2x.gif +0 -0
  187. data/lib/wp/wp-admin/images/sort.gif +0 -0
  188. data/lib/wp/wp-admin/images/spinner-2x.gif +0 -0
  189. data/lib/wp/wp-admin/images/spinner.gif +0 -0
  190. data/lib/wp/wp-admin/images/stars-2x.png +0 -0
  191. data/lib/wp/wp-admin/images/stars.png +0 -0
  192. data/lib/wp/wp-admin/images/w-logo-blue.png +0 -0
  193. data/lib/wp/wp-admin/images/w-logo-white.png +0 -0
  194. data/lib/wp/wp-admin/images/wheel.png +0 -0
  195. data/lib/wp/wp-admin/images/wordpress-logo-white.svg +0 -1
  196. data/lib/wp/wp-admin/images/wordpress-logo.png +0 -0
  197. data/lib/wp/wp-admin/images/wordpress-logo.svg +0 -1
  198. data/lib/wp/wp-admin/images/wpspin_light-2x.gif +0 -0
  199. data/lib/wp/wp-admin/images/wpspin_light.gif +0 -0
  200. data/lib/wp/wp-admin/images/xit-2x.gif +0 -0
  201. data/lib/wp/wp-admin/images/xit.gif +0 -0
  202. data/lib/wp/wp-admin/images/yes.png +0 -0
  203. data/lib/wp/wp-admin/import.php +0 -132
  204. data/lib/wp/wp-admin/includes/admin.php +0 -74
  205. data/lib/wp/wp-admin/includes/ajax-actions.php +0 -2762
  206. data/lib/wp/wp-admin/includes/bookmark.php +0 -305
  207. data/lib/wp/wp-admin/includes/class-ftp-pure.php +0 -190
  208. data/lib/wp/wp-admin/includes/class-ftp-sockets.php +0 -250
  209. data/lib/wp/wp-admin/includes/class-ftp.php +0 -907
  210. data/lib/wp/wp-admin/includes/class-pclzip.php +0 -5687
  211. data/lib/wp/wp-admin/includes/class-wp-comments-list-table.php +0 -637
  212. data/lib/wp/wp-admin/includes/class-wp-filesystem-base.php +0 -815
  213. data/lib/wp/wp-admin/includes/class-wp-filesystem-direct.php +0 -384
  214. data/lib/wp/wp-admin/includes/class-wp-filesystem-ftpext.php +0 -415
  215. data/lib/wp/wp-admin/includes/class-wp-filesystem-ftpsockets.php +0 -352
  216. data/lib/wp/wp-admin/includes/class-wp-filesystem-ssh2.php +0 -392
  217. data/lib/wp/wp-admin/includes/class-wp-importer.php +0 -302
  218. data/lib/wp/wp-admin/includes/class-wp-links-list-table.php +0 -207
  219. data/lib/wp/wp-admin/includes/class-wp-list-table.php +0 -1080
  220. data/lib/wp/wp-admin/includes/class-wp-media-list-table.php +0 -574
  221. data/lib/wp/wp-admin/includes/class-wp-ms-sites-list-table.php +0 -402
  222. data/lib/wp/wp-admin/includes/class-wp-ms-themes-list-table.php +0 -459
  223. data/lib/wp/wp-admin/includes/class-wp-ms-users-list-table.php +0 -303
  224. data/lib/wp/wp-admin/includes/class-wp-plugin-install-list-table.php +0 -490
  225. data/lib/wp/wp-admin/includes/class-wp-plugins-list-table.php +0 -605
  226. data/lib/wp/wp-admin/includes/class-wp-posts-list-table.php +0 -1306
  227. data/lib/wp/wp-admin/includes/class-wp-terms-list-table.php +0 -466
  228. data/lib/wp/wp-admin/includes/class-wp-theme-install-list-table.php +0 -431
  229. data/lib/wp/wp-admin/includes/class-wp-themes-list-table.php +0 -279
  230. data/lib/wp/wp-admin/includes/class-wp-upgrader-skins.php +0 -767
  231. data/lib/wp/wp-admin/includes/class-wp-upgrader.php +0 -2676
  232. data/lib/wp/wp-admin/includes/class-wp-users-list-table.php +0 -459
  233. data/lib/wp/wp-admin/includes/comment.php +0 -171
  234. data/lib/wp/wp-admin/includes/continents-cities.php +0 -493
  235. data/lib/wp/wp-admin/includes/dashboard.php +0 -1333
  236. data/lib/wp/wp-admin/includes/deprecated.php +0 -1190
  237. data/lib/wp/wp-admin/includes/export.php +0 -508
  238. data/lib/wp/wp-admin/includes/file.php +0 -1152
  239. data/lib/wp/wp-admin/includes/image-edit.php +0 -828
  240. data/lib/wp/wp-admin/includes/image.php +0 -598
  241. data/lib/wp/wp-admin/includes/import.php +0 -206
  242. data/lib/wp/wp-admin/includes/list-table.php +0 -113
  243. data/lib/wp/wp-admin/includes/media.php +0 -3012
  244. data/lib/wp/wp-admin/includes/menu.php +0 -322
  245. data/lib/wp/wp-admin/includes/meta-boxes.php +0 -1119
  246. data/lib/wp/wp-admin/includes/misc.php +0 -845
  247. data/lib/wp/wp-admin/includes/ms-deprecated.php +0 -78
  248. data/lib/wp/wp-admin/includes/ms.php +0 -814
  249. data/lib/wp/wp-admin/includes/nav-menu.php +0 -1328
  250. data/lib/wp/wp-admin/includes/plugin-install.php +0 -550
  251. data/lib/wp/wp-admin/includes/plugin.php +0 -1899
  252. data/lib/wp/wp-admin/includes/post.php +0 -1661
  253. data/lib/wp/wp-admin/includes/revision.php +0 -228
  254. data/lib/wp/wp-admin/includes/schema.php +0 -1038
  255. data/lib/wp/wp-admin/includes/screen.php +0 -1179
  256. data/lib/wp/wp-admin/includes/taxonomy.php +0 -284
  257. data/lib/wp/wp-admin/includes/template.php +0 -2157
  258. data/lib/wp/wp-admin/includes/theme-install.php +0 -205
  259. data/lib/wp/wp-admin/includes/theme.php +0 -474
  260. data/lib/wp/wp-admin/includes/translation-install.php +0 -240
  261. data/lib/wp/wp-admin/includes/update-core.php +0 -1186
  262. data/lib/wp/wp-admin/includes/update.php +0 -432
  263. data/lib/wp/wp-admin/includes/upgrade.php +0 -2218
  264. data/lib/wp/wp-admin/includes/user.php +0 -442
  265. data/lib/wp/wp-admin/includes/widgets.php +0 -245
  266. data/lib/wp/wp-admin/index.php +0 -131
  267. data/lib/wp/wp-admin/install-helper.php +0 -199
  268. data/lib/wp/wp-admin/install.php +0 -305
  269. data/lib/wp/wp-admin/js/accordion.js +0 -143
  270. data/lib/wp/wp-admin/js/accordion.min.js +0 -1
  271. data/lib/wp/wp-admin/js/color-picker.js +0 -155
  272. data/lib/wp/wp-admin/js/color-picker.min.js +0 -1
  273. data/lib/wp/wp-admin/js/comment.js +0 -50
  274. data/lib/wp/wp-admin/js/comment.min.js +0 -1
  275. data/lib/wp/wp-admin/js/common.js +0 -804
  276. data/lib/wp/wp-admin/js/common.min.js +0 -1
  277. data/lib/wp/wp-admin/js/custom-background.js +0 -75
  278. data/lib/wp/wp-admin/js/custom-background.min.js +0 -1
  279. data/lib/wp/wp-admin/js/custom-header.js +0 -61
  280. data/lib/wp/wp-admin/js/customize-controls.js +0 -1305
  281. data/lib/wp/wp-admin/js/customize-controls.min.js +0 -1
  282. data/lib/wp/wp-admin/js/customize-widgets.js +0 -1882
  283. data/lib/wp/wp-admin/js/customize-widgets.min.js +0 -1
  284. data/lib/wp/wp-admin/js/dashboard.js +0 -190
  285. data/lib/wp/wp-admin/js/dashboard.min.js +0 -1
  286. data/lib/wp/wp-admin/js/edit-comments.js +0 -625
  287. data/lib/wp/wp-admin/js/edit-comments.min.js +0 -1
  288. data/lib/wp/wp-admin/js/editor-expand.js +0 -705
  289. data/lib/wp/wp-admin/js/editor-expand.min.js +0 -1
  290. data/lib/wp/wp-admin/js/editor.js +0 -324
  291. data/lib/wp/wp-admin/js/editor.min.js +0 -1
  292. data/lib/wp/wp-admin/js/farbtastic.js +0 -276
  293. data/lib/wp/wp-admin/js/gallery.js +0 -237
  294. data/lib/wp/wp-admin/js/gallery.min.js +0 -1
  295. data/lib/wp/wp-admin/js/image-edit.js +0 -633
  296. data/lib/wp/wp-admin/js/image-edit.min.js +0 -1
  297. data/lib/wp/wp-admin/js/inline-edit-post.js +0 -359
  298. data/lib/wp/wp-admin/js/inline-edit-post.min.js +0 -1
  299. data/lib/wp/wp-admin/js/inline-edit-tax.js +0 -142
  300. data/lib/wp/wp-admin/js/inline-edit-tax.min.js +0 -1
  301. data/lib/wp/wp-admin/js/iris.min.js +0 -4
  302. data/lib/wp/wp-admin/js/language-chooser.js +0 -26
  303. data/lib/wp/wp-admin/js/language-chooser.min.js +0 -1
  304. data/lib/wp/wp-admin/js/link.js +0 -69
  305. data/lib/wp/wp-admin/js/link.min.js +0 -1
  306. data/lib/wp/wp-admin/js/media-gallery.js +0 -26
  307. data/lib/wp/wp-admin/js/media-gallery.min.js +0 -1
  308. data/lib/wp/wp-admin/js/media-upload.js +0 -69
  309. data/lib/wp/wp-admin/js/media-upload.min.js +0 -1
  310. data/lib/wp/wp-admin/js/media.js +0 -111
  311. data/lib/wp/wp-admin/js/media.min.js +0 -1
  312. data/lib/wp/wp-admin/js/nav-menu.js +0 -1205
  313. data/lib/wp/wp-admin/js/nav-menu.min.js +0 -1
  314. data/lib/wp/wp-admin/js/password-strength-meter.js +0 -75
  315. data/lib/wp/wp-admin/js/password-strength-meter.min.js +0 -1
  316. data/lib/wp/wp-admin/js/plugin-install.js +0 -76
  317. data/lib/wp/wp-admin/js/plugin-install.min.js +0 -1
  318. data/lib/wp/wp-admin/js/post.js +0 -1094
  319. data/lib/wp/wp-admin/js/post.min.js +0 -1
  320. data/lib/wp/wp-admin/js/postbox.js +0 -199
  321. data/lib/wp/wp-admin/js/postbox.min.js +0 -1
  322. data/lib/wp/wp-admin/js/revisions.js +0 -1110
  323. data/lib/wp/wp-admin/js/revisions.min.js +0 -1
  324. data/lib/wp/wp-admin/js/set-post-thumbnail.js +0 -24
  325. data/lib/wp/wp-admin/js/set-post-thumbnail.min.js +0 -1
  326. data/lib/wp/wp-admin/js/svg-painter.js +0 -240
  327. data/lib/wp/wp-admin/js/svg-painter.min.js +0 -1
  328. data/lib/wp/wp-admin/js/tags.js +0 -72
  329. data/lib/wp/wp-admin/js/tags.min.js +0 -1
  330. data/lib/wp/wp-admin/js/theme.js +0 -1691
  331. data/lib/wp/wp-admin/js/theme.min.js +0 -1
  332. data/lib/wp/wp-admin/js/updates.js +0 -65
  333. data/lib/wp/wp-admin/js/updates.min.js +0 -1
  334. data/lib/wp/wp-admin/js/user-profile.js +0 -127
  335. data/lib/wp/wp-admin/js/user-profile.min.js +0 -1
  336. data/lib/wp/wp-admin/js/user-suggest.js +0 -30
  337. data/lib/wp/wp-admin/js/user-suggest.min.js +0 -1
  338. data/lib/wp/wp-admin/js/widgets.js +0 -494
  339. data/lib/wp/wp-admin/js/widgets.min.js +0 -1
  340. data/lib/wp/wp-admin/js/word-count.js +0 -44
  341. data/lib/wp/wp-admin/js/word-count.min.js +0 -1
  342. data/lib/wp/wp-admin/js/wp-fullscreen.js +0 -704
  343. data/lib/wp/wp-admin/js/wp-fullscreen.min.js +0 -1
  344. data/lib/wp/wp-admin/js/xfn.js +0 -17
  345. data/lib/wp/wp-admin/js/xfn.min.js +0 -1
  346. data/lib/wp/wp-admin/link-add.php +0 -29
  347. data/lib/wp/wp-admin/link-manager.php +0 -99
  348. data/lib/wp/wp-admin/link-parse-opml.php +0 -84
  349. data/lib/wp/wp-admin/link.php +0 -117
  350. data/lib/wp/wp-admin/load-scripts.php +0 -162
  351. data/lib/wp/wp-admin/load-styles.php +0 -153
  352. data/lib/wp/wp-admin/maint/repair.php +0 -124
  353. data/lib/wp/wp-admin/media-new.php +0 -84
  354. data/lib/wp/wp-admin/media-upload.php +0 -100
  355. data/lib/wp/wp-admin/media.php +0 -146
  356. data/lib/wp/wp-admin/menu-header.php +0 -227
  357. data/lib/wp/wp-admin/menu.php +0 -255
  358. data/lib/wp/wp-admin/moderation.php +0 -12
  359. data/lib/wp/wp-admin/ms-admin.php +0 -13
  360. data/lib/wp/wp-admin/ms-delete-site.php +0 -91
  361. data/lib/wp/wp-admin/ms-edit.php +0 -13
  362. data/lib/wp/wp-admin/ms-options.php +0 -12
  363. data/lib/wp/wp-admin/ms-sites.php +0 -13
  364. data/lib/wp/wp-admin/ms-themes.php +0 -13
  365. data/lib/wp/wp-admin/ms-upgrade-network.php +0 -13
  366. data/lib/wp/wp-admin/ms-users.php +0 -13
  367. data/lib/wp/wp-admin/my-sites.php +0 -145
  368. data/lib/wp/wp-admin/nav-menus.php +0 -798
  369. data/lib/wp/wp-admin/network.php +0 -561
  370. data/lib/wp/wp-admin/network/about.php +0 -16
  371. data/lib/wp/wp-admin/network/admin.php +0 -32
  372. data/lib/wp/wp-admin/network/credits.php +0 -16
  373. data/lib/wp/wp-admin/network/edit.php +0 -42
  374. data/lib/wp/wp-admin/network/freedoms.php +0 -16
  375. data/lib/wp/wp-admin/network/index.php +0 -79
  376. data/lib/wp/wp-admin/network/menu.php +0 -63
  377. data/lib/wp/wp-admin/network/plugin-editor.php +0 -16
  378. data/lib/wp/wp-admin/network/plugin-install.php +0 -19
  379. data/lib/wp/wp-admin/network/plugins.php +0 -16
  380. data/lib/wp/wp-admin/network/profile.php +0 -16
  381. data/lib/wp/wp-admin/network/settings.php +0 -347
  382. data/lib/wp/wp-admin/network/setup.php +0 -16
  383. data/lib/wp/wp-admin/network/site-info.php +0 -178
  384. data/lib/wp/wp-admin/network/site-new.php +0 -153
  385. data/lib/wp/wp-admin/network/site-settings.php +0 -173
  386. data/lib/wp/wp-admin/network/site-themes.php +0 -185
  387. data/lib/wp/wp-admin/network/site-users.php +0 -319
  388. data/lib/wp/wp-admin/network/sites.php +0 -275
  389. data/lib/wp/wp-admin/network/theme-editor.php +0 -16
  390. data/lib/wp/wp-admin/network/theme-install.php +0 -19
  391. data/lib/wp/wp-admin/network/themes.php +0 -291
  392. data/lib/wp/wp-admin/network/update-core.php +0 -16
  393. data/lib/wp/wp-admin/network/update.php +0 -19
  394. data/lib/wp/wp-admin/network/upgrade.php +0 -120
  395. data/lib/wp/wp-admin/network/user-edit.php +0 -16
  396. data/lib/wp/wp-admin/network/user-new.php +0 -106
  397. data/lib/wp/wp-admin/network/users.php +0 -296
  398. data/lib/wp/wp-admin/options-discussion.php +0 -273
  399. data/lib/wp/wp-admin/options-general.php +0 -355
  400. data/lib/wp/wp-admin/options-head.php +0 -18
  401. data/lib/wp/wp-admin/options-media.php +0 -136
  402. data/lib/wp/wp-admin/options-permalink.php +0 -289
  403. data/lib/wp/wp-admin/options-reading.php +0 -184
  404. data/lib/wp/wp-admin/options-writing.php +0 -194
  405. data/lib/wp/wp-admin/options.php +0 -265
  406. data/lib/wp/wp-admin/plugin-editor.php +0 -279
  407. data/lib/wp/wp-admin/plugin-install.php +0 -134
  408. data/lib/wp/wp-admin/plugins.php +0 -474
  409. data/lib/wp/wp-admin/post-new.php +0 -74
  410. data/lib/wp/wp-admin/post.php +0 -318
  411. data/lib/wp/wp-admin/press-this.php +0 -691
  412. data/lib/wp/wp-admin/profile.php +0 -18
  413. data/lib/wp/wp-admin/revision.php +0 -221
  414. data/lib/wp/wp-admin/setup-config.php +0 -345
  415. data/lib/wp/wp-admin/theme-editor.php +0 -243
  416. data/lib/wp/wp-admin/theme-install.php +0 -278
  417. data/lib/wp/wp-admin/themes.php +0 -374
  418. data/lib/wp/wp-admin/tools.php +0 -75
  419. data/lib/wp/wp-admin/update-core.php +0 -653
  420. data/lib/wp/wp-admin/update.php +0 -272
  421. data/lib/wp/wp-admin/upgrade-functions.php +0 -12
  422. data/lib/wp/wp-admin/upgrade.php +0 -116
  423. data/lib/wp/wp-admin/upload.php +0 -292
  424. data/lib/wp/wp-admin/user-edit.php +0 -557
  425. data/lib/wp/wp-admin/user-new.php +0 -439
  426. data/lib/wp/wp-admin/user/about.php +0 -13
  427. data/lib/wp/wp-admin/user/admin.php +0 -32
  428. data/lib/wp/wp-admin/user/credits.php +0 -13
  429. data/lib/wp/wp-admin/user/freedoms.php +0 -13
  430. data/lib/wp/wp-admin/user/index.php +0 -12
  431. data/lib/wp/wp-admin/user/menu.php +0 -22
  432. data/lib/wp/wp-admin/user/profile.php +0 -12
  433. data/lib/wp/wp-admin/user/user-edit.php +0 -12
  434. data/lib/wp/wp-admin/users.php +0 -460
  435. data/lib/wp/wp-admin/widgets.php +0 -442
  436. data/lib/wp/wp-blog-header.php +0 -18
  437. data/lib/wp/wp-comments-post.php +0 -164
  438. data/lib/wp/wp-config-sample.php +0 -80
  439. data/lib/wp/wp-content/index.php +0 -2
  440. data/lib/wp/wp-content/plugins/hello.php +0 -82
  441. data/lib/wp/wp-content/plugins/index.php +0 -2
  442. data/lib/wp/wp-content/themes/index.php +0 -2
  443. data/lib/wp/wp-content/themes/stump/.editorconfig +0 -11
  444. data/lib/wp/wp-content/themes/stump/.jshintrc +0 -16
  445. data/lib/wp/wp-content/themes/stump/404.php +0 -13
  446. data/lib/wp/wp-content/themes/stump/CHANGELOG.md +0 -333
  447. data/lib/wp/wp-content/themes/stump/CONTRIBUTING.md +0 -121
  448. data/lib/wp/wp-content/themes/stump/Gruntfile.js +0 -151
  449. data/lib/wp/wp-content/themes/stump/LICENSE.md +0 -19
  450. data/lib/wp/wp-content/themes/stump/assets/coffee/build/.gitkeep +0 -0
  451. data/lib/wp/wp-content/themes/stump/assets/css/editor-style.css +0 -548
  452. data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  453. data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.svg +0 -229
  454. data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  455. data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  456. data/lib/wp/wp-content/themes/stump/assets/img/.gitignore +0 -0
  457. data/lib/wp/wp-content/themes/stump/assets/js/_main.js +0 -63
  458. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/affix.js +0 -137
  459. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/alert.js +0 -88
  460. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/button.js +0 -107
  461. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/carousel.js +0 -205
  462. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/collapse.js +0 -170
  463. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/dropdown.js +0 -147
  464. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/modal.js +0 -243
  465. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/popover.js +0 -110
  466. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/scrollspy.js +0 -153
  467. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/tab.js +0 -125
  468. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/tooltip.js +0 -399
  469. data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/transition.js +0 -48
  470. data/lib/wp/wp-content/themes/stump/assets/js/scripts.min.js +0 -1
  471. data/lib/wp/wp-content/themes/stump/assets/js/vendor/jquery-1.11.0.min.js +0 -4
  472. data/lib/wp/wp-content/themes/stump/assets/js/vendor/modernizr-2.7.0.min.js +0 -4
  473. data/lib/wp/wp-content/themes/stump/assets/sass/app.scss +0 -9
  474. data/lib/wp/wp-content/themes/stump/assets/sass/core/_variables.scss +0 -1
  475. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_alerts.scss +0 -67
  476. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_badges.scss +0 -55
  477. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_bootstrap.scss +0 -49
  478. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_breadcrumbs.scss +0 -26
  479. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_button-groups.scss +0 -226
  480. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_buttons.scss +0 -159
  481. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_carousel.scss +0 -232
  482. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_close.scss +0 -35
  483. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_code.scss +0 -63
  484. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_component-animations.scss +0 -29
  485. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_dropdowns.scss +0 -213
  486. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_forms.scss +0 -436
  487. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_glyphicons.scss +0 -233
  488. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_grid.scss +0 -84
  489. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_input-groups.scss +0 -162
  490. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_jumbotron.scss +0 -44
  491. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_labels.scss +0 -64
  492. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_list-group.scss +0 -110
  493. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_media.scss +0 -56
  494. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_mixins.scss +0 -947
  495. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_modals.scss +0 -139
  496. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_navbar.scss +0 -620
  497. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_navs.scss +0 -242
  498. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_normalize.scss +0 -423
  499. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_pager.scss +0 -55
  500. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_pagination.scss +0 -88
  501. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_panels.scss +0 -241
  502. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_popovers.scss +0 -133
  503. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_print.scss +0 -101
  504. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_progress-bars.scss +0 -80
  505. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_responsive-utilities.scss +0 -74
  506. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_scaffolding.scss +0 -134
  507. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_tables.scss +0 -233
  508. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_theme.scss +0 -247
  509. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_thumbnails.scss +0 -38
  510. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_tooltip.scss +0 -95
  511. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_type.scss +0 -284
  512. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_utilities.scss +0 -56
  513. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_variables.scss +0 -833
  514. data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_wells.scss +0 -29
  515. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/_bourbon-deprecated-upcoming.scss +0 -13
  516. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/_bourbon.scss +0 -59
  517. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_button.scss +0 -273
  518. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_clearfix.scss +0 -29
  519. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_font-family.scss +0 -5
  520. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_hide-text.scss +0 -5
  521. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_html5-input-types.scss +0 -56
  522. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_position.scss +0 -42
  523. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_prefixer.scss +0 -49
  524. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_retina-image.scss +0 -32
  525. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_size.scss +0 -44
  526. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_timing-functions.scss +0 -32
  527. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_triangle.scss +0 -45
  528. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_animation.scss +0 -52
  529. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_appearance.scss +0 -3
  530. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_backface-visibility.scss +0 -6
  531. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_background-image.scss +0 -48
  532. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_background.scss +0 -103
  533. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_border-image.scss +0 -55
  534. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_border-radius.scss +0 -22
  535. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_box-sizing.scss +0 -4
  536. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_columns.scss +0 -47
  537. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_flex-box.scss +0 -52
  538. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_font-face.scss +0 -23
  539. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_hidpi-media-query.scss +0 -10
  540. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_image-rendering.scss +0 -13
  541. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_inline-block.scss +0 -8
  542. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_keyframes.scss +0 -43
  543. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_linear-gradient.scss +0 -41
  544. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_perspective.scss +0 -8
  545. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_placeholder.scss +0 -29
  546. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_radial-gradient.scss +0 -44
  547. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_transform.scss +0 -15
  548. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_transition.scss +0 -34
  549. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_user-select.scss +0 -3
  550. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_compact.scss +0 -11
  551. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_flex-grid.scss +0 -39
  552. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_grid-width.scss +0 -13
  553. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_linear-gradient.scss +0 -13
  554. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_modular-scale.scss +0 -40
  555. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_px-to-em.scss +0 -8
  556. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_radial-gradient.scss +0 -23
  557. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_tint-shade.scss +0 -9
  558. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_transition-property-name.scss +0 -22
  559. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_deprecated-webkit-gradient.scss +0 -39
  560. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_gradient-positions-parser.scss +0 -13
  561. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_linear-positions-parser.scss +0 -61
  562. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_radial-arg-parser.scss +0 -69
  563. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_radial-positions-parser.scss +0 -18
  564. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_render-gradients.scss +0 -26
  565. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_shape-size-stripper.scss +0 -10
  566. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan.sass +0 -11
  567. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_grid.sass +0 -161
  568. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_mixins.sass +0 -63
  569. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_utilities.sass +0 -24
  570. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_variables.sass +0 -42
  571. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/_neat-helpers.scss +0 -8
  572. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/_neat.scss +0 -21
  573. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_new-breakpoint.scss +0 -16
  574. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_private.scss +0 -107
  575. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_px-to-em.scss +0 -3
  576. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_fill-parent.scss +0 -7
  577. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_grid.scss +0 -5
  578. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_media.scss +0 -51
  579. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_omega.scss +0 -79
  580. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_outer-container.scss +0 -8
  581. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_pad.scss +0 -8
  582. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_private.scss +0 -50
  583. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_reset.scss +0 -12
  584. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_row.scss +0 -17
  585. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_shift.scss +0 -9
  586. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_span-columns.scss +0 -38
  587. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_to-deprecate.scss +0 -57
  588. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_visual-grid.scss +0 -41
  589. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/settings/_grid.scss +0 -7
  590. data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/settings/_visual-grid.scss +0 -5
  591. data/lib/wp/wp-content/themes/stump/base.php +0 -36
  592. data/lib/wp/wp-content/themes/stump/functions.php +0 -19
  593. data/lib/wp/wp-content/themes/stump/index.php +0 -21
  594. data/lib/wp/wp-content/themes/stump/lang/ar.mo +0 -0
  595. data/lib/wp/wp-content/themes/stump/lang/ar.po +0 -270
  596. data/lib/wp/wp-content/themes/stump/lang/bg_BG.mo +0 -0
  597. data/lib/wp/wp-content/themes/stump/lang/bg_BG.po +0 -338
  598. data/lib/wp/wp-content/themes/stump/lang/ca.mo +0 -0
  599. data/lib/wp/wp-content/themes/stump/lang/ca.po +0 -517
  600. data/lib/wp/wp-content/themes/stump/lang/da_DK.mo +0 -0
  601. data/lib/wp/wp-content/themes/stump/lang/da_DK.po +0 -305
  602. data/lib/wp/wp-content/themes/stump/lang/de_DE.mo +0 -0
  603. data/lib/wp/wp-content/themes/stump/lang/de_DE.po +0 -271
  604. data/lib/wp/wp-content/themes/stump/lang/el.mo +0 -0
  605. data/lib/wp/wp-content/themes/stump/lang/el.po +0 -319
  606. data/lib/wp/wp-content/themes/stump/lang/es_ES.mo +0 -0
  607. data/lib/wp/wp-content/themes/stump/lang/es_ES.po +0 -270
  608. data/lib/wp/wp-content/themes/stump/lang/et.mo +0 -0
  609. data/lib/wp/wp-content/themes/stump/lang/et.po +0 -262
  610. data/lib/wp/wp-content/themes/stump/lang/fa_IR.mo +0 -0
  611. data/lib/wp/wp-content/themes/stump/lang/fa_IR.po +0 -273
  612. data/lib/wp/wp-content/themes/stump/lang/fi_FI.mo +0 -0
  613. data/lib/wp/wp-content/themes/stump/lang/fi_FI.po +0 -367
  614. data/lib/wp/wp-content/themes/stump/lang/fr_FR.mo +0 -0
  615. data/lib/wp/wp-content/themes/stump/lang/fr_FR.po +0 -336
  616. data/lib/wp/wp-content/themes/stump/lang/he_IL.mo +0 -0
  617. data/lib/wp/wp-content/themes/stump/lang/he_IL.po +0 -336
  618. data/lib/wp/wp-content/themes/stump/lang/hu_HU.mo +0 -0
  619. data/lib/wp/wp-content/themes/stump/lang/hu_HU.po +0 -271
  620. data/lib/wp/wp-content/themes/stump/lang/id_ID.mo +0 -0
  621. data/lib/wp/wp-content/themes/stump/lang/id_ID.po +0 -278
  622. data/lib/wp/wp-content/themes/stump/lang/it_IT.mo +0 -0
  623. data/lib/wp/wp-content/themes/stump/lang/it_IT.po +0 -269
  624. data/lib/wp/wp-content/themes/stump/lang/ja.mo +0 -0
  625. data/lib/wp/wp-content/themes/stump/lang/ja.po +0 -267
  626. data/lib/wp/wp-content/themes/stump/lang/ko_KR.mo +0 -0
  627. data/lib/wp/wp-content/themes/stump/lang/ko_KR.po +0 -282
  628. data/lib/wp/wp-content/themes/stump/lang/mk_MK.mo +0 -0
  629. data/lib/wp/wp-content/themes/stump/lang/mk_MK.po +0 -297
  630. data/lib/wp/wp-content/themes/stump/lang/ms_MY.mo +0 -0
  631. data/lib/wp/wp-content/themes/stump/lang/ms_MY.po +0 -342
  632. data/lib/wp/wp-content/themes/stump/lang/nb_NO.mo +0 -0
  633. data/lib/wp/wp-content/themes/stump/lang/nb_NO.po +0 -517
  634. data/lib/wp/wp-content/themes/stump/lang/nl_NL.mo +0 -0
  635. data/lib/wp/wp-content/themes/stump/lang/nl_NL.po +0 -261
  636. data/lib/wp/wp-content/themes/stump/lang/nn_NO.mo +0 -0
  637. data/lib/wp/wp-content/themes/stump/lang/nn_NO.po +0 -517
  638. data/lib/wp/wp-content/themes/stump/lang/pl_PL.mo +0 -0
  639. data/lib/wp/wp-content/themes/stump/lang/pl_PL.po +0 -283
  640. data/lib/wp/wp-content/themes/stump/lang/pt_BR.mo +0 -0
  641. data/lib/wp/wp-content/themes/stump/lang/pt_BR.po +0 -394
  642. data/lib/wp/wp-content/themes/stump/lang/ro_RO.mo +0 -0
  643. data/lib/wp/wp-content/themes/stump/lang/ro_RO.po +0 -271
  644. data/lib/wp/wp-content/themes/stump/lang/roots.pot +0 -244
  645. data/lib/wp/wp-content/themes/stump/lang/ru_RU.mo +0 -0
  646. data/lib/wp/wp-content/themes/stump/lang/ru_RU.po +0 -255
  647. data/lib/wp/wp-content/themes/stump/lang/sk_SK.mo +0 -0
  648. data/lib/wp/wp-content/themes/stump/lang/sk_SK.po +0 -267
  649. data/lib/wp/wp-content/themes/stump/lang/sr_RS.mo +0 -0
  650. data/lib/wp/wp-content/themes/stump/lang/sr_RS.pot +0 -261
  651. data/lib/wp/wp-content/themes/stump/lang/sv_SE.mo +0 -0
  652. data/lib/wp/wp-content/themes/stump/lang/sv_SE.po +0 -323
  653. data/lib/wp/wp-content/themes/stump/lang/tr_TR.mo +0 -0
  654. data/lib/wp/wp-content/themes/stump/lang/tr_TR.po +0 -405
  655. data/lib/wp/wp-content/themes/stump/lang/vi_VN.mo +0 -0
  656. data/lib/wp/wp-content/themes/stump/lang/vi_VN.po +0 -516
  657. data/lib/wp/wp-content/themes/stump/lang/zh_CN.mo +0 -0
  658. data/lib/wp/wp-content/themes/stump/lang/zh_CN.po +0 -329
  659. data/lib/wp/wp-content/themes/stump/lang/zh_TW.mo +0 -0
  660. data/lib/wp/wp-content/themes/stump/lang/zh_TW.po +0 -261
  661. data/lib/wp/wp-content/themes/stump/lib/activation.php +0 -215
  662. data/lib/wp/wp-content/themes/stump/lib/cleanup.php +0 -261
  663. data/lib/wp/wp-content/themes/stump/lib/comments.php +0 -52
  664. data/lib/wp/wp-content/themes/stump/lib/config.php +0 -79
  665. data/lib/wp/wp-content/themes/stump/lib/custom.php +0 -4
  666. data/lib/wp/wp-content/themes/stump/lib/gallery.php +0 -130
  667. data/lib/wp/wp-content/themes/stump/lib/init.php +0 -25
  668. data/lib/wp/wp-content/themes/stump/lib/nav.php +0 -93
  669. data/lib/wp/wp-content/themes/stump/lib/relative-urls.php +0 -50
  670. data/lib/wp/wp-content/themes/stump/lib/scripts.php +0 -67
  671. data/lib/wp/wp-content/themes/stump/lib/sidebar.php +0 -43
  672. data/lib/wp/wp-content/themes/stump/lib/titles.php +0 -37
  673. data/lib/wp/wp-content/themes/stump/lib/utils.php +0 -14
  674. data/lib/wp/wp-content/themes/stump/lib/widgets.php +0 -133
  675. data/lib/wp/wp-content/themes/stump/lib/wrapper.php +0 -49
  676. data/lib/wp/wp-content/themes/stump/package.json +0 -32
  677. data/lib/wp/wp-content/themes/stump/page.php +0 -2
  678. data/lib/wp/wp-content/themes/stump/screenshot.png +0 -0
  679. data/lib/wp/wp-content/themes/stump/single.php +0 -1
  680. data/lib/wp/wp-content/themes/stump/style.css +0 -11
  681. data/lib/wp/wp-content/themes/stump/template-custom.php +0 -8
  682. data/lib/wp/wp-content/themes/stump/templates/comment.php +0 -14
  683. data/lib/wp/wp-content/themes/stump/templates/comments.php +0 -80
  684. data/lib/wp/wp-content/themes/stump/templates/content-page.php +0 -4
  685. data/lib/wp/wp-content/themes/stump/templates/content-single.php +0 -15
  686. data/lib/wp/wp-content/themes/stump/templates/content.php +0 -9
  687. data/lib/wp/wp-content/themes/stump/templates/entry-meta.php +0 -2
  688. data/lib/wp/wp-content/themes/stump/templates/footer.php +0 -8
  689. data/lib/wp/wp-content/themes/stump/templates/head.php +0 -12
  690. data/lib/wp/wp-content/themes/stump/templates/header-top-navbar.php +0 -21
  691. data/lib/wp/wp-content/themes/stump/templates/header.php +0 -14
  692. data/lib/wp/wp-content/themes/stump/templates/page-header.php +0 -5
  693. data/lib/wp/wp-content/themes/stump/templates/searchform.php +0 -9
  694. data/lib/wp/wp-content/themes/stump/templates/sidebar.php +0 -1
  695. data/lib/wp/wp-cron.php +0 -115
  696. data/lib/wp/wp-includes/ID3/getid3.lib.php +0 -1376
  697. data/lib/wp/wp-includes/ID3/getid3.php +0 -1796
  698. data/lib/wp/wp-includes/ID3/license.commercial.txt +0 -27
  699. data/lib/wp/wp-includes/ID3/license.txt +0 -29
  700. data/lib/wp/wp-includes/ID3/module.audio-video.asf.php +0 -2013
  701. data/lib/wp/wp-includes/ID3/module.audio-video.flv.php +0 -745
  702. data/lib/wp/wp-includes/ID3/module.audio-video.matroska.php +0 -1751
  703. data/lib/wp/wp-includes/ID3/module.audio-video.quicktime.php +0 -2246
  704. data/lib/wp/wp-includes/ID3/module.audio-video.riff.php +0 -2586
  705. data/lib/wp/wp-includes/ID3/module.audio.ac3.php +0 -474
  706. data/lib/wp/wp-includes/ID3/module.audio.dts.php +0 -291
  707. data/lib/wp/wp-includes/ID3/module.audio.flac.php +0 -443
  708. data/lib/wp/wp-includes/ID3/module.audio.mp3.php +0 -2012
  709. data/lib/wp/wp-includes/ID3/module.audio.ogg.php +0 -756
  710. data/lib/wp/wp-includes/ID3/module.tag.apetag.php +0 -371
  711. data/lib/wp/wp-includes/ID3/module.tag.id3v1.php +0 -360
  712. data/lib/wp/wp-includes/ID3/module.tag.id3v2.php +0 -3424
  713. data/lib/wp/wp-includes/ID3/module.tag.lyrics3.php +0 -294
  714. data/lib/wp/wp-includes/ID3/readme.txt +0 -604
  715. data/lib/wp/wp-includes/SimplePie/Author.php +0 -157
  716. data/lib/wp/wp-includes/SimplePie/Cache.php +0 -133
  717. data/lib/wp/wp-includes/SimplePie/Cache/Base.php +0 -114
  718. data/lib/wp/wp-includes/SimplePie/Cache/DB.php +0 -137
  719. data/lib/wp/wp-includes/SimplePie/Cache/File.php +0 -173
  720. data/lib/wp/wp-includes/SimplePie/Cache/Memcache.php +0 -183
  721. data/lib/wp/wp-includes/SimplePie/Cache/MySQL.php +0 -438
  722. data/lib/wp/wp-includes/SimplePie/Caption.php +0 -210
  723. data/lib/wp/wp-includes/SimplePie/Category.php +0 -157
  724. data/lib/wp/wp-includes/SimplePie/Content/Type/Sniffer.php +0 -332
  725. data/lib/wp/wp-includes/SimplePie/Copyright.php +0 -130
  726. data/lib/wp/wp-includes/SimplePie/Core.php +0 -57
  727. data/lib/wp/wp-includes/SimplePie/Credit.php +0 -156
  728. data/lib/wp/wp-includes/SimplePie/Decode/HTML/Entities.php +0 -617
  729. data/lib/wp/wp-includes/SimplePie/Enclosure.php +0 -1380
  730. data/lib/wp/wp-includes/SimplePie/Exception.php +0 -52
  731. data/lib/wp/wp-includes/SimplePie/File.php +0 -292
  732. data/lib/wp/wp-includes/SimplePie/HTTP/Parser.php +0 -500
  733. data/lib/wp/wp-includes/SimplePie/IRI.php +0 -1238
  734. data/lib/wp/wp-includes/SimplePie/Item.php +0 -2964
  735. data/lib/wp/wp-includes/SimplePie/Locator.php +0 -372
  736. data/lib/wp/wp-includes/SimplePie/Misc.php +0 -2247
  737. data/lib/wp/wp-includes/SimplePie/Net/IPv6.php +0 -276
  738. data/lib/wp/wp-includes/SimplePie/Parse/Date.php +0 -983
  739. data/lib/wp/wp-includes/SimplePie/Parser.php +0 -407
  740. data/lib/wp/wp-includes/SimplePie/Rating.php +0 -129
  741. data/lib/wp/wp-includes/SimplePie/Registry.php +0 -225
  742. data/lib/wp/wp-includes/SimplePie/Restriction.php +0 -155
  743. data/lib/wp/wp-includes/SimplePie/Sanitize.php +0 -554
  744. data/lib/wp/wp-includes/SimplePie/Source.php +0 -611
  745. data/lib/wp/wp-includes/SimplePie/XML/Declaration/Parser.php +0 -362
  746. data/lib/wp/wp-includes/SimplePie/gzdecode.php +0 -371
  747. data/lib/wp/wp-includes/Text/Diff.php +0 -450
  748. data/lib/wp/wp-includes/Text/Diff/Engine/native.php +0 -436
  749. data/lib/wp/wp-includes/Text/Diff/Engine/shell.php +0 -162
  750. data/lib/wp/wp-includes/Text/Diff/Engine/string.php +0 -248
  751. data/lib/wp/wp-includes/Text/Diff/Engine/xdiff.php +0 -64
  752. data/lib/wp/wp-includes/Text/Diff/Renderer.php +0 -235
  753. data/lib/wp/wp-includes/Text/Diff/Renderer/inline.php +0 -206
  754. data/lib/wp/wp-includes/admin-bar.php +0 -870
  755. data/lib/wp/wp-includes/atomlib.php +0 -352
  756. data/lib/wp/wp-includes/author-template.php +0 -471
  757. data/lib/wp/wp-includes/bookmark-template.php +0 -298
  758. data/lib/wp/wp-includes/bookmark.php +0 -416
  759. data/lib/wp/wp-includes/cache.php +0 -704
  760. data/lib/wp/wp-includes/canonical.php +0 -586
  761. data/lib/wp/wp-includes/capabilities.php +0 -1539
  762. data/lib/wp/wp-includes/category-template.php +0 -1407
  763. data/lib/wp/wp-includes/category.php +0 -343
  764. data/lib/wp/wp-includes/certificates/ca-bundle.crt +0 -3785
  765. data/lib/wp/wp-includes/class-IXR.php +0 -1100
  766. data/lib/wp/wp-includes/class-feed.php +0 -140
  767. data/lib/wp/wp-includes/class-http.php +0 -2245
  768. data/lib/wp/wp-includes/class-json.php +0 -936
  769. data/lib/wp/wp-includes/class-oembed.php +0 -579
  770. data/lib/wp/wp-includes/class-phpass.php +0 -260
  771. data/lib/wp/wp-includes/class-phpmailer.php +0 -3265
  772. data/lib/wp/wp-includes/class-pop3.php +0 -652
  773. data/lib/wp/wp-includes/class-simplepie.php +0 -3119
  774. data/lib/wp/wp-includes/class-smtp.php +0 -943
  775. data/lib/wp/wp-includes/class-snoopy.php +0 -1256
  776. data/lib/wp/wp-includes/class-wp-admin-bar.php +0 -517
  777. data/lib/wp/wp-includes/class-wp-ajax-response.php +0 -199
  778. data/lib/wp/wp-includes/class-wp-customize-control.php +0 -1124
  779. data/lib/wp/wp-includes/class-wp-customize-manager.php +0 -1272
  780. data/lib/wp/wp-includes/class-wp-customize-panel.php +0 -200
  781. data/lib/wp/wp-includes/class-wp-customize-section.php +0 -196
  782. data/lib/wp/wp-includes/class-wp-customize-setting.php +0 -554
  783. data/lib/wp/wp-includes/class-wp-customize-widgets.php +0 -1556
  784. data/lib/wp/wp-includes/class-wp-editor.php +0 -1435
  785. data/lib/wp/wp-includes/class-wp-embed.php +0 -373
  786. data/lib/wp/wp-includes/class-wp-error.php +0 -276
  787. data/lib/wp/wp-includes/class-wp-http-ixr-client.php +0 -97
  788. data/lib/wp/wp-includes/class-wp-image-editor-gd.php +0 -459
  789. data/lib/wp/wp-includes/class-wp-image-editor-imagick.php +0 -512
  790. data/lib/wp/wp-includes/class-wp-image-editor.php +0 -475
  791. data/lib/wp/wp-includes/class-wp-theme.php +0 -1235
  792. data/lib/wp/wp-includes/class-wp-walker.php +0 -471
  793. data/lib/wp/wp-includes/class-wp-xmlrpc-server.php +0 -5984
  794. data/lib/wp/wp-includes/class-wp.php +0 -782
  795. data/lib/wp/wp-includes/class.wp-dependencies.php +0 -509
  796. data/lib/wp/wp-includes/class.wp-scripts.php +0 -247
  797. data/lib/wp/wp-includes/class.wp-styles.php +0 -210
  798. data/lib/wp/wp-includes/comment-template.php +0 -2286
  799. data/lib/wp/wp-includes/comment.php +0 -2606
  800. data/lib/wp/wp-includes/compat.php +0 -125
  801. data/lib/wp/wp-includes/cron.php +0 -469
  802. data/lib/wp/wp-includes/css/admin-bar-rtl.css +0 -1099
  803. data/lib/wp/wp-includes/css/admin-bar-rtl.min.css +0 -1
  804. data/lib/wp/wp-includes/css/admin-bar.css +0 -1099
  805. data/lib/wp/wp-includes/css/admin-bar.min.css +0 -1
  806. data/lib/wp/wp-includes/css/buttons-rtl.css +0 -364
  807. data/lib/wp/wp-includes/css/buttons-rtl.min.css +0 -1
  808. data/lib/wp/wp-includes/css/buttons.css +0 -364
  809. data/lib/wp/wp-includes/css/buttons.min.css +0 -1
  810. data/lib/wp/wp-includes/css/dashicons.css +0 -893
  811. data/lib/wp/wp-includes/css/dashicons.min.css +0 -1
  812. data/lib/wp/wp-includes/css/editor-rtl.css +0 -1993
  813. data/lib/wp/wp-includes/css/editor-rtl.min.css +0 -1
  814. data/lib/wp/wp-includes/css/editor.css +0 -1993
  815. data/lib/wp/wp-includes/css/editor.min.css +0 -1
  816. data/lib/wp/wp-includes/css/jquery-ui-dialog-rtl.css +0 -343
  817. data/lib/wp/wp-includes/css/jquery-ui-dialog-rtl.min.css +0 -19
  818. data/lib/wp/wp-includes/css/jquery-ui-dialog.css +0 -343
  819. data/lib/wp/wp-includes/css/jquery-ui-dialog.min.css +0 -19
  820. data/lib/wp/wp-includes/css/media-views-rtl.css +0 -2568
  821. data/lib/wp/wp-includes/css/media-views-rtl.min.css +0 -1
  822. data/lib/wp/wp-includes/css/media-views.css +0 -2568
  823. data/lib/wp/wp-includes/css/media-views.min.css +0 -1
  824. data/lib/wp/wp-includes/css/wp-auth-check-rtl.css +0 -100
  825. data/lib/wp/wp-includes/css/wp-auth-check-rtl.min.css +0 -1
  826. data/lib/wp/wp-includes/css/wp-auth-check.css +0 -100
  827. data/lib/wp/wp-includes/css/wp-auth-check.min.css +0 -1
  828. data/lib/wp/wp-includes/css/wp-pointer-rtl.css +0 -212
  829. data/lib/wp/wp-includes/css/wp-pointer-rtl.min.css +0 -1
  830. data/lib/wp/wp-includes/css/wp-pointer.css +0 -212
  831. data/lib/wp/wp-includes/css/wp-pointer.min.css +0 -1
  832. data/lib/wp/wp-includes/date.php +0 -475
  833. data/lib/wp/wp-includes/default-constants.php +0 -323
  834. data/lib/wp/wp-includes/default-filters.php +0 -307
  835. data/lib/wp/wp-includes/default-widgets.php +0 -1423
  836. data/lib/wp/wp-includes/deprecated.php +0 -3501
  837. data/lib/wp/wp-includes/feed-atom-comments.php +0 -115
  838. data/lib/wp/wp-includes/feed-atom.php +0 -87
  839. data/lib/wp/wp-includes/feed-rdf.php +0 -81
  840. data/lib/wp/wp-includes/feed-rss.php +0 -46
  841. data/lib/wp/wp-includes/feed-rss2-comments.php +0 -97
  842. data/lib/wp/wp-includes/feed-rss2.php +0 -115
  843. data/lib/wp/wp-includes/feed.php +0 -659
  844. data/lib/wp/wp-includes/fonts/dashicons.eot +0 -0
  845. data/lib/wp/wp-includes/fonts/dashicons.svg +0 -250
  846. data/lib/wp/wp-includes/fonts/dashicons.ttf +0 -0
  847. data/lib/wp/wp-includes/fonts/dashicons.woff +0 -0
  848. data/lib/wp/wp-includes/formatting.php +0 -4006
  849. data/lib/wp/wp-includes/functions.php +0 -4631
  850. data/lib/wp/wp-includes/functions.wp-scripts.php +0 -258
  851. data/lib/wp/wp-includes/functions.wp-styles.php +0 -245
  852. data/lib/wp/wp-includes/general-template.php +0 -2982
  853. data/lib/wp/wp-includes/http.php +0 -551
  854. data/lib/wp/wp-includes/images/admin-bar-sprite-2x.png +0 -0
  855. data/lib/wp/wp-includes/images/admin-bar-sprite.png +0 -0
  856. data/lib/wp/wp-includes/images/arrow-pointer-blue-2x.png +0 -0
  857. data/lib/wp/wp-includes/images/arrow-pointer-blue.png +0 -0
  858. data/lib/wp/wp-includes/images/blank.gif +0 -0
  859. data/lib/wp/wp-includes/images/crystal/archive.png +0 -0
  860. data/lib/wp/wp-includes/images/crystal/audio.png +0 -0
  861. data/lib/wp/wp-includes/images/crystal/code.png +0 -0
  862. data/lib/wp/wp-includes/images/crystal/default.png +0 -0
  863. data/lib/wp/wp-includes/images/crystal/document.png +0 -0
  864. data/lib/wp/wp-includes/images/crystal/interactive.png +0 -0
  865. data/lib/wp/wp-includes/images/crystal/license.txt +0 -9
  866. data/lib/wp/wp-includes/images/crystal/spreadsheet.png +0 -0
  867. data/lib/wp/wp-includes/images/crystal/text.png +0 -0
  868. data/lib/wp/wp-includes/images/crystal/video.png +0 -0
  869. data/lib/wp/wp-includes/images/down_arrow-2x.gif +0 -0
  870. data/lib/wp/wp-includes/images/down_arrow.gif +0 -0
  871. data/lib/wp/wp-includes/images/icon-pointer-flag-2x.png +0 -0
  872. data/lib/wp/wp-includes/images/icon-pointer-flag.png +0 -0
  873. data/lib/wp/wp-includes/images/media/archive.png +0 -0
  874. data/lib/wp/wp-includes/images/media/audio.png +0 -0
  875. data/lib/wp/wp-includes/images/media/code.png +0 -0
  876. data/lib/wp/wp-includes/images/media/default.png +0 -0
  877. data/lib/wp/wp-includes/images/media/document.png +0 -0
  878. data/lib/wp/wp-includes/images/media/interactive.png +0 -0
  879. data/lib/wp/wp-includes/images/media/spreadsheet.png +0 -0
  880. data/lib/wp/wp-includes/images/media/text.png +0 -0
  881. data/lib/wp/wp-includes/images/media/video.png +0 -0
  882. data/lib/wp/wp-includes/images/rss-2x.png +0 -0
  883. data/lib/wp/wp-includes/images/rss.png +0 -0
  884. data/lib/wp/wp-includes/images/smilies/icon_arrow.gif +0 -0
  885. data/lib/wp/wp-includes/images/smilies/icon_biggrin.gif +0 -0
  886. data/lib/wp/wp-includes/images/smilies/icon_confused.gif +0 -0
  887. data/lib/wp/wp-includes/images/smilies/icon_cool.gif +0 -0
  888. data/lib/wp/wp-includes/images/smilies/icon_cry.gif +0 -0
  889. data/lib/wp/wp-includes/images/smilies/icon_eek.gif +0 -0
  890. data/lib/wp/wp-includes/images/smilies/icon_evil.gif +0 -0
  891. data/lib/wp/wp-includes/images/smilies/icon_exclaim.gif +0 -0
  892. data/lib/wp/wp-includes/images/smilies/icon_idea.gif +0 -0
  893. data/lib/wp/wp-includes/images/smilies/icon_lol.gif +0 -0
  894. data/lib/wp/wp-includes/images/smilies/icon_mad.gif +0 -0
  895. data/lib/wp/wp-includes/images/smilies/icon_mrgreen.gif +0 -0
  896. data/lib/wp/wp-includes/images/smilies/icon_neutral.gif +0 -0
  897. data/lib/wp/wp-includes/images/smilies/icon_question.gif +0 -0
  898. data/lib/wp/wp-includes/images/smilies/icon_razz.gif +0 -0
  899. data/lib/wp/wp-includes/images/smilies/icon_redface.gif +0 -0
  900. data/lib/wp/wp-includes/images/smilies/icon_rolleyes.gif +0 -0
  901. data/lib/wp/wp-includes/images/smilies/icon_sad.gif +0 -0
  902. data/lib/wp/wp-includes/images/smilies/icon_smile.gif +0 -0
  903. data/lib/wp/wp-includes/images/smilies/icon_surprised.gif +0 -0
  904. data/lib/wp/wp-includes/images/smilies/icon_twisted.gif +0 -0
  905. data/lib/wp/wp-includes/images/smilies/icon_wink.gif +0 -0
  906. data/lib/wp/wp-includes/images/spinner-2x.gif +0 -0
  907. data/lib/wp/wp-includes/images/spinner.gif +0 -0
  908. data/lib/wp/wp-includes/images/toggle-arrow-2x.png +0 -0
  909. data/lib/wp/wp-includes/images/toggle-arrow.png +0 -0
  910. data/lib/wp/wp-includes/images/uploader-icons-2x.png +0 -0
  911. data/lib/wp/wp-includes/images/uploader-icons.png +0 -0
  912. data/lib/wp/wp-includes/images/wlw/wp-comments.png +0 -0
  913. data/lib/wp/wp-includes/images/wlw/wp-icon.png +0 -0
  914. data/lib/wp/wp-includes/images/wlw/wp-watermark.png +0 -0
  915. data/lib/wp/wp-includes/images/wpicons-2x.png +0 -0
  916. data/lib/wp/wp-includes/images/wpicons.png +0 -0
  917. data/lib/wp/wp-includes/images/wpspin-2x.gif +0 -0
  918. data/lib/wp/wp-includes/images/wpspin.gif +0 -0
  919. data/lib/wp/wp-includes/images/xit-2x.gif +0 -0
  920. data/lib/wp/wp-includes/images/xit.gif +0 -0
  921. data/lib/wp/wp-includes/js/admin-bar.js +0 -365
  922. data/lib/wp/wp-includes/js/admin-bar.min.js +0 -1
  923. data/lib/wp/wp-includes/js/autosave.js +0 -589
  924. data/lib/wp/wp-includes/js/autosave.min.js +0 -1
  925. data/lib/wp/wp-includes/js/backbone.min.js +0 -1
  926. data/lib/wp/wp-includes/js/colorpicker.js +0 -707
  927. data/lib/wp/wp-includes/js/colorpicker.min.js +0 -1
  928. data/lib/wp/wp-includes/js/comment-reply.js +0 -47
  929. data/lib/wp/wp-includes/js/comment-reply.min.js +0 -1
  930. data/lib/wp/wp-includes/js/crop/cropper.css +0 -165
  931. data/lib/wp/wp-includes/js/crop/cropper.js +0 -516
  932. data/lib/wp/wp-includes/js/crop/marqueeHoriz.gif +0 -0
  933. data/lib/wp/wp-includes/js/crop/marqueeVert.gif +0 -0
  934. data/lib/wp/wp-includes/js/customize-base.js +0 -617
  935. data/lib/wp/wp-includes/js/customize-base.min.js +0 -1
  936. data/lib/wp/wp-includes/js/customize-loader.js +0 -246
  937. data/lib/wp/wp-includes/js/customize-loader.min.js +0 -1
  938. data/lib/wp/wp-includes/js/customize-models.js +0 -247
  939. data/lib/wp/wp-includes/js/customize-models.min.js +0 -1
  940. data/lib/wp/wp-includes/js/customize-preview-widgets.js +0 -129
  941. data/lib/wp/wp-includes/js/customize-preview-widgets.min.js +0 -1
  942. data/lib/wp/wp-includes/js/customize-preview.js +0 -154
  943. data/lib/wp/wp-includes/js/customize-preview.min.js +0 -1
  944. data/lib/wp/wp-includes/js/customize-views.js +0 -231
  945. data/lib/wp/wp-includes/js/customize-views.min.js +0 -1
  946. data/lib/wp/wp-includes/js/heartbeat.js +0 -738
  947. data/lib/wp/wp-includes/js/heartbeat.min.js +0 -1
  948. data/lib/wp/wp-includes/js/hoverIntent.js +0 -115
  949. data/lib/wp/wp-includes/js/hoverIntent.min.js +0 -1
  950. data/lib/wp/wp-includes/js/imgareaselect/border-anim-h.gif +0 -0
  951. data/lib/wp/wp-includes/js/imgareaselect/border-anim-v.gif +0 -0
  952. data/lib/wp/wp-includes/js/imgareaselect/imgareaselect.css +0 -41
  953. data/lib/wp/wp-includes/js/imgareaselect/jquery.imgareaselect.js +0 -1205
  954. data/lib/wp/wp-includes/js/imgareaselect/jquery.imgareaselect.min.js +0 -1
  955. data/lib/wp/wp-includes/js/jcrop/Jcrop.gif +0 -0
  956. data/lib/wp/wp-includes/js/jcrop/jquery.Jcrop.min.css +0 -29
  957. data/lib/wp/wp-includes/js/jcrop/jquery.Jcrop.min.js +0 -22
  958. data/lib/wp/wp-includes/js/jquery/jquery-migrate.js +0 -521
  959. data/lib/wp/wp-includes/js/jquery/jquery-migrate.min.js +0 -2
  960. data/lib/wp/wp-includes/js/jquery/jquery.color.min.js +0 -2
  961. data/lib/wp/wp-includes/js/jquery/jquery.form.js +0 -1193
  962. data/lib/wp/wp-includes/js/jquery/jquery.form.min.js +0 -11
  963. data/lib/wp/wp-includes/js/jquery/jquery.hotkeys.js +0 -134
  964. data/lib/wp/wp-includes/js/jquery/jquery.hotkeys.min.js +0 -1
  965. data/lib/wp/wp-includes/js/jquery/jquery.js +0 -5
  966. data/lib/wp/wp-includes/js/jquery/jquery.masonry.min.js +0 -11
  967. data/lib/wp/wp-includes/js/jquery/jquery.query.js +0 -11
  968. data/lib/wp/wp-includes/js/jquery/jquery.schedule.js +0 -36
  969. data/lib/wp/wp-includes/js/jquery/jquery.serialize-object.js +0 -31
  970. data/lib/wp/wp-includes/js/jquery/jquery.table-hotkeys.js +0 -99
  971. data/lib/wp/wp-includes/js/jquery/jquery.table-hotkeys.min.js +0 -1
  972. data/lib/wp/wp-includes/js/jquery/jquery.ui.touch-punch.js +0 -11
  973. data/lib/wp/wp-includes/js/jquery/suggest.js +0 -316
  974. data/lib/wp/wp-includes/js/jquery/suggest.min.js +0 -1
  975. data/lib/wp/wp-includes/js/jquery/ui/accordion.min.js +0 -11
  976. data/lib/wp/wp-includes/js/jquery/ui/autocomplete.min.js +0 -11
  977. data/lib/wp/wp-includes/js/jquery/ui/button.min.js +0 -11
  978. data/lib/wp/wp-includes/js/jquery/ui/core.min.js +0 -11
  979. data/lib/wp/wp-includes/js/jquery/ui/datepicker.min.js +0 -12
  980. data/lib/wp/wp-includes/js/jquery/ui/dialog.min.js +0 -11
  981. data/lib/wp/wp-includes/js/jquery/ui/draggable.min.js +0 -11
  982. data/lib/wp/wp-includes/js/jquery/ui/droppable.min.js +0 -11
  983. data/lib/wp/wp-includes/js/jquery/ui/effect-blind.min.js +0 -11
  984. data/lib/wp/wp-includes/js/jquery/ui/effect-bounce.min.js +0 -11
  985. data/lib/wp/wp-includes/js/jquery/ui/effect-clip.min.js +0 -11
  986. data/lib/wp/wp-includes/js/jquery/ui/effect-drop.min.js +0 -11
  987. data/lib/wp/wp-includes/js/jquery/ui/effect-explode.min.js +0 -11
  988. data/lib/wp/wp-includes/js/jquery/ui/effect-fade.min.js +0 -11
  989. data/lib/wp/wp-includes/js/jquery/ui/effect-fold.min.js +0 -11
  990. data/lib/wp/wp-includes/js/jquery/ui/effect-highlight.min.js +0 -11
  991. data/lib/wp/wp-includes/js/jquery/ui/effect-puff.min.js +0 -11
  992. data/lib/wp/wp-includes/js/jquery/ui/effect-pulsate.min.js +0 -11
  993. data/lib/wp/wp-includes/js/jquery/ui/effect-scale.min.js +0 -11
  994. data/lib/wp/wp-includes/js/jquery/ui/effect-shake.min.js +0 -11
  995. data/lib/wp/wp-includes/js/jquery/ui/effect-size.min.js +0 -11
  996. data/lib/wp/wp-includes/js/jquery/ui/effect-slide.min.js +0 -11
  997. data/lib/wp/wp-includes/js/jquery/ui/effect-transfer.min.js +0 -11
  998. data/lib/wp/wp-includes/js/jquery/ui/effect.min.js +0 -21
  999. data/lib/wp/wp-includes/js/jquery/ui/menu.min.js +0 -11
  1000. data/lib/wp/wp-includes/js/jquery/ui/mouse.min.js +0 -11
  1001. data/lib/wp/wp-includes/js/jquery/ui/position.min.js +0 -11
  1002. data/lib/wp/wp-includes/js/jquery/ui/progressbar.min.js +0 -11
  1003. data/lib/wp/wp-includes/js/jquery/ui/resizable.min.js +0 -11
  1004. data/lib/wp/wp-includes/js/jquery/ui/selectable.min.js +0 -11
  1005. data/lib/wp/wp-includes/js/jquery/ui/selectmenu.min.js +0 -11
  1006. data/lib/wp/wp-includes/js/jquery/ui/slider.min.js +0 -11
  1007. data/lib/wp/wp-includes/js/jquery/ui/sortable.min.js +0 -11
  1008. data/lib/wp/wp-includes/js/jquery/ui/spinner.min.js +0 -11
  1009. data/lib/wp/wp-includes/js/jquery/ui/tabs.min.js +0 -11
  1010. data/lib/wp/wp-includes/js/jquery/ui/tooltip.min.js +0 -11
  1011. data/lib/wp/wp-includes/js/jquery/ui/widget.min.js +0 -11
  1012. data/lib/wp/wp-includes/js/json2.js +0 -480
  1013. data/lib/wp/wp-includes/js/json2.min.js +0 -1
  1014. data/lib/wp/wp-includes/js/masonry.min.js +0 -1
  1015. data/lib/wp/wp-includes/js/mce-view.js +0 -829
  1016. data/lib/wp/wp-includes/js/mce-view.min.js +0 -1
  1017. data/lib/wp/wp-includes/js/media-audiovideo.js +0 -831
  1018. data/lib/wp/wp-includes/js/media-audiovideo.min.js +0 -1
  1019. data/lib/wp/wp-includes/js/media-editor.js +0 -1114
  1020. data/lib/wp/wp-includes/js/media-editor.min.js +0 -1
  1021. data/lib/wp/wp-includes/js/media-grid.js +0 -732
  1022. data/lib/wp/wp-includes/js/media-grid.min.js +0 -1
  1023. data/lib/wp/wp-includes/js/media-models.js +0 -1362
  1024. data/lib/wp/wp-includes/js/media-models.min.js +0 -1
  1025. data/lib/wp/wp-includes/js/media-views.js +0 -7484
  1026. data/lib/wp/wp-includes/js/media-views.min.js +0 -3
  1027. data/lib/wp/wp-includes/js/mediaelement/background.png +0 -0
  1028. data/lib/wp/wp-includes/js/mediaelement/bigplay.png +0 -0
  1029. data/lib/wp/wp-includes/js/mediaelement/bigplay.svg +0 -1
  1030. data/lib/wp/wp-includes/js/mediaelement/controls.png +0 -0
  1031. data/lib/wp/wp-includes/js/mediaelement/controls.svg +0 -1
  1032. data/lib/wp/wp-includes/js/mediaelement/flashmediaelement.swf +0 -0
  1033. data/lib/wp/wp-includes/js/mediaelement/loading.gif +0 -0
  1034. data/lib/wp/wp-includes/js/mediaelement/mediaelement-and-player.min.js +0 -181
  1035. data/lib/wp/wp-includes/js/mediaelement/mediaelementplayer.min.css +0 -1
  1036. data/lib/wp/wp-includes/js/mediaelement/silverlightmediaelement.xap +0 -0
  1037. data/lib/wp/wp-includes/js/mediaelement/wp-mediaelement.css +0 -274
  1038. data/lib/wp/wp-includes/js/mediaelement/wp-mediaelement.js +0 -34
  1039. data/lib/wp/wp-includes/js/mediaelement/wp-playlist.js +0 -175
  1040. data/lib/wp/wp-includes/js/plupload/handlers.js +0 -488
  1041. data/lib/wp/wp-includes/js/plupload/handlers.min.js +0 -1
  1042. data/lib/wp/wp-includes/js/plupload/license.txt +0 -339
  1043. data/lib/wp/wp-includes/js/plupload/plupload.flash.swf +0 -0
  1044. data/lib/wp/wp-includes/js/plupload/plupload.full.min.js +0 -28
  1045. data/lib/wp/wp-includes/js/plupload/plupload.silverlight.xap +0 -0
  1046. data/lib/wp/wp-includes/js/plupload/wp-plupload.js +0 -376
  1047. data/lib/wp/wp-includes/js/plupload/wp-plupload.min.js +0 -1
  1048. data/lib/wp/wp-includes/js/quicktags.js +0 -652
  1049. data/lib/wp/wp-includes/js/quicktags.min.js +0 -1
  1050. data/lib/wp/wp-includes/js/shortcode.js +0 -356
  1051. data/lib/wp/wp-includes/js/shortcode.min.js +0 -1
  1052. data/lib/wp/wp-includes/js/swfobject.js +0 -4
  1053. data/lib/wp/wp-includes/js/swfupload/handlers.js +0 -376
  1054. data/lib/wp/wp-includes/js/swfupload/handlers.min.js +0 -1
  1055. data/lib/wp/wp-includes/js/swfupload/license.txt +0 -32
  1056. data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.cookies.js +0 -53
  1057. data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.queue.js +0 -98
  1058. data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.speed.js +0 -342
  1059. data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.swfobject.js +0 -105
  1060. data/lib/wp/wp-includes/js/swfupload/swfupload.js +0 -980
  1061. data/lib/wp/wp-includes/js/swfupload/swfupload.swf +0 -0
  1062. data/lib/wp/wp-includes/js/thickbox/loadingAnimation.gif +0 -0
  1063. data/lib/wp/wp-includes/js/thickbox/macFFBgHack.png +0 -0
  1064. data/lib/wp/wp-includes/js/thickbox/thickbox.css +0 -138
  1065. data/lib/wp/wp-includes/js/thickbox/thickbox.js +0 -314
  1066. data/lib/wp/wp-includes/js/tinymce/langs/wp-langs-en.js +0 -519
  1067. data/lib/wp/wp-includes/js/tinymce/license.txt +0 -504
  1068. data/lib/wp/wp-includes/js/tinymce/plugins/charmap/plugin.js +0 -370
  1069. data/lib/wp/wp-includes/js/tinymce/plugins/charmap/plugin.min.js +0 -1
  1070. data/lib/wp/wp-includes/js/tinymce/plugins/colorpicker/plugin.js +0 -112
  1071. data/lib/wp/wp-includes/js/tinymce/plugins/colorpicker/plugin.min.js +0 -1
  1072. data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/css/dialog.css +0 -212
  1073. data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/plugin.js +0 -304
  1074. data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/plugin.min.js +0 -1
  1075. data/lib/wp/wp-includes/js/tinymce/plugins/directionality/plugin.js +0 -64
  1076. data/lib/wp/wp-includes/js/tinymce/plugins/directionality/plugin.min.js +0 -1
  1077. data/lib/wp/wp-includes/js/tinymce/plugins/fullscreen/plugin.js +0 -136
  1078. data/lib/wp/wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js +0 -1
  1079. data/lib/wp/wp-includes/js/tinymce/plugins/hr/plugin.js +0 -30
  1080. data/lib/wp/wp-includes/js/tinymce/plugins/hr/plugin.min.js +0 -1
  1081. data/lib/wp/wp-includes/js/tinymce/plugins/image/plugin.js +0 -450
  1082. data/lib/wp/wp-includes/js/tinymce/plugins/image/plugin.min.js +0 -1
  1083. data/lib/wp/wp-includes/js/tinymce/plugins/lists/plugin.js +0 -786
  1084. data/lib/wp/wp-includes/js/tinymce/plugins/lists/plugin.min.js +0 -1
  1085. data/lib/wp/wp-includes/js/tinymce/plugins/media/moxieplayer.swf +0 -0
  1086. data/lib/wp/wp-includes/js/tinymce/plugins/media/plugin.js +0 -774
  1087. data/lib/wp/wp-includes/js/tinymce/plugins/media/plugin.min.js +0 -1
  1088. data/lib/wp/wp-includes/js/tinymce/plugins/paste/plugin.js +0 -1553
  1089. data/lib/wp/wp-includes/js/tinymce/plugins/paste/plugin.min.js +0 -1
  1090. data/lib/wp/wp-includes/js/tinymce/plugins/tabfocus/plugin.js +0 -125
  1091. data/lib/wp/wp-includes/js/tinymce/plugins/tabfocus/plugin.min.js +0 -1
  1092. data/lib/wp/wp-includes/js/tinymce/plugins/textcolor/plugin.js +0 -272
  1093. data/lib/wp/wp-includes/js/tinymce/plugins/textcolor/plugin.min.js +0 -1
  1094. data/lib/wp/wp-includes/js/tinymce/plugins/wordpress/plugin.js +0 -513
  1095. data/lib/wp/wp-includes/js/tinymce/plugins/wordpress/plugin.min.js +0 -1
  1096. data/lib/wp/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js +0 -207
  1097. data/lib/wp/wp-includes/js/tinymce/plugins/wpautoresize/plugin.min.js +0 -1
  1098. data/lib/wp/wp-includes/js/tinymce/plugins/wpdialogs/plugin.js +0 -92
  1099. data/lib/wp/wp-includes/js/tinymce/plugins/wpdialogs/plugin.min.js +0 -1
  1100. data/lib/wp/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js +0 -1035
  1101. data/lib/wp/wp-includes/js/tinymce/plugins/wpeditimage/plugin.min.js +0 -1
  1102. data/lib/wp/wp-includes/js/tinymce/plugins/wpfullscreen/plugin.js +0 -78
  1103. data/lib/wp/wp-includes/js/tinymce/plugins/wpfullscreen/plugin.min.js +0 -1
  1104. data/lib/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.js +0 -130
  1105. data/lib/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.min.js +0 -1
  1106. data/lib/wp/wp-includes/js/tinymce/plugins/wplink/plugin.js +0 -63
  1107. data/lib/wp/wp-includes/js/tinymce/plugins/wplink/plugin.min.js +0 -1
  1108. data/lib/wp/wp-includes/js/tinymce/plugins/wpview/plugin.js +0 -694
  1109. data/lib/wp/wp-includes/js/tinymce/plugins/wpview/plugin.min.js +0 -1
  1110. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/content.inline.min.css +0 -1
  1111. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/content.min.css +0 -1
  1112. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/readme.md +0 -1
  1113. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
  1114. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.svg +0 -62
  1115. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
  1116. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
  1117. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
  1118. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.svg +0 -63
  1119. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
  1120. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
  1121. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/anchor.gif +0 -0
  1122. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/loader.gif +0 -0
  1123. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/object.gif +0 -0
  1124. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/trans.gif +0 -0
  1125. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/skin.ie7.min.css +0 -1
  1126. data/lib/wp/wp-includes/js/tinymce/skins/lightgray/skin.min.css +0 -1
  1127. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/audio.png +0 -0
  1128. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/dashicon-edit.png +0 -0
  1129. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png +0 -0
  1130. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/embedded.png +0 -0
  1131. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/gallery-2x.png +0 -0
  1132. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/gallery.png +0 -0
  1133. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/more-2x.png +0 -0
  1134. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/more.png +0 -0
  1135. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/pagebreak-2x.png +0 -0
  1136. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/pagebreak.png +0 -0
  1137. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/playlist-audio.png +0 -0
  1138. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/playlist-video.png +0 -0
  1139. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/video.png +0 -0
  1140. data/lib/wp/wp-includes/js/tinymce/skins/wordpress/wp-content.css +0 -618
  1141. data/lib/wp/wp-includes/js/tinymce/themes/modern/theme.js +0 -617
  1142. data/lib/wp/wp-includes/js/tinymce/themes/modern/theme.min.js +0 -1
  1143. data/lib/wp/wp-includes/js/tinymce/tiny_mce_popup.js +0 -539
  1144. data/lib/wp/wp-includes/js/tinymce/tinymce.min.js +0 -11
  1145. data/lib/wp/wp-includes/js/tinymce/utils/editable_selects.js +0 -70
  1146. data/lib/wp/wp-includes/js/tinymce/utils/form_utils.js +0 -210
  1147. data/lib/wp/wp-includes/js/tinymce/utils/mctabs.js +0 -164
  1148. data/lib/wp/wp-includes/js/tinymce/utils/validate.js +0 -252
  1149. data/lib/wp/wp-includes/js/tinymce/wp-mce-help.php +0 -145
  1150. data/lib/wp/wp-includes/js/tinymce/wp-tinymce.js.gz +0 -0
  1151. data/lib/wp/wp-includes/js/tinymce/wp-tinymce.php +0 -39
  1152. data/lib/wp/wp-includes/js/tw-sack.js +0 -193
  1153. data/lib/wp/wp-includes/js/tw-sack.min.js +0 -1
  1154. data/lib/wp/wp-includes/js/underscore.min.js +0 -1
  1155. data/lib/wp/wp-includes/js/utils.js +0 -197
  1156. data/lib/wp/wp-includes/js/utils.min.js +0 -1
  1157. data/lib/wp/wp-includes/js/wp-ajax-response.js +0 -64
  1158. data/lib/wp/wp-includes/js/wp-ajax-response.min.js +0 -1
  1159. data/lib/wp/wp-includes/js/wp-auth-check.js +0 -112
  1160. data/lib/wp/wp-includes/js/wp-auth-check.min.js +0 -1
  1161. data/lib/wp/wp-includes/js/wp-backbone.js +0 -386
  1162. data/lib/wp/wp-includes/js/wp-backbone.min.js +0 -1
  1163. data/lib/wp/wp-includes/js/wp-list-revisions.js +0 -24
  1164. data/lib/wp/wp-includes/js/wp-list-revisions.min.js +0 -1
  1165. data/lib/wp/wp-includes/js/wp-lists.js +0 -469
  1166. data/lib/wp/wp-includes/js/wp-lists.min.js +0 -1
  1167. data/lib/wp/wp-includes/js/wp-pointer.js +0 -282
  1168. data/lib/wp/wp-includes/js/wp-pointer.min.js +0 -1
  1169. data/lib/wp/wp-includes/js/wp-util.js +0 -106
  1170. data/lib/wp/wp-includes/js/wp-util.min.js +0 -1
  1171. data/lib/wp/wp-includes/js/wpdialog.js +0 -19
  1172. data/lib/wp/wp-includes/js/wpdialog.min.js +0 -1
  1173. data/lib/wp/wp-includes/js/wplink.js +0 -615
  1174. data/lib/wp/wp-includes/js/wplink.min.js +0 -1
  1175. data/lib/wp/wp-includes/js/zxcvbn-async.js +0 -18
  1176. data/lib/wp/wp-includes/js/zxcvbn-async.min.js +0 -1
  1177. data/lib/wp/wp-includes/js/zxcvbn.min.js +0 -47
  1178. data/lib/wp/wp-includes/kses.php +0 -1526
  1179. data/lib/wp/wp-includes/l10n.php +0 -908
  1180. data/lib/wp/wp-includes/link-template.php +0 -3141
  1181. data/lib/wp/wp-includes/load.php +0 -828
  1182. data/lib/wp/wp-includes/locale.php +0 -368
  1183. data/lib/wp/wp-includes/media-template.php +0 -1235
  1184. data/lib/wp/wp-includes/media.php +0 -3329
  1185. data/lib/wp/wp-includes/meta.php +0 -1221
  1186. data/lib/wp/wp-includes/ms-blogs.php +0 -939
  1187. data/lib/wp/wp-includes/ms-default-constants.php +0 -153
  1188. data/lib/wp/wp-includes/ms-default-filters.php +0 -82
  1189. data/lib/wp/wp-includes/ms-deprecated.php +0 -347
  1190. data/lib/wp/wp-includes/ms-files.php +0 -82
  1191. data/lib/wp/wp-includes/ms-functions.php +0 -2476
  1192. data/lib/wp/wp-includes/ms-load.php +0 -458
  1193. data/lib/wp/wp-includes/ms-settings.php +0 -213
  1194. data/lib/wp/wp-includes/nav-menu-template.php +0 -678
  1195. data/lib/wp/wp-includes/nav-menu.php +0 -895
  1196. data/lib/wp/wp-includes/option.php +0 -1440
  1197. data/lib/wp/wp-includes/pluggable-deprecated.php +0 -192
  1198. data/lib/wp/wp-includes/pluggable.php +0 -2283
  1199. data/lib/wp/wp-includes/plugin.php +0 -920
  1200. data/lib/wp/wp-includes/pomo/entry.php +0 -78
  1201. data/lib/wp/wp-includes/pomo/mo.php +0 -262
  1202. data/lib/wp/wp-includes/pomo/po.php +0 -384
  1203. data/lib/wp/wp-includes/pomo/streams.php +0 -209
  1204. data/lib/wp/wp-includes/pomo/translations.php +0 -275
  1205. data/lib/wp/wp-includes/post-formats.php +0 -243
  1206. data/lib/wp/wp-includes/post-template.php +0 -1766
  1207. data/lib/wp/wp-includes/post-thumbnail-template.php +0 -142
  1208. data/lib/wp/wp-includes/post.php +0 -5842
  1209. data/lib/wp/wp-includes/query.php +0 -4666
  1210. data/lib/wp/wp-includes/registration-functions.php +0 -7
  1211. data/lib/wp/wp-includes/registration.php +0 -7
  1212. data/lib/wp/wp-includes/revision.php +0 -657
  1213. data/lib/wp/wp-includes/rewrite.php +0 -2180
  1214. data/lib/wp/wp-includes/rss-functions.php +0 -9
  1215. data/lib/wp/wp-includes/rss.php +0 -936
  1216. data/lib/wp/wp-includes/script-loader.php +0 -1045
  1217. data/lib/wp/wp-includes/session.php +0 -430
  1218. data/lib/wp/wp-includes/shortcodes.php +0 -410
  1219. data/lib/wp/wp-includes/taxonomy.php +0 -4006
  1220. data/lib/wp/wp-includes/template-loader.php +0 -76
  1221. data/lib/wp/wp-includes/template.php +0 -505
  1222. data/lib/wp/wp-includes/theme-compat/comments-popup.php +0 -128
  1223. data/lib/wp/wp-includes/theme-compat/comments.php +0 -101
  1224. data/lib/wp/wp-includes/theme-compat/footer.php +0 -30
  1225. data/lib/wp/wp-includes/theme-compat/header.php +0 -49
  1226. data/lib/wp/wp-includes/theme-compat/sidebar.php +0 -83
  1227. data/lib/wp/wp-includes/theme.php +0 -2014
  1228. data/lib/wp/wp-includes/update.php +0 -674
  1229. data/lib/wp/wp-includes/user.php +0 -2292
  1230. data/lib/wp/wp-includes/vars.php +0 -144
  1231. data/lib/wp/wp-includes/version.php +0 -35
  1232. data/lib/wp/wp-includes/widgets.php +0 -1514
  1233. data/lib/wp/wp-includes/wlwmanifest.xml +0 -43
  1234. data/lib/wp/wp-includes/wp-db.php +0 -2190
  1235. data/lib/wp/wp-includes/wp-diff.php +0 -523
  1236. data/lib/wp/wp-links-opml.php +0 -80
  1237. data/lib/wp/wp-load.php +0 -73
  1238. data/lib/wp/wp-login.php +0 -952
  1239. data/lib/wp/wp-mail.php +0 -260
  1240. data/lib/wp/wp-settings.php +0 -374
  1241. data/lib/wp/wp-signup.php +0 -749
  1242. data/lib/wp/wp-trackback.php +0 -127
  1243. data/lib/wp/xmlrpc.php +0 -101
@@ -1,2286 +0,0 @@
1
- <?php
2
- /**
3
- * Comment template functions
4
- *
5
- * These functions are meant to live inside of the WordPress loop.
6
- *
7
- * @package WordPress
8
- * @subpackage Template
9
- */
10
-
11
- /**
12
- * Retrieve the author of the current comment.
13
- *
14
- * If the comment has an empty comment_author field, then 'Anonymous' person is
15
- * assumed.
16
- *
17
- * @since 1.5.0
18
- *
19
- * @param int $comment_ID Optional. The ID of the comment for which to retrieve the author. Default current comment.
20
- * @return string The comment author
21
- */
22
- function get_comment_author( $comment_ID = 0 ) {
23
- $comment = get_comment( $comment_ID );
24
-
25
- if ( empty( $comment->comment_author ) ) {
26
- if ( $comment->user_id && $user = get_userdata( $comment->user_id ) )
27
- $author = $user->display_name;
28
- else
29
- $author = __('Anonymous');
30
- } else {
31
- $author = $comment->comment_author;
32
- }
33
-
34
- /**
35
- * Filter the returned comment author name.
36
- *
37
- * @since 1.5.0
38
- *
39
- * @param string $author The comment author's username.
40
- */
41
- return apply_filters( 'get_comment_author', $author );
42
- }
43
-
44
- /**
45
- * Displays the author of the current comment.
46
- *
47
- * @since 0.71
48
- *
49
- * @param int $comment_ID Optional. The ID of the comment for which to print the author. Default current comment.
50
- */
51
- function comment_author( $comment_ID = 0 ) {
52
- $author = get_comment_author( $comment_ID );
53
- /**
54
- * Filter the comment author's name for display.
55
- *
56
- * @since 1.2.0
57
- *
58
- * @param string $author The comment author's username.
59
- */
60
- $author = apply_filters( 'comment_author', $author );
61
- echo $author;
62
- }
63
-
64
- /**
65
- * Retrieve the email of the author of the current comment.
66
- *
67
- * @since 1.5.0
68
- *
69
- * @param int $comment_ID Optional. The ID of the comment for which to get the author's email. Default current comment.
70
- * @return string The current comment author's email
71
- */
72
- function get_comment_author_email( $comment_ID = 0 ) {
73
- $comment = get_comment( $comment_ID );
74
- /**
75
- * Filter the comment author's returned email address.
76
- *
77
- * @since 1.5.0
78
- *
79
- * @param string $comment_author_email The comment author's email address.
80
- */
81
- return apply_filters( 'get_comment_author_email', $comment->comment_author_email );
82
- }
83
-
84
- /**
85
- * Display the email of the author of the current global $comment.
86
- *
87
- * Care should be taken to protect the email address and assure that email
88
- * harvesters do not capture your commentors' email address. Most assume that
89
- * their email address will not appear in raw form on the blog. Doing so will
90
- * enable anyone, including those that people don't want to get the email
91
- * address and use it for their own means good and bad.
92
- *
93
- * @since 0.71
94
- *
95
- * @param int $comment_ID Optional. The ID of the comment for which to print the author's email. Default current comment.
96
- */
97
- function comment_author_email( $comment_ID = 0 ) {
98
- $author_email = get_comment_author_email( $comment_ID );
99
- /**
100
- * Filter the comment author's email for display.
101
- *
102
- * @since 1.2.0
103
- *
104
- * @param string $author_email The comment author's email address.
105
- */
106
- echo apply_filters( 'author_email', $author_email );
107
- }
108
-
109
- /**
110
- * Display the html email link to the author of the current comment.
111
- *
112
- * Care should be taken to protect the email address and assure that email
113
- * harvesters do not capture your commentors' email address. Most assume that
114
- * their email address will not appear in raw form on the blog. Doing so will
115
- * enable anyone, including those that people don't want to get the email
116
- * address and use it for their own means good and bad.
117
- *
118
- * @since 0.71
119
- *
120
- * @param string $linktext Optional. Text to display instead of the comment author's email address.
121
- * Default empty.
122
- * @param string $before Optional. Text or HTML to display before the email link. Default empty.
123
- * @param string $after Optional. Text or HTML to display after the email link. Default empty.
124
- */
125
- function comment_author_email_link( $linktext = '', $before = '', $after = '' ) {
126
- if ( $link = get_comment_author_email_link( $linktext, $before, $after ) )
127
- echo $link;
128
- }
129
-
130
- /**
131
- * Return the html email link to the author of the current comment.
132
- *
133
- * Care should be taken to protect the email address and assure that email
134
- * harvesters do not capture your commentors' email address. Most assume that
135
- * their email address will not appear in raw form on the blog. Doing so will
136
- * enable anyone, including those that people don't want to get the email
137
- * address and use it for their own means good and bad.
138
- *
139
- * @global object $comment The current Comment row object.
140
- *
141
- * @since 2.7.0
142
- *
143
- * @param string $linktext Optional. Text to display instead of the comment author's email address.
144
- * Default empty.
145
- * @param string $before Optional. Text or HTML to display before the email link. Default empty.
146
- * @param string $after Optional. Text or HTML to display after the email link. Default empty.
147
- */
148
- function get_comment_author_email_link( $linktext = '', $before = '', $after = '' ) {
149
- global $comment;
150
- /**
151
- * Filter the comment author's email for display.
152
- *
153
- * Care should be taken to protect the email address and assure that email
154
- * harvesters do not capture your commenters' email address.
155
- *
156
- * @since 1.2.0
157
- *
158
- * @param string $comment_author_email The comment author's email address.
159
- */
160
- $email = apply_filters( 'comment_email', $comment->comment_author_email );
161
- if ((!empty($email)) && ($email != '@')) {
162
- $display = ($linktext != '') ? $linktext : $email;
163
- $return = $before;
164
- $return .= "<a href='mailto:$email'>$display</a>";
165
- $return .= $after;
166
- return $return;
167
- } else {
168
- return '';
169
- }
170
- }
171
-
172
- /**
173
- * Retrieve the HTML link to the URL of the author of the current comment.
174
- *
175
- * Both get_comment_author_url() and get_comment_author() rely on get_comment(),
176
- * which falls back to the global comment variable if the $comment_ID argument is empty.
177
- *
178
- * @since 1.5.0
179
- *
180
- * @param int $comment_ID ID of the comment for which to get the author's link.
181
- * Default current comment.
182
- * @return string The comment author name or HTML link for author's URL.
183
- */
184
- function get_comment_author_link( $comment_ID = 0 ) {
185
- $url = get_comment_author_url( $comment_ID );
186
- $author = get_comment_author( $comment_ID );
187
-
188
- if ( empty( $url ) || 'http://' == $url )
189
- $return = $author;
190
- else
191
- $return = "<a href='$url' rel='external nofollow' class='url'>$author</a>";
192
-
193
- /**
194
- * Filter the comment author's link for display.
195
- *
196
- * @since 1.5.0
197
- *
198
- * @param string $return The HTML-formatted comment author link.
199
- * Empty for an invalid URL.
200
- */
201
- return apply_filters( 'get_comment_author_link', $return );
202
- }
203
-
204
- /**
205
- * Display the html link to the url of the author of the current comment.
206
- *
207
- * @since 0.71
208
- *
209
- * @see get_comment_author_link() Echoes result
210
- *
211
- * @param int $comment_ID ID of the comment for which to print the author's
212
- * link. Default current comment.
213
- */
214
- function comment_author_link( $comment_ID = 0 ) {
215
- echo get_comment_author_link( $comment_ID );
216
- }
217
-
218
- /**
219
- * Retrieve the IP address of the author of the current comment.
220
- *
221
- * @since 1.5.0
222
- *
223
- * @param int $comment_ID ID of the comment for which to get the author's IP
224
- * address. Default current comment.
225
- * @return string Comment author's IP address.
226
- */
227
- function get_comment_author_IP( $comment_ID = 0 ) {
228
- $comment = get_comment( $comment_ID );
229
-
230
- /**
231
- * Filter the comment author's returned IP address.
232
- *
233
- * @since 1.5.0
234
- *
235
- * @param string $comment_author_IP The comment author's IP address.
236
- */
237
- return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP );
238
- }
239
-
240
- /**
241
- * Display the IP address of the author of the current comment.
242
- *
243
- * @since 0.71
244
- *
245
- * @param int $comment_ID ID of the comment for which to print the author's IP
246
- * address. Default current comment.
247
- */
248
- function comment_author_IP( $comment_ID = 0 ) {
249
- echo get_comment_author_IP( $comment_ID );
250
- }
251
-
252
- /**
253
- * Retrieve the url of the author of the current comment.
254
- *
255
- * @since 1.5.0
256
- *
257
- * @param int $comment_ID ID of the comment for which to get the author's URL.
258
- * Default current comment.
259
- * @return string
260
- */
261
- function get_comment_author_url( $comment_ID = 0 ) {
262
- $comment = get_comment( $comment_ID );
263
- $url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
264
- $url = esc_url( $url, array('http', 'https') );
265
- /**
266
- * Filter the comment author's URL.
267
- *
268
- * @since 1.5.0
269
- *
270
- * @param string $url The comment author's URL.
271
- */
272
- return apply_filters( 'get_comment_author_url', $url );
273
- }
274
-
275
- /**
276
- * Display the url of the author of the current comment.
277
- *
278
- * @since 0.71
279
- *
280
- * @param int $comment_ID ID of the comment for which to print the author's URL.
281
- * Default current comment.
282
- */
283
- function comment_author_url( $comment_ID = 0 ) {
284
- $author_url = get_comment_author_url( $comment_ID );
285
- /**
286
- * Filter the comment author's URL for display.
287
- *
288
- * @since 1.2.0
289
- *
290
- * @param string $author_url The comment author's URL.
291
- */
292
- echo apply_filters( 'comment_url', $author_url );
293
- }
294
-
295
- /**
296
- * Retrieves the HTML link of the url of the author of the current comment.
297
- *
298
- * $linktext parameter is only used if the URL does not exist for the comment
299
- * author. If the URL does exist then the URL will be used and the $linktext
300
- * will be ignored.
301
- *
302
- * Encapsulate the HTML link between the $before and $after. So it will appear
303
- * in the order of $before, link, and finally $after.
304
- *
305
- * @since 1.5.0
306
- *
307
- * @param string $linktext Optional. The text to display instead of the comment
308
- * author's email address. Default empty.
309
- * @param string $before Optional. The text or HTML to display before the email link.
310
- * Default empty.
311
- * @param string $after Optional. The text or HTML to display after the email link.
312
- * Default empty.
313
- * @return string The HTML link between the $before and $after parameters.
314
- */
315
- function get_comment_author_url_link( $linktext = '', $before = '', $after = '' ) {
316
- $url = get_comment_author_url();
317
- $display = ($linktext != '') ? $linktext : $url;
318
- $display = str_replace( 'http://www.', '', $display );
319
- $display = str_replace( 'http://', '', $display );
320
- if ( '/' == substr($display, -1) )
321
- $display = substr($display, 0, -1);
322
- $return = "$before<a href='$url' rel='external'>$display</a>$after";
323
-
324
- /**
325
- * Filter the comment author's returned URL link.
326
- *
327
- * @since 1.5.0
328
- *
329
- * @param string $return The HTML-formatted comment author URL link.
330
- */
331
- return apply_filters( 'get_comment_author_url_link', $return );
332
- }
333
-
334
- /**
335
- * Displays the HTML link of the url of the author of the current comment.
336
- *
337
- * @since 0.71
338
- *
339
- * @param string $linktext Optional. Text to display instead of the comment author's
340
- * email address. Default empty.
341
- * @param string $before Optional. Text or HTML to display before the email link.
342
- * Default empty.
343
- * @param string $after Optional. Text or HTML to display after the email link.
344
- * Default empty.
345
- */
346
- function comment_author_url_link( $linktext = '', $before = '', $after = '' ) {
347
- echo get_comment_author_url_link( $linktext, $before, $after );
348
- }
349
-
350
- /**
351
- * Generates semantic classes for each comment element.
352
- *
353
- * @since 2.7.0
354
- *
355
- * @param string|array $class Optional. One or more classes to add to the class list.
356
- * Default empty.
357
- * @param int $comment_id Comment ID. Default current comment.
358
- * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
359
- * @param bool $echo Optional. Whether to cho or return the output.
360
- * Default true.
361
- */
362
- function comment_class( $class = '', $comment_id = null, $post_id = null, $echo = true ) {
363
- // Separates classes with a single space, collates classes for comment DIV
364
- $class = 'class="' . join( ' ', get_comment_class( $class, $comment_id, $post_id ) ) . '"';
365
- if ( $echo)
366
- echo $class;
367
- else
368
- return $class;
369
- }
370
-
371
- /**
372
- * Returns the classes for the comment div as an array.
373
- *
374
- * @since 2.7.0
375
- *
376
- * @param string|array $class Optional. One or more classes to add to the class list. Default empty.
377
- * @param int $comment_id Comment ID. Default current comment.
378
- * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
379
- * @return array An array of classes.
380
- */
381
- function get_comment_class( $class = '', $comment_id = null, $post_id = null ) {
382
- global $comment_alt, $comment_depth, $comment_thread_alt;
383
-
384
- $comment = get_comment($comment_id);
385
-
386
- $classes = array();
387
-
388
- // Get the comment type (comment, trackback),
389
- $classes[] = ( empty( $comment->comment_type ) ) ? 'comment' : $comment->comment_type;
390
-
391
- // If the comment author has an id (registered), then print the log in name
392
- if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) {
393
- // For all registered users, 'byuser'
394
- $classes[] = 'byuser';
395
- $classes[] = 'comment-author-' . sanitize_html_class($user->user_nicename, $comment->user_id);
396
- // For comment authors who are the author of the post
397
- if ( $post = get_post($post_id) ) {
398
- if ( $comment->user_id === $post->post_author )
399
- $classes[] = 'bypostauthor';
400
- }
401
- }
402
-
403
- if ( empty($comment_alt) )
404
- $comment_alt = 0;
405
- if ( empty($comment_depth) )
406
- $comment_depth = 1;
407
- if ( empty($comment_thread_alt) )
408
- $comment_thread_alt = 0;
409
-
410
- if ( $comment_alt % 2 ) {
411
- $classes[] = 'odd';
412
- $classes[] = 'alt';
413
- } else {
414
- $classes[] = 'even';
415
- }
416
-
417
- $comment_alt++;
418
-
419
- // Alt for top-level comments
420
- if ( 1 == $comment_depth ) {
421
- if ( $comment_thread_alt % 2 ) {
422
- $classes[] = 'thread-odd';
423
- $classes[] = 'thread-alt';
424
- } else {
425
- $classes[] = 'thread-even';
426
- }
427
- $comment_thread_alt++;
428
- }
429
-
430
- $classes[] = "depth-$comment_depth";
431
-
432
- if ( !empty($class) ) {
433
- if ( !is_array( $class ) )
434
- $class = preg_split('#\s+#', $class);
435
- $classes = array_merge($classes, $class);
436
- }
437
-
438
- $classes = array_map('esc_attr', $classes);
439
-
440
- /**
441
- * Filter the returned CSS classes for the current comment.
442
- *
443
- * @since 2.7.0
444
- *
445
- * @param array $classes An array of comment classes.
446
- * @param string $class A comma-separated list of additional classes added to the list.
447
- * @param int $comment_id The comment id.
448
- * @param int|WP_Post $post_id The post ID or WP_Post object.
449
- */
450
- return apply_filters( 'comment_class', $classes, $class, $comment_id, $post_id );
451
- }
452
-
453
- /**
454
- * Retrieve the comment date of the current comment.
455
- *
456
- * @since 1.5.0
457
- *
458
- * @param string $d Optional. The format of the date. Default user's setting.
459
- * @param int $comment_ID ID of the comment for which to get the date. Default current comment.
460
- * @return string The comment's date.
461
- */
462
- function get_comment_date( $d = '', $comment_ID = 0 ) {
463
- $comment = get_comment( $comment_ID );
464
- if ( '' == $d )
465
- $date = mysql2date(get_option('date_format'), $comment->comment_date);
466
- else
467
- $date = mysql2date($d, $comment->comment_date);
468
- /**
469
- * Filter the returned comment date.
470
- *
471
- * @since 1.5.0
472
- *
473
- * @param string|int $date Formatted date string or Unix timestamp.
474
- * @param string $d The format of the date.
475
- * @param object $comment The comment object.
476
- */
477
- return apply_filters( 'get_comment_date', $date, $d, $comment );
478
- }
479
-
480
- /**
481
- * Display the comment date of the current comment.
482
- *
483
- * @since 0.71
484
- *
485
- * @param string $d Optional. The format of the date. Default user's settings.
486
- * @param int $comment_ID ID of the comment for which to print the date. Default current comment.
487
- */
488
- function comment_date( $d = '', $comment_ID = 0 ) {
489
- echo get_comment_date( $d, $comment_ID );
490
- }
491
-
492
- /**
493
- * Retrieve the excerpt of the current comment.
494
- *
495
- * Will cut each word and only output the first 20 words with '&hellip;' at the end.
496
- * If the word count is less than 20, then no truncating is done and no '&hellip;'
497
- * will appear.
498
- *
499
- * @since 1.5.0
500
- *
501
- * @param int $comment_ID ID of the comment for which to get the excerpt.
502
- * Default current comment.
503
- * @return string The maybe truncated comment with 20 words or less.
504
- */
505
- function get_comment_excerpt( $comment_ID = 0 ) {
506
- $comment = get_comment( $comment_ID );
507
- $comment_text = strip_tags($comment->comment_content);
508
- $blah = explode(' ', $comment_text);
509
- if (count($blah) > 20) {
510
- $k = 20;
511
- $use_dotdotdot = 1;
512
- } else {
513
- $k = count($blah);
514
- $use_dotdotdot = 0;
515
- }
516
- $excerpt = '';
517
- for ($i=0; $i<$k; $i++) {
518
- $excerpt .= $blah[$i] . ' ';
519
- }
520
- $excerpt .= ($use_dotdotdot) ? '&hellip;' : '';
521
-
522
- /**
523
- * Filter the retrieved comment excerpt.
524
- *
525
- * @since 1.5.0
526
- *
527
- * @param string $excerpt The comment excerpt text.
528
- */
529
- return apply_filters( 'get_comment_excerpt', $excerpt );
530
- }
531
-
532
- /**
533
- * Display the excerpt of the current comment.
534
- *
535
- * @since 1.2.0
536
- *
537
- * @param int $comment_ID ID of the comment for which to print the excerpt.
538
- * Default current comment.
539
- */
540
- function comment_excerpt( $comment_ID = 0 ) {
541
- $comment_excerpt = get_comment_excerpt($comment_ID);
542
- /**
543
- * Filter the comment excerpt for display.
544
- *
545
- * @since 1.2.0
546
- *
547
- * @param string $comment_excerpt The comment excerpt text.
548
- */
549
- echo apply_filters( 'comment_excerpt', $comment_excerpt );
550
- }
551
-
552
- /**
553
- * Retrieve the comment id of the current comment.
554
- *
555
- * @since 1.5.0
556
- *
557
- * @return int The comment ID.
558
- */
559
- function get_comment_ID() {
560
- global $comment;
561
- /**
562
- * Filter the returned comment ID.
563
- *
564
- * @since 1.5.0
565
- *
566
- * @param int $comment_ID The current comment ID.
567
- */
568
- return apply_filters( 'get_comment_ID', $comment->comment_ID );
569
- }
570
-
571
- /**
572
- * Display the comment id of the current comment.
573
- *
574
- * @since 0.71
575
- */
576
- function comment_ID() {
577
- echo get_comment_ID();
578
- }
579
-
580
- /**
581
- * Retrieve the link to a given comment.
582
- *
583
- * @since 1.5.0
584
- *
585
- * @see get_page_of_comment()
586
- *
587
- * @param mixed $comment Comment to retrieve. Default current comment.
588
- * @param array $args Optional. An array of arguments to override the defaults.
589
- * @return string The permalink to the given comment.
590
- */
591
- function get_comment_link( $comment = null, $args = array() ) {
592
- global $wp_rewrite, $in_comment_loop;
593
-
594
- $comment = get_comment($comment);
595
-
596
- // Backwards compat
597
- if ( ! is_array( $args ) ) {
598
- $args = array( 'page' => $args );
599
- }
600
-
601
- $defaults = array( 'type' => 'all', 'page' => '', 'per_page' => '', 'max_depth' => '' );
602
- $args = wp_parse_args( $args, $defaults );
603
-
604
- if ( '' === $args['per_page'] && get_option('page_comments') )
605
- $args['per_page'] = get_option('comments_per_page');
606
-
607
- if ( empty($args['per_page']) ) {
608
- $args['per_page'] = 0;
609
- $args['page'] = 0;
610
- }
611
-
612
- if ( $args['per_page'] ) {
613
- if ( '' == $args['page'] )
614
- $args['page'] = ( !empty($in_comment_loop) ) ? get_query_var('cpage') : get_page_of_comment( $comment->comment_ID, $args );
615
-
616
- if ( $wp_rewrite->using_permalinks() )
617
- $link = user_trailingslashit( trailingslashit( get_permalink( $comment->comment_post_ID ) ) . 'comment-page-' . $args['page'], 'comment' );
618
- else
619
- $link = add_query_arg( 'cpage', $args['page'], get_permalink( $comment->comment_post_ID ) );
620
- } else {
621
- $link = get_permalink( $comment->comment_post_ID );
622
- }
623
-
624
- $link = $link . '#comment-' . $comment->comment_ID;
625
- /**
626
- * Filter the returned single comment permalink.
627
- *
628
- * @since 2.8.0
629
- *
630
- * @see get_page_of_comment()
631
- *
632
- * @param string $link The comment permalink with '#comment-$id' appended.
633
- * @param object $comment The current comment object.
634
- * @param array $args An array of arguments to override the defaults.
635
- */
636
- return apply_filters( 'get_comment_link', $link, $comment, $args );
637
- }
638
-
639
- /**
640
- * Retrieve the link to the current post comments.
641
- *
642
- * @since 1.5.0
643
- *
644
- * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
645
- * @return string The link to the comments.
646
- */
647
- function get_comments_link( $post_id = 0 ) {
648
- $comments_link = get_permalink( $post_id ) . '#comments';
649
- /**
650
- * Filter the returned post comments permalink.
651
- *
652
- * @since 3.6.0
653
- *
654
- * @param string $comments_link Post comments permalink with '#comments' appended.
655
- * @param int|WP_Post $post_id Post ID or WP_Post object.
656
- */
657
- return apply_filters( 'get_comments_link', $comments_link, $post_id );
658
- }
659
-
660
- /**
661
- * Display the link to the current post comments.
662
- *
663
- * @since 0.71
664
- *
665
- * @param string $deprecated Not Used.
666
- * @param bool $deprecated_2 Not Used.
667
- */
668
- function comments_link( $deprecated = '', $deprecated_2 = '' ) {
669
- if ( !empty( $deprecated ) )
670
- _deprecated_argument( __FUNCTION__, '0.72' );
671
- if ( !empty( $deprecated_2 ) )
672
- _deprecated_argument( __FUNCTION__, '1.3' );
673
- echo esc_url( get_comments_link() );
674
- }
675
-
676
- /**
677
- * Retrieve the amount of comments a post has.
678
- *
679
- * @since 1.5.0
680
- *
681
- * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post.
682
- * @return int The number of comments a post has.
683
- */
684
- function get_comments_number( $post_id = 0 ) {
685
- $post = get_post( $post_id );
686
-
687
- if ( ! $post ) {
688
- $count = 0;
689
- } else {
690
- $count = $post->comment_count;
691
- $post_id = $post->ID;
692
- }
693
-
694
- /**
695
- * Filter the returned comment count for a post.
696
- *
697
- * @since 1.5.0
698
- *
699
- * @param int $count Number of comments a post has.
700
- * @param int $post_id Post ID.
701
- */
702
- return apply_filters( 'get_comments_number', $count, $post_id );
703
- }
704
-
705
- /**
706
- * Display the language string for the number of comments the current post has.
707
- *
708
- * @since 0.71
709
- *
710
- * @param string $zero Optional. Text for no comments. Default false.
711
- * @param string $one Optional. Text for one comment. Default false.
712
- * @param string $more Optional. Text for more than one comment. Default false.
713
- * @param string $deprecated Not used.
714
- */
715
- function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) {
716
- if ( ! empty( $deprecated ) ) {
717
- _deprecated_argument( __FUNCTION__, '1.3' );
718
- }
719
- echo get_comments_number_text( $zero, $one, $more );
720
- }
721
-
722
- /**
723
- * Display the language string for the number of comments the current post has.
724
- *
725
- * @since 4.0.0
726
- *
727
- * @param string $zero Optional. Text for no comments. Default false.
728
- * @param string $one Optional. Text for one comment. Default false.
729
- * @param string $more Optional. Text for more than one comment. Default false.
730
- */
731
- function get_comments_number_text( $zero = false, $one = false, $more = false ) {
732
- $number = get_comments_number();
733
-
734
- if ( $number > 1 ) {
735
- $output = str_replace( '%', number_format_i18n( $number ), ( false === $more ) ? __( '% Comments' ) : $more );
736
- } elseif ( $number == 0 ) {
737
- $output = ( false === $zero ) ? __( 'No Comments' ) : $zero;
738
- } else { // must be one
739
- $output = ( false === $one ) ? __( '1 Comment' ) : $one;
740
- }
741
- /**
742
- * Filter the comments count for display.
743
- *
744
- * @since 1.5.0
745
- *
746
- * @see _n()
747
- *
748
- * @param string $output A translatable string formatted based on whether the count
749
- * is equal to 0, 1, or 1+.
750
- * @param int $number The number of post comments.
751
- */
752
- return apply_filters( 'comments_number', $output, $number );
753
- }
754
-
755
- /**
756
- * Retrieve the text of the current comment.
757
- *
758
- * @since 1.5.0
759
- *
760
- * @see Walker_Comment::comment()
761
- *
762
- * @param int $comment_ID ID of the comment for which to get the text. Default current comment.
763
- * @param array $args Optional. An array of arguments. Default empty.
764
- * @return string The comment content.
765
- */
766
- function get_comment_text( $comment_ID = 0, $args = array() ) {
767
- $comment = get_comment( $comment_ID );
768
-
769
- /**
770
- * Filter the text of a comment.
771
- *
772
- * @since 1.5.0
773
- *
774
- * @see Walker_Comment::comment()
775
- *
776
- * @param string $comment_content Text of the comment.
777
- * @param object $comment The comment object.
778
- * @param array $args An array of arguments.
779
- */
780
- return apply_filters( 'get_comment_text', $comment->comment_content, $comment, $args );
781
- }
782
-
783
- /**
784
- * Display the text of the current comment.
785
- *
786
- * @since 0.71
787
- *
788
- * @see Walker_Comment::comment()
789
- *
790
- * @param int $comment_ID ID of the comment for which to print the text. Default 0.
791
- * @param array $args Optional. An array of arguments. Default empty array. Default empty.
792
- */
793
- function comment_text( $comment_ID = 0, $args = array() ) {
794
- $comment = get_comment( $comment_ID );
795
-
796
- $comment_text = get_comment_text( $comment_ID , $args );
797
- /**
798
- * Filter the text of a comment to be displayed.
799
- *
800
- * @since 1.2.0
801
- *
802
- * @see Walker_Comment::comment()
803
- *
804
- * @param string $comment_text Text of the current comment.
805
- * @param object $comment The comment object.
806
- * @param array $args An array of arguments.
807
- */
808
- echo apply_filters( 'comment_text', $comment_text, $comment, $args );
809
- }
810
-
811
- /**
812
- * Retrieve the comment time of the current comment.
813
- *
814
- * @since 1.5.0
815
- *
816
- * @param string $d Optional. The format of the time. Default user's settings.
817
- * @param bool $gmt Optional. Whether to use the GMT date. Default false.
818
- * @param bool $translate Optional. Whether to translate the time (for use in feeds).
819
- * Default true.
820
- * @return string The formatted time.
821
- */
822
- function get_comment_time( $d = '', $gmt = false, $translate = true ) {
823
- global $comment;
824
- $comment_date = $gmt ? $comment->comment_date_gmt : $comment->comment_date;
825
- if ( '' == $d )
826
- $date = mysql2date(get_option('time_format'), $comment_date, $translate);
827
- else
828
- $date = mysql2date($d, $comment_date, $translate);
829
-
830
- /**
831
- * Filter the returned comment time.
832
- *
833
- * @since 1.5.0
834
- *
835
- * @param string|int $date The comment time, formatted as a date string or Unix timestamp.
836
- * @param string $d Date format.
837
- * @param bool $gmt Whether the GMT date is in use.
838
- * @param bool $translate Whether the time is translated.
839
- * @param object $comment The comment object.
840
- */
841
- return apply_filters( 'get_comment_time', $date, $d, $gmt, $translate, $comment );
842
- }
843
-
844
- /**
845
- * Display the comment time of the current comment.
846
- *
847
- * @since 0.71
848
- *
849
- * @param string $d Optional. The format of the time. Default user's settings.
850
- */
851
- function comment_time( $d = '' ) {
852
- echo get_comment_time($d);
853
- }
854
-
855
- /**
856
- * Retrieve the comment type of the current comment.
857
- *
858
- * @since 1.5.0
859
- *
860
- * @param int $comment_ID ID of the comment for which to get the type. Default current comment.
861
- * @return string The comment type.
862
- */
863
- function get_comment_type( $comment_ID = 0 ) {
864
- $comment = get_comment( $comment_ID );
865
- if ( '' == $comment->comment_type )
866
- $comment->comment_type = 'comment';
867
-
868
- /**
869
- * Filter the returned comment type.
870
- *
871
- * @since 1.5.0
872
- *
873
- * @param string $comment_type The type of comment, such as 'comment', 'pingback', or 'trackback'.
874
- */
875
- return apply_filters( 'get_comment_type', $comment->comment_type );
876
- }
877
-
878
- /**
879
- * Display the comment type of the current comment.
880
- *
881
- * @since 0.71
882
- *
883
- * @param string $commenttxt Optional. String to display for comment type. Default false.
884
- * @param string $trackbacktxt Optional. String to display for trackback type. Default false.
885
- * @param string $pingbacktxt Optional. String to display for pingback type. Default false.
886
- */
887
- function comment_type( $commenttxt = false, $trackbacktxt = false, $pingbacktxt = false ) {
888
- if ( false === $commenttxt ) $commenttxt = _x( 'Comment', 'noun' );
889
- if ( false === $trackbacktxt ) $trackbacktxt = __( 'Trackback' );
890
- if ( false === $pingbacktxt ) $pingbacktxt = __( 'Pingback' );
891
- $type = get_comment_type();
892
- switch( $type ) {
893
- case 'trackback' :
894
- echo $trackbacktxt;
895
- break;
896
- case 'pingback' :
897
- echo $pingbacktxt;
898
- break;
899
- default :
900
- echo $commenttxt;
901
- }
902
- }
903
-
904
- /**
905
- * Retrieve The current post's trackback URL.
906
- *
907
- * There is a check to see if permalink's have been enabled and if so, will
908
- * retrieve the pretty path. If permalinks weren't enabled, the ID of the
909
- * current post is used and appended to the correct page to go to.
910
- *
911
- * @since 1.5.0
912
- *
913
- * @return string The trackback URL after being filtered.
914
- */
915
- function get_trackback_url() {
916
- if ( '' != get_option('permalink_structure') )
917
- $tb_url = trailingslashit(get_permalink()) . user_trailingslashit('trackback', 'single_trackback');
918
- else
919
- $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . get_the_ID();
920
-
921
- /**
922
- * Filter the returned trackback URL.
923
- *
924
- * @since 2.2.0
925
- *
926
- * @param string $tb_url The trackback URL.
927
- */
928
- return apply_filters( 'trackback_url', $tb_url );
929
- }
930
-
931
- /**
932
- * Display the current post's trackback URL.
933
- *
934
- * @since 0.71
935
- *
936
- * @param bool $deprecated_echo Not used.
937
- * @return void|string Should only be used to echo the trackback URL, use get_trackback_url()
938
- * for the result instead.
939
- */
940
- function trackback_url( $deprecated_echo = true ) {
941
- if ( $deprecated_echo !== true )
942
- _deprecated_argument( __FUNCTION__, '2.5', __('Use <code>get_trackback_url()</code> instead if you do not want the value echoed.') );
943
- if ( $deprecated_echo )
944
- echo get_trackback_url();
945
- else
946
- return get_trackback_url();
947
- }
948
-
949
- /**
950
- * Generate and display the RDF for the trackback information of current post.
951
- *
952
- * Deprecated in 3.0.0, and restored in 3.0.1.
953
- *
954
- * @since 0.71
955
- *
956
- * @param int $deprecated Not used (Was $timezone = 0).
957
- */
958
- function trackback_rdf( $deprecated = '' ) {
959
- if ( ! empty( $deprecated ) ) {
960
- _deprecated_argument( __FUNCTION__, '2.5' );
961
- }
962
-
963
- if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && false !== stripos( $_SERVER['HTTP_USER_AGENT'], 'W3C_Validator' ) ) {
964
- return;
965
- }
966
-
967
- echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
968
- xmlns:dc="http://purl.org/dc/elements/1.1/"
969
- xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
970
- <rdf:Description rdf:about="';
971
- the_permalink();
972
- echo '"'."\n";
973
- echo ' dc:identifier="';
974
- the_permalink();
975
- echo '"'."\n";
976
- echo ' dc:title="'.str_replace('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))).'"'."\n";
977
- echo ' trackback:ping="'.get_trackback_url().'"'." />\n";
978
- echo '</rdf:RDF>';
979
- }
980
-
981
- /**
982
- * Whether the current post is open for comments.
983
- *
984
- * @since 1.5.0
985
- *
986
- * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
987
- * @return bool True if the comments are open.
988
- */
989
- function comments_open( $post_id = null ) {
990
-
991
- $_post = get_post($post_id);
992
-
993
- $open = ( 'open' == $_post->comment_status );
994
-
995
- /**
996
- * Filter whether the current post is open for comments.
997
- *
998
- * @since 2.5.0
999
- *
1000
- * @param bool $open Whether the current post is open for comments.
1001
- * @param int|WP_Post $post_id The post ID or WP_Post object.
1002
- */
1003
- return apply_filters( 'comments_open', $open, $post_id );
1004
- }
1005
-
1006
- /**
1007
- * Whether the current post is open for pings.
1008
- *
1009
- * @since 1.5.0
1010
- *
1011
- * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
1012
- * @return bool True if pings are accepted
1013
- */
1014
- function pings_open( $post_id = null ) {
1015
-
1016
- $_post = get_post($post_id);
1017
-
1018
- $open = ( 'open' == $_post->ping_status );
1019
-
1020
- /**
1021
- * Filter whether the current post is open for pings.
1022
- *
1023
- * @since 2.5.0
1024
- *
1025
- * @param bool $open Whether the current post is open for pings.
1026
- * @param int|WP_Post $post_id The post ID or WP_Post object.
1027
- */
1028
- return apply_filters( 'pings_open', $open, $post_id );
1029
- }
1030
-
1031
- /**
1032
- * Display form token for unfiltered comments.
1033
- *
1034
- * Will only display nonce token if the current user has permissions for
1035
- * unfiltered html. Won't display the token for other users.
1036
- *
1037
- * The function was backported to 2.0.10 and was added to versions 2.1.3 and
1038
- * above. Does not exist in versions prior to 2.0.10 in the 2.0 branch and in
1039
- * the 2.1 branch, prior to 2.1.3. Technically added in 2.2.0.
1040
- *
1041
- * Backported to 2.0.10.
1042
- *
1043
- * @since 2.1.3
1044
- */
1045
- function wp_comment_form_unfiltered_html_nonce() {
1046
- $post = get_post();
1047
- $post_id = $post ? $post->ID : 0;
1048
-
1049
- if ( current_user_can( 'unfiltered_html' ) ) {
1050
- wp_nonce_field( 'unfiltered-html-comment_' . $post_id, '_wp_unfiltered_html_comment_disabled', false );
1051
- echo "<script>(function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})();</script>\n";
1052
- }
1053
- }
1054
-
1055
- /**
1056
- * Load the comment template specified in $file.
1057
- *
1058
- * Will not display the comments template if not on single post or page, or if
1059
- * the post does not have comments.
1060
- *
1061
- * Uses the WordPress database object to query for the comments. The comments
1062
- * are passed through the 'comments_array' filter hook with the list of comments
1063
- * and the post ID respectively.
1064
- *
1065
- * The $file path is passed through a filter hook called, 'comments_template'
1066
- * which includes the TEMPLATEPATH and $file combined. Tries the $filtered path
1067
- * first and if it fails it will require the default comment template from the
1068
- * default theme. If either does not exist, then the WordPress process will be
1069
- * halted. It is advised for that reason, that the default theme is not deleted.
1070
- *
1071
- * @todo Document globals
1072
- * @uses $withcomments Will not try to get the comments if the post has none.
1073
- *
1074
- * @since 1.5.0
1075
- *
1076
- * @param string $file Optional. The file to load. Default '/comments.php'.
1077
- * @param bool $separate_comments Optional. Whether to separate the comments by comment type.
1078
- * Default false.
1079
- * @return null Returns null if no comments appear.
1080
- */
1081
- function comments_template( $file = '/comments.php', $separate_comments = false ) {
1082
- global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity, $overridden_cpage;
1083
-
1084
- if ( !(is_single() || is_page() || $withcomments) || empty($post) )
1085
- return;
1086
-
1087
- if ( empty($file) )
1088
- $file = '/comments.php';
1089
-
1090
- $req = get_option('require_name_email');
1091
-
1092
- /*
1093
- * Comment author information fetched from the comment cookies.
1094
- * Uuses wp_get_current_commenter().
1095
- */
1096
- $commenter = wp_get_current_commenter();
1097
-
1098
- /*
1099
- * The name of the current comment author escaped for use in attributes.
1100
- * Escaped by sanitize_comment_cookies().
1101
- */
1102
- $comment_author = $commenter['comment_author'];
1103
-
1104
- /*
1105
- * The email address of the current comment author escaped for use in attributes.
1106
- * Escaped by sanitize_comment_cookies().
1107
- */
1108
- $comment_author_email = $commenter['comment_author_email'];
1109
-
1110
- /*
1111
- * The url of the current comment author escaped for use in attributes.
1112
- */
1113
- $comment_author_url = esc_url($commenter['comment_author_url']);
1114
-
1115
- /** @todo Use API instead of SELECTs. */
1116
- if ( $user_ID) {
1117
- $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND (comment_approved = '1' OR ( user_id = %d AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, $user_ID));
1118
- } else if ( empty($comment_author) ) {
1119
- $comments = get_comments( array('post_id' => $post->ID, 'status' => 'approve', 'order' => 'ASC') );
1120
- } else {
1121
- $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND ( comment_approved = '1' OR ( comment_author = %s AND comment_author_email = %s AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, wp_specialchars_decode($comment_author,ENT_QUOTES), $comment_author_email));
1122
- }
1123
-
1124
- /**
1125
- * Filter the comments array.
1126
- *
1127
- * @since 2.1.0
1128
- *
1129
- * @param array $comments Array of comments supplied to the comments template.
1130
- * @param int $post_ID Post ID.
1131
- */
1132
- $wp_query->comments = apply_filters( 'comments_array', $comments, $post->ID );
1133
- $comments = &$wp_query->comments;
1134
- $wp_query->comment_count = count($wp_query->comments);
1135
- update_comment_cache($wp_query->comments);
1136
-
1137
- if ( $separate_comments ) {
1138
- $wp_query->comments_by_type = separate_comments($comments);
1139
- $comments_by_type = &$wp_query->comments_by_type;
1140
- }
1141
-
1142
- $overridden_cpage = false;
1143
- if ( '' == get_query_var('cpage') && get_option('page_comments') ) {
1144
- set_query_var( 'cpage', 'newest' == get_option('default_comments_page') ? get_comment_pages_count() : 1 );
1145
- $overridden_cpage = true;
1146
- }
1147
-
1148
- if ( !defined('COMMENTS_TEMPLATE') )
1149
- define('COMMENTS_TEMPLATE', true);
1150
-
1151
- $theme_template = STYLESHEETPATH . $file;
1152
- /**
1153
- * Filter the path to the theme template file used for the comments template.
1154
- *
1155
- * @since 1.5.1
1156
- *
1157
- * @param string $theme_template The path to the theme template file.
1158
- */
1159
- $include = apply_filters( 'comments_template', $theme_template );
1160
- if ( file_exists( $include ) )
1161
- require( $include );
1162
- elseif ( file_exists( TEMPLATEPATH . $file ) )
1163
- require( TEMPLATEPATH . $file );
1164
- else // Backward compat code will be removed in a future release
1165
- require( ABSPATH . WPINC . '/theme-compat/comments.php');
1166
- }
1167
-
1168
- /**
1169
- * Display the JS popup script to show a comment.
1170
- *
1171
- * If the $file parameter is empty, then the home page is assumed. The defaults
1172
- * for the window are 400px by 400px.
1173
- *
1174
- * For the comment link popup to work, this function has to be called or the
1175
- * normal comment link will be assumed.
1176
- *
1177
- * @global string $wpcommentspopupfile The URL to use for the popup window.
1178
- * @global int $wpcommentsjavascript Whether to use JavaScript. Set when function is called.
1179
- *
1180
- * @since 0.71
1181
- *
1182
- * @param int $width Optional. The width of the popup window. Default 400.
1183
- * @param int $height Optional. The height of the popup window. Default 400.
1184
- * @param string $file Optional. Sets the location of the popup window.
1185
- */
1186
- function comments_popup_script( $width = 400, $height = 400, $file = '' ) {
1187
- global $wpcommentspopupfile, $wpcommentsjavascript;
1188
-
1189
- if (empty ($file)) {
1190
- $wpcommentspopupfile = ''; // Use the index.
1191
- } else {
1192
- $wpcommentspopupfile = $file;
1193
- }
1194
-
1195
- $wpcommentsjavascript = 1;
1196
- $javascript = "<script type='text/javascript'>\nfunction wpopen (macagna) {\n window.open(macagna, '_blank', 'width=$width,height=$height,scrollbars=yes,status=yes');\n}\n</script>\n";
1197
- echo $javascript;
1198
- }
1199
-
1200
- /**
1201
- * Displays the link to the comments popup window for the current post ID.
1202
- *
1203
- * Is not meant to be displayed on single posts and pages. Should be used
1204
- * on the lists of posts
1205
- *
1206
- * @global string $wpcommentspopupfile The URL to use for the popup window.
1207
- * @global int $wpcommentsjavascript Whether to use JavaScript. Set when function is called.
1208
- *
1209
- * @since 0.71
1210
- *
1211
- * @param string $zero Optional. String to display when no comments. Default false.
1212
- * @param string $one Optional. String to display when only one comment is available.
1213
- * Default false.
1214
- * @param string $more Optional. String to display when there are more than one comment.
1215
- * Default false.
1216
- * @param string $css_class Optional. CSS class to use for comments. Default empty.
1217
- * @param string $none Optional. String to display when comments have been turned off.
1218
- * Default false.
1219
- * @return null Returns null on single posts and pages.
1220
- */
1221
- function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
1222
- global $wpcommentspopupfile, $wpcommentsjavascript;
1223
-
1224
- $id = get_the_ID();
1225
-
1226
- if ( false === $zero ) $zero = __( 'No Comments' );
1227
- if ( false === $one ) $one = __( '1 Comment' );
1228
- if ( false === $more ) $more = __( '% Comments' );
1229
- if ( false === $none ) $none = __( 'Comments Off' );
1230
-
1231
- $number = get_comments_number( $id );
1232
-
1233
- if ( 0 == $number && !comments_open() && !pings_open() ) {
1234
- echo '<span' . ((!empty($css_class)) ? ' class="' . esc_attr( $css_class ) . '"' : '') . '>' . $none . '</span>';
1235
- return;
1236
- }
1237
-
1238
- if ( post_password_required() ) {
1239
- echo __('Enter your password to view comments.');
1240
- return;
1241
- }
1242
-
1243
- echo '<a href="';
1244
- if ( $wpcommentsjavascript ) {
1245
- if ( empty( $wpcommentspopupfile ) )
1246
- $home = home_url();
1247
- else
1248
- $home = get_option('siteurl');
1249
- echo $home . '/' . $wpcommentspopupfile . '?comments_popup=' . $id;
1250
- echo '" onclick="wpopen(this.href); return false"';
1251
- } else { // if comments_popup_script() is not in the template, display simple comment link
1252
- if ( 0 == $number )
1253
- echo get_permalink() . '#respond';
1254
- else
1255
- comments_link();
1256
- echo '"';
1257
- }
1258
-
1259
- if ( !empty( $css_class ) ) {
1260
- echo ' class="'.$css_class.'" ';
1261
- }
1262
- $title = the_title_attribute( array('echo' => 0 ) );
1263
-
1264
- $attributes = '';
1265
- /**
1266
- * Filter the comments popup link attributes for display.
1267
- *
1268
- * @since 2.5.0
1269
- *
1270
- * @param string $attributes The comments popup link attributes. Default empty.
1271
- */
1272
- echo apply_filters( 'comments_popup_link_attributes', $attributes );
1273
-
1274
- echo ' title="' . esc_attr( sprintf( __('Comment on %s'), $title ) ) . '">';
1275
- comments_number( $zero, $one, $more );
1276
- echo '</a>';
1277
- }
1278
-
1279
- /**
1280
- * Retrieve HTML content for reply to comment link.
1281
- *
1282
- * @since 2.7.0
1283
- *
1284
- * @param array $args {
1285
- * Optional. Override default arguments.
1286
- *
1287
- * @type string $add_below The first part of the selector used to identify the comment to respond below.
1288
- * The resulting value is passed as the first parameter to addComment.moveForm(),
1289
- * concatenated as $add_below-$comment->comment_ID. Default 'comment'.
1290
- * @type string $respond_id The selector identifying the responding comment. Passed as the third parameter
1291
- * to addComment.moveForm(), and appended to the link URL as a hash value.
1292
- * Default 'respond'.
1293
- * @type string $reply_text The text of the Reply link. Default 'Reply'.
1294
- * @type string $login_text The text of the link to reply if logged out. Default 'Log in to Reply'.
1295
- * @type int $depth' The depth of the new comment. Must be greater than 0 and less than the value
1296
- * of the 'thread_comments_depth' option set in Settings > Discussion. Default 0.
1297
- * @type string $before The text or HTML to add before the reply link. Default empty.
1298
- * @type string $after The text or HTML to add after the reply link. Default empty.
1299
- * }
1300
- * @param int $comment Comment being replied to. Default current comment.
1301
- * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.
1302
- * Default current post.
1303
- * @return mixed Link to show comment form, if successful. False, if comments are closed.
1304
- */
1305
- function get_comment_reply_link( $args = array(), $comment = null, $post = null ) {
1306
-
1307
- $defaults = array(
1308
- 'add_below' => 'comment',
1309
- 'respond_id' => 'respond',
1310
- 'reply_text' => __( 'Reply' ),
1311
- 'reply_to_text' => __( 'Reply to %s' ),
1312
- 'login_text' => __( 'Log in to Reply' ),
1313
- 'depth' => 0,
1314
- 'before' => '',
1315
- 'after' => ''
1316
- );
1317
-
1318
- $args = wp_parse_args( $args, $defaults );
1319
-
1320
- if ( 0 == $args['depth'] || $args['max_depth'] <= $args['depth'] ) {
1321
- return;
1322
- }
1323
-
1324
- $comment = get_comment( $comment );
1325
-
1326
- if ( empty( $post ) ) {
1327
- $post = $comment->comment_post_ID;
1328
- }
1329
-
1330
- $post = get_post( $post );
1331
-
1332
- if ( ! comments_open( $post->ID ) ) {
1333
- return false;
1334
- }
1335
-
1336
- if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) {
1337
- $link = sprintf( '<a rel="nofollow" class="comment-reply-login" href="%s">%s</a>',
1338
- esc_url( wp_login_url( get_permalink() ) ),
1339
- $args['login_text']
1340
- );
1341
- } else {
1342
- $onclick = sprintf( 'return addComment.moveForm( "%1$s-%2$s", "%2$s", "%3$s", "%4$s" )',
1343
- $args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID
1344
- );
1345
-
1346
- $link = sprintf( "<a class='comment-reply-link' href='%s' onclick='%s' aria-label='%s'>%s</a>",
1347
- esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $args['respond_id'],
1348
- $onclick,
1349
- esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ),
1350
- $args['reply_text']
1351
- );
1352
- }
1353
- /**
1354
- * Filter the comment reply link.
1355
- *
1356
- * @since 2.7.0
1357
- *
1358
- * @param string $link The HTML markup for the comment reply link.
1359
- * @param array $args An array of arguments overriding the defaults.
1360
- * @param object $comment The object of the comment being replied.
1361
- * @param WP_Post $post The WP_Post object.
1362
- */
1363
- return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post );
1364
- }
1365
-
1366
- /**
1367
- * Displays the HTML content for reply to comment link.
1368
- *
1369
- * @since 2.7.0
1370
- *
1371
- * @see get_comment_reply_link()
1372
- *
1373
- * @param array $args Optional. Override default options.
1374
- * @param int $comment Comment being replied to. Default current comment.
1375
- * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.
1376
- * Default current post.
1377
- * @return mixed Link to show comment form, if successful. False, if comments are closed.
1378
- */
1379
- function comment_reply_link($args = array(), $comment = null, $post = null) {
1380
- echo get_comment_reply_link($args, $comment, $post);
1381
- }
1382
-
1383
- /**
1384
- * Retrieve HTML content for reply to post link.
1385
- *
1386
- * @since 2.7.0
1387
- *
1388
- * @param array $args {
1389
- * Optional. Override default arguments.
1390
- *
1391
- * @type string $add_below The first part of the selector used to identify the comment to respond below.
1392
- * The resulting value is passed as the first parameter to addComment.moveForm(),
1393
- * concatenated as $add_below-$comment->comment_ID. Default is 'post'.
1394
- * @type string $respond_id The selector identifying the responding comment. Passed as the third parameter
1395
- * to addComment.moveForm(), and appended to the link URL as a hash value.
1396
- * Default 'respond'.
1397
- * @type string $reply_text Text of the Reply link. Default is 'Leave a Comment'.
1398
- * @type string $login_text Text of the link to reply if logged out. Default is 'Log in to leave a Comment'.
1399
- * @type string $before Text or HTML to add before the reply link. Default empty.
1400
- * @type string $after Text or HTML to add after the reply link. Default empty.
1401
- * }
1402
- * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on.
1403
- * Default current post.
1404
- * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
1405
- */
1406
- function get_post_reply_link($args = array(), $post = null) {
1407
- $defaults = array(
1408
- 'add_below' => 'post',
1409
- 'respond_id' => 'respond',
1410
- 'reply_text' => __('Leave a Comment'),
1411
- 'login_text' => __('Log in to leave a Comment'),
1412
- 'before' => '',
1413
- 'after' => '',
1414
- );
1415
-
1416
- $args = wp_parse_args($args, $defaults);
1417
-
1418
- $post = get_post($post);
1419
-
1420
- if ( ! comments_open( $post->ID ) ) {
1421
- return false;
1422
- }
1423
-
1424
- if ( get_option('comment_registration') && ! is_user_logged_in() ) {
1425
- $link = sprintf( '<a rel="nofollow" href="%s">%s</a>',
1426
- wp_login_url( get_permalink() ),
1427
- $args['login_text']
1428
- );
1429
- } else {
1430
- $onclick = sprintf( 'return addComment.moveForm( "%1$s-%2$s", "0", "%3$s", "%2$s" )',
1431
- $args['add_below'], $post->ID, $args['respond_id']
1432
- );
1433
-
1434
- $link = sprintf( "<a rel='nofollow' class='comment-reply-link' href='%s' onclick='%s'>%s</a>",
1435
- get_permalink( $post->ID ) . '#' . $args['respond_id'],
1436
- $onclick,
1437
- $args['reply_text']
1438
- );
1439
- }
1440
- $formatted_link = $args['before'] . $link . $args['after'];
1441
- /**
1442
- * Filter the formatted post comments link HTML.
1443
- *
1444
- * @since 2.7.0
1445
- *
1446
- * @param string $formatted The HTML-formatted post comments link.
1447
- * @param int|WP_Post $post The post ID or WP_Post object.
1448
- */
1449
- return apply_filters( 'post_comments_link', $formatted_link, $post );
1450
- }
1451
-
1452
- /**
1453
- * Displays the HTML content for reply to post link.
1454
- *
1455
- * @since 2.7.0
1456
- *
1457
- * @see get_post_reply_link()
1458
- *
1459
- * @param array $args Optional. Override default options,
1460
- * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.
1461
- * Default current post.
1462
- * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
1463
- */
1464
- function post_reply_link($args = array(), $post = null) {
1465
- echo get_post_reply_link($args, $post);
1466
- }
1467
-
1468
- /**
1469
- * Retrieve HTML content for cancel comment reply link.
1470
- *
1471
- * @since 2.7.0
1472
- *
1473
- * @param string $text Optional. Text to display for cancel reply link. Default empty.
1474
- */
1475
- function get_cancel_comment_reply_link( $text = '' ) {
1476
- if ( empty($text) )
1477
- $text = __('Click here to cancel reply.');
1478
-
1479
- $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"';
1480
- $link = esc_html( remove_query_arg('replytocom') ) . '#respond';
1481
-
1482
- $formatted_link = '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>';
1483
- /**
1484
- * Filter the cancel comment reply link HTML.
1485
- *
1486
- * @since 2.7.0
1487
- *
1488
- * @param string $formatted_link The HTML-formatted cancel comment reply link.
1489
- * @param string $link Cancel comment reply link URL.
1490
- * @param string $text Cancel comment reply link text.
1491
- */
1492
- return apply_filters( 'cancel_comment_reply_link', $formatted_link, $link, $text );
1493
- }
1494
-
1495
- /**
1496
- * Display HTML content for cancel comment reply link.
1497
- *
1498
- * @since 2.7.0
1499
- *
1500
- * @param string $text Optional. Text to display for cancel reply link. Default empty.
1501
- */
1502
- function cancel_comment_reply_link( $text = '' ) {
1503
- echo get_cancel_comment_reply_link($text);
1504
- }
1505
-
1506
- /**
1507
- * Retrieve hidden input HTML for replying to comments.
1508
- *
1509
- * @since 3.0.0
1510
- *
1511
- * @param int $id Optional. Post ID. Default current post ID.
1512
- * @return string Hidden input HTML for replying to comments
1513
- */
1514
- function get_comment_id_fields( $id = 0 ) {
1515
- if ( empty( $id ) )
1516
- $id = get_the_ID();
1517
-
1518
- $replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;
1519
- $result = "<input type='hidden' name='comment_post_ID' value='$id' id='comment_post_ID' />\n";
1520
- $result .= "<input type='hidden' name='comment_parent' id='comment_parent' value='$replytoid' />\n";
1521
-
1522
- /**
1523
- * Filter the returned comment id fields.
1524
- *
1525
- * @since 3.0.0
1526
- *
1527
- * @param string $result The HTML-formatted hidden id field comment elements.
1528
- * @param int $id The post ID.
1529
- * @param int $replytoid The id of the comment being replied to.
1530
- */
1531
- return apply_filters( 'comment_id_fields', $result, $id, $replytoid );
1532
- }
1533
-
1534
- /**
1535
- * Output hidden input HTML for replying to comments.
1536
- *
1537
- * @since 2.7.0
1538
- *
1539
- * @param int $id Optional. Post ID. Default current post ID.
1540
- */
1541
- function comment_id_fields( $id = 0 ) {
1542
- echo get_comment_id_fields( $id );
1543
- }
1544
-
1545
- /**
1546
- * Display text based on comment reply status.
1547
- *
1548
- * Only affects users with Javascript disabled.
1549
- *
1550
- * @since 2.7.0
1551
- *
1552
- * @param string $noreplytext Optional. Text to display when not replying to a comment.
1553
- * Default false.
1554
- * @param string $replytext Optional. Text to display when replying to a comment.
1555
- * Default false. Accepts "%s" for the author of the comment
1556
- * being replied to.
1557
- * @param string $linktoparent Optional. Boolean to control making the author's name a link
1558
- * to their comment. Default true.
1559
- */
1560
- function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) {
1561
- global $comment;
1562
-
1563
- if ( false === $noreplytext ) $noreplytext = __( 'Leave a Reply' );
1564
- if ( false === $replytext ) $replytext = __( 'Leave a Reply to %s' );
1565
-
1566
- $replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;
1567
-
1568
- if ( 0 == $replytoid )
1569
- echo $noreplytext;
1570
- else {
1571
- $comment = get_comment($replytoid);
1572
- $author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author() . '</a>' : get_comment_author();
1573
- printf( $replytext, $author );
1574
- }
1575
- }
1576
-
1577
- /**
1578
- * HTML comment list class.
1579
- *
1580
- * @uses Walker
1581
- * @since 2.7.0
1582
- */
1583
- class Walker_Comment extends Walker {
1584
- /**
1585
- * What the class handles.
1586
- *
1587
- * @see Walker::$tree_type
1588
- *
1589
- * @since 2.7.0
1590
- * @var string
1591
- */
1592
- public $tree_type = 'comment';
1593
-
1594
- /**
1595
- * DB fields to use.
1596
- *
1597
- * @see Walker::$db_fields
1598
- *
1599
- * @since 2.7.0
1600
- * @var array
1601
- */
1602
- public $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
1603
-
1604
- /**
1605
- * Start the list before the elements are added.
1606
- *
1607
- * @see Walker::start_lvl()
1608
- *
1609
- * @since 2.7.0
1610
- *
1611
- * @param string $output Passed by reference. Used to append additional content.
1612
- * @param int $depth Depth of comment.
1613
- * @param array $args Uses 'style' argument for type of HTML list.
1614
- */
1615
- public function start_lvl( &$output, $depth = 0, $args = array() ) {
1616
- $GLOBALS['comment_depth'] = $depth + 1;
1617
-
1618
- switch ( $args['style'] ) {
1619
- case 'div':
1620
- break;
1621
- case 'ol':
1622
- $output .= '<ol class="children">' . "\n";
1623
- break;
1624
- case 'ul':
1625
- default:
1626
- $output .= '<ul class="children">' . "\n";
1627
- break;
1628
- }
1629
- }
1630
-
1631
- /**
1632
- * End the list of items after the elements are added.
1633
- *
1634
- * @see Walker::end_lvl()
1635
- *
1636
- * @since 2.7.0
1637
- *
1638
- * @param string $output Passed by reference. Used to append additional content.
1639
- * @param int $depth Depth of comment.
1640
- * @param array $args Will only append content if style argument value is 'ol' or 'ul'.
1641
- */
1642
- public function end_lvl( &$output, $depth = 0, $args = array() ) {
1643
- $GLOBALS['comment_depth'] = $depth + 1;
1644
-
1645
- switch ( $args['style'] ) {
1646
- case 'div':
1647
- break;
1648
- case 'ol':
1649
- $output .= "</ol><!-- .children -->\n";
1650
- break;
1651
- case 'ul':
1652
- default:
1653
- $output .= "</ul><!-- .children -->\n";
1654
- break;
1655
- }
1656
- }
1657
-
1658
- /**
1659
- * Traverse elements to create list from elements.
1660
- *
1661
- * This function is designed to enhance Walker::display_element() to
1662
- * display children of higher nesting levels than selected inline on
1663
- * the highest depth level displayed. This prevents them being orphaned
1664
- * at the end of the comment list.
1665
- *
1666
- * Example: max_depth = 2, with 5 levels of nested content.
1667
- * 1
1668
- * 1.1
1669
- * 1.1.1
1670
- * 1.1.1.1
1671
- * 1.1.1.1.1
1672
- * 1.1.2
1673
- * 1.1.2.1
1674
- * 2
1675
- * 2.2
1676
- *
1677
- * @see Walker::display_element()
1678
- * @see wp_list_comments()
1679
- *
1680
- * @since 2.7.0
1681
- *
1682
- * @param object $element Data object.
1683
- * @param array $children_elements List of elements to continue traversing.
1684
- * @param int $max_depth Max depth to traverse.
1685
- * @param int $depth Depth of current element.
1686
- * @param array $args An array of arguments.
1687
- * @param string $output Passed by reference. Used to append additional content.
1688
- * @return null Null on failure with no changes to parameters.
1689
- */
1690
- public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
1691
-
1692
- if ( !$element )
1693
- return;
1694
-
1695
- $id_field = $this->db_fields['id'];
1696
- $id = $element->$id_field;
1697
-
1698
- parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
1699
-
1700
- // If we're at the max depth, and the current element still has children, loop over those and display them at this level
1701
- // This is to prevent them being orphaned to the end of the list.
1702
- if ( $max_depth <= $depth + 1 && isset( $children_elements[$id]) ) {
1703
- foreach ( $children_elements[ $id ] as $child )
1704
- $this->display_element( $child, $children_elements, $max_depth, $depth, $args, $output );
1705
-
1706
- unset( $children_elements[ $id ] );
1707
- }
1708
-
1709
- }
1710
-
1711
- /**
1712
- * Start the element output.
1713
- *
1714
- * @since 2.7.0
1715
- *
1716
- * @see Walker::start_el()
1717
- * @see wp_list_comments()
1718
- *
1719
- * @param string $output Passed by reference. Used to append additional content.
1720
- * @param object $comment Comment data object.
1721
- * @param int $depth Depth of comment in reference to parents.
1722
- * @param array $args An array of arguments.
1723
- */
1724
- public function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
1725
- $depth++;
1726
- $GLOBALS['comment_depth'] = $depth;
1727
- $GLOBALS['comment'] = $comment;
1728
-
1729
- if ( !empty( $args['callback'] ) ) {
1730
- ob_start();
1731
- call_user_func( $args['callback'], $comment, $args, $depth );
1732
- $output .= ob_get_clean();
1733
- return;
1734
- }
1735
-
1736
- if ( ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) && $args['short_ping'] ) {
1737
- ob_start();
1738
- $this->ping( $comment, $depth, $args );
1739
- $output .= ob_get_clean();
1740
- } elseif ( 'html5' === $args['format'] ) {
1741
- ob_start();
1742
- $this->html5_comment( $comment, $depth, $args );
1743
- $output .= ob_get_clean();
1744
- } else {
1745
- ob_start();
1746
- $this->comment( $comment, $depth, $args );
1747
- $output .= ob_get_clean();
1748
- }
1749
- }
1750
-
1751
- /**
1752
- * Ends the element output, if needed.
1753
- *
1754
- * @since 2.7.0
1755
- *
1756
- * @see Walker::end_el()
1757
- * @see wp_list_comments()
1758
- *
1759
- * @param string $output Passed by reference. Used to append additional content.
1760
- * @param object $comment The comment object. Default current comment.
1761
- * @param int $depth Depth of comment.
1762
- * @param array $args An array of arguments.
1763
- */
1764
- public function end_el( &$output, $comment, $depth = 0, $args = array() ) {
1765
- if ( !empty( $args['end-callback'] ) ) {
1766
- ob_start();
1767
- call_user_func( $args['end-callback'], $comment, $args, $depth );
1768
- $output .= ob_get_clean();
1769
- return;
1770
- }
1771
- if ( 'div' == $args['style'] )
1772
- $output .= "</div><!-- #comment-## -->\n";
1773
- else
1774
- $output .= "</li><!-- #comment-## -->\n";
1775
- }
1776
-
1777
- /**
1778
- * Output a pingback comment.
1779
- *
1780
- * @access protected
1781
- * @since 3.6.0
1782
- *
1783
- * @see wp_list_comments()
1784
- *
1785
- * @param object $comment The comment object.
1786
- * @param int $depth Depth of comment.
1787
- * @param array $args An array of arguments.
1788
- */
1789
- protected function ping( $comment, $depth, $args ) {
1790
- $tag = ( 'div' == $args['style'] ) ? 'div' : 'li';
1791
- ?>
1792
- <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>
1793
- <div class="comment-body">
1794
- <?php _e( 'Pingback:' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
1795
- </div>
1796
- <?php
1797
- }
1798
-
1799
- /**
1800
- * Output a single comment.
1801
- *
1802
- * @access protected
1803
- * @since 3.6.0
1804
- *
1805
- * @see wp_list_comments()
1806
- *
1807
- * @param object $comment Comment to display.
1808
- * @param int $depth Depth of comment.
1809
- * @param array $args An array of arguments.
1810
- */
1811
- protected function comment( $comment, $depth, $args ) {
1812
- if ( 'div' == $args['style'] ) {
1813
- $tag = 'div';
1814
- $add_below = 'comment';
1815
- } else {
1816
- $tag = 'li';
1817
- $add_below = 'div-comment';
1818
- }
1819
- ?>
1820
- <<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '' ); ?> id="comment-<?php comment_ID(); ?>">
1821
- <?php if ( 'div' != $args['style'] ) : ?>
1822
- <div id="div-comment-<?php comment_ID(); ?>" class="comment-body">
1823
- <?php endif; ?>
1824
- <div class="comment-author vcard">
1825
- <?php if ( 0 != $args['avatar_size'] ) echo get_avatar( $comment, $args['avatar_size'] ); ?>
1826
- <?php printf( __( '<cite class="fn">%s</cite> <span class="says">says:</span>' ), get_comment_author_link() ); ?>
1827
- </div>
1828
- <?php if ( '0' == $comment->comment_approved ) : ?>
1829
- <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ) ?></em>
1830
- <br />
1831
- <?php endif; ?>
1832
-
1833
- <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID, $args ) ); ?>">
1834
- <?php
1835
- /* translators: 1: date, 2: time */
1836
- printf( __( '%1$s at %2$s' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)' ), '&nbsp;&nbsp;', '' );
1837
- ?>
1838
- </div>
1839
-
1840
- <?php comment_text( get_comment_id(), array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
1841
-
1842
- <div class="reply">
1843
- <?php comment_reply_link( array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
1844
- </div>
1845
- <?php if ( 'div' != $args['style'] ) : ?>
1846
- </div>
1847
- <?php endif; ?>
1848
- <?php
1849
- }
1850
-
1851
- /**
1852
- * Output a comment in the HTML5 format.
1853
- *
1854
- * @access protected
1855
- * @since 3.6.0
1856
- *
1857
- * @see wp_list_comments()
1858
- *
1859
- * @param object $comment Comment to display.
1860
- * @param int $depth Depth of comment.
1861
- * @param array $args An array of arguments.
1862
- */
1863
- protected function html5_comment( $comment, $depth, $args ) {
1864
- $tag = ( 'div' === $args['style'] ) ? 'div' : 'li';
1865
- ?>
1866
- <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '' ); ?>>
1867
- <article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
1868
- <footer class="comment-meta">
1869
- <div class="comment-author vcard">
1870
- <?php if ( 0 != $args['avatar_size'] ) echo get_avatar( $comment, $args['avatar_size'] ); ?>
1871
- <?php printf( __( '%s <span class="says">says:</span>' ), sprintf( '<b class="fn">%s</b>', get_comment_author_link() ) ); ?>
1872
- </div><!-- .comment-author -->
1873
-
1874
- <div class="comment-metadata">
1875
- <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID, $args ) ); ?>">
1876
- <time datetime="<?php comment_time( 'c' ); ?>">
1877
- <?php printf( _x( '%1$s at %2$s', '1: date, 2: time' ), get_comment_date(), get_comment_time() ); ?>
1878
- </time>
1879
- </a>
1880
- <?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
1881
- </div><!-- .comment-metadata -->
1882
-
1883
- <?php if ( '0' == $comment->comment_approved ) : ?>
1884
- <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></p>
1885
- <?php endif; ?>
1886
- </footer><!-- .comment-meta -->
1887
-
1888
- <div class="comment-content">
1889
- <?php comment_text(); ?>
1890
- </div><!-- .comment-content -->
1891
-
1892
- <div class="reply">
1893
- <?php comment_reply_link( array_merge( $args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
1894
- </div><!-- .reply -->
1895
- </article><!-- .comment-body -->
1896
- <?php
1897
- }
1898
- }
1899
-
1900
- /**
1901
- * List comments.
1902
- *
1903
- * Used in the comments.php template to list comments for a particular post.
1904
- *
1905
- * @since 2.7.0
1906
- *
1907
- * @see WP_Query->comments
1908
- *
1909
- * @param string|array $args {
1910
- * Optional. Formatting options.
1911
- *
1912
- * @type object $walker Instance of a Walker class to list comments. Default null.
1913
- * @type int $max_depth The maximum comments depth. Default empty.
1914
- * @type string $style The style of list ordering. Default 'ul'. Accepts 'ul', 'ol'.
1915
- * @type string $callback Callback function to use. Default null.
1916
- * @type string $end-callback Callback function to use at the end. Default null.
1917
- * @type string $type Type of comments to list.
1918
- * Default 'all'. Accepts 'all', 'comment', 'pingback', 'trackback', 'pings'.
1919
- * @type int $page Page ID to list comments for. Default empty.
1920
- * @type int $per_page Number of comments to list per page. Default empty.
1921
- * @type int $avatar_size Height and width dimensions of the avatar size. Default 32.
1922
- * @type string $reverse_top_level Ordering of the listed comments. Default null. Accepts 'desc', 'asc'.
1923
- * @type bool $reverse_children Whether to reverse child comments in the list. Default null.
1924
- * @type string $format How to format the comments list.
1925
- * Default 'html5' if the theme supports it. Accepts 'html5', 'xhtml'.
1926
- * @type bool $short_ping Whether to output short pings. Default false.
1927
- * @type bool $echo Whether to echo the output or return it. Default true.
1928
- * }
1929
- * @param array $comments Optional. Array of comment objects.
1930
- */
1931
- function wp_list_comments( $args = array(), $comments = null ) {
1932
- global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;
1933
-
1934
- $in_comment_loop = true;
1935
-
1936
- $comment_alt = $comment_thread_alt = 0;
1937
- $comment_depth = 1;
1938
-
1939
- $defaults = array(
1940
- 'walker' => null,
1941
- 'max_depth' => '',
1942
- 'style' => 'ul',
1943
- 'callback' => null,
1944
- 'end-callback' => null,
1945
- 'type' => 'all',
1946
- 'page' => '',
1947
- 'per_page' => '',
1948
- 'avatar_size' => 32,
1949
- 'reverse_top_level' => null,
1950
- 'reverse_children' => '',
1951
- 'format' => current_theme_supports( 'html5', 'comment-list' ) ? 'html5' : 'xhtml',
1952
- 'short_ping' => false,
1953
- 'echo' => true,
1954
- );
1955
-
1956
- $r = wp_parse_args( $args, $defaults );
1957
-
1958
- /**
1959
- * Filter the arguments used in retrieving the comment list.
1960
- *
1961
- * @since 4.0.0
1962
- *
1963
- * @see wp_list_comments()
1964
- *
1965
- * @param array $r An array of arguments for displaying comments.
1966
- */
1967
- $r = apply_filters( 'wp_list_comments_args', $r );
1968
-
1969
- // Figure out what comments we'll be looping through ($_comments)
1970
- if ( null !== $comments ) {
1971
- $comments = (array) $comments;
1972
- if ( empty($comments) )
1973
- return;
1974
- if ( 'all' != $r['type'] ) {
1975
- $comments_by_type = separate_comments($comments);
1976
- if ( empty($comments_by_type[$r['type']]) )
1977
- return;
1978
- $_comments = $comments_by_type[$r['type']];
1979
- } else {
1980
- $_comments = $comments;
1981
- }
1982
- } else {
1983
- if ( empty($wp_query->comments) )
1984
- return;
1985
- if ( 'all' != $r['type'] ) {
1986
- if ( empty($wp_query->comments_by_type) )
1987
- $wp_query->comments_by_type = separate_comments($wp_query->comments);
1988
- if ( empty($wp_query->comments_by_type[$r['type']]) )
1989
- return;
1990
- $_comments = $wp_query->comments_by_type[$r['type']];
1991
- } else {
1992
- $_comments = $wp_query->comments;
1993
- }
1994
- }
1995
-
1996
- if ( '' === $r['per_page'] && get_option('page_comments') )
1997
- $r['per_page'] = get_query_var('comments_per_page');
1998
-
1999
- if ( empty($r['per_page']) ) {
2000
- $r['per_page'] = 0;
2001
- $r['page'] = 0;
2002
- }
2003
-
2004
- if ( '' === $r['max_depth'] ) {
2005
- if ( get_option('thread_comments') )
2006
- $r['max_depth'] = get_option('thread_comments_depth');
2007
- else
2008
- $r['max_depth'] = -1;
2009
- }
2010
-
2011
- if ( '' === $r['page'] ) {
2012
- if ( empty($overridden_cpage) ) {
2013
- $r['page'] = get_query_var('cpage');
2014
- } else {
2015
- $threaded = ( -1 != $r['max_depth'] );
2016
- $r['page'] = ( 'newest' == get_option('default_comments_page') ) ? get_comment_pages_count($_comments, $r['per_page'], $threaded) : 1;
2017
- set_query_var( 'cpage', $r['page'] );
2018
- }
2019
- }
2020
- // Validation check
2021
- $r['page'] = intval($r['page']);
2022
- if ( 0 == $r['page'] && 0 != $r['per_page'] )
2023
- $r['page'] = 1;
2024
-
2025
- if ( null === $r['reverse_top_level'] )
2026
- $r['reverse_top_level'] = ( 'desc' == get_option('comment_order') );
2027
-
2028
- if ( empty( $r['walker'] ) ) {
2029
- $walker = new Walker_Comment;
2030
- } else {
2031
- $walker = $r['walker'];
2032
- }
2033
-
2034
- $output = $walker->paged_walk( $_comments, $r['max_depth'], $r['page'], $r['per_page'], $r );
2035
- $wp_query->max_num_comment_pages = $walker->max_pages;
2036
-
2037
- $in_comment_loop = false;
2038
-
2039
- if ( $r['echo'] ) {
2040
- echo $output;
2041
- } else {
2042
- return $output;
2043
- }
2044
- }
2045
-
2046
- /**
2047
- * Output a complete commenting form for use within a template.
2048
- *
2049
- * Most strings and form fields may be controlled through the $args array passed
2050
- * into the function, while you may also choose to use the comment_form_default_fields
2051
- * filter to modify the array of default fields if you'd just like to add a new
2052
- * one or remove a single field. All fields are also individually passed through
2053
- * a filter of the form comment_form_field_$name where $name is the key used
2054
- * in the array of fields.
2055
- *
2056
- * @since 3.0.0
2057
- *
2058
- * @param array $args {
2059
- * Optional. Default arguments and form fields to override.
2060
- *
2061
- * @type array $fields {
2062
- * Default comment fields, filterable by default via the 'comment_form_default_fields' hook.
2063
- *
2064
- * @type string $author Comment author field HTML.
2065
- * @type string $email Comment author email field HTML.
2066
- * @type string $url Comment author URL field HTML.
2067
- * }
2068
- * @type string $comment_field The comment textarea field HTML.
2069
- * @type string $must_log_in HTML element for a 'must be logged in to comment' message.
2070
- * @type string $logged_in_as HTML element for a 'logged in as <user>' message.
2071
- * @type string $comment_notes_before HTML element for a message displayed before the comment form.
2072
- * Default 'Your email address will not be published.'.
2073
- * @type string $comment_notes_after HTML element for a message displayed after the comment form.
2074
- * Default 'You may use these HTML tags and attributes ...'.
2075
- * @type string $id_form The comment form element id attribute. Default 'commentform'.
2076
- * @type string $id_submit The comment submit element id attribute. Default 'submit'.
2077
- * @type string $class_submit The comment submit element class attribute. Default 'submit'.
2078
- * @type string $name_submit The comment submit element name attribute. Default 'submit'.
2079
- * @type string $title_reply The translatable 'reply' button label. Default 'Leave a Reply'.
2080
- * @type string $title_reply_to The translatable 'reply-to' button label. Default 'Leave a Reply to %s',
2081
- * where %s is the author of the comment being replied to.
2082
- * @type string $cancel_reply_link The translatable 'cancel reply' button label. Default 'Cancel reply'.
2083
- * @type string $label_submit The translatable 'submit' button label. Default 'Post a comment'.
2084
- * @type string $format The comment form format. Default 'xhtml'. Accepts 'xhtml', 'html5'.
2085
- * }
2086
- * @param int|WP_Post $post_id Post ID or WP_Post object to generate the form for. Default current post.
2087
- */
2088
- function comment_form( $args = array(), $post_id = null ) {
2089
- if ( null === $post_id )
2090
- $post_id = get_the_ID();
2091
-
2092
- $commenter = wp_get_current_commenter();
2093
- $user = wp_get_current_user();
2094
- $user_identity = $user->exists() ? $user->display_name : '';
2095
-
2096
- $args = wp_parse_args( $args );
2097
- if ( ! isset( $args['format'] ) )
2098
- $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml';
2099
-
2100
- $req = get_option( 'require_name_email' );
2101
- $aria_req = ( $req ? " aria-required='true'" : '' );
2102
- $html5 = 'html5' === $args['format'];
2103
- $fields = array(
2104
- 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
2105
- '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
2106
- 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
2107
- '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" aria-describedby="email-notes"' . $aria_req . ' /></p>',
2108
- 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' .
2109
- '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
2110
- );
2111
-
2112
- $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
2113
-
2114
- /**
2115
- * Filter the default comment form fields.
2116
- *
2117
- * @since 3.0.0
2118
- *
2119
- * @param array $fields The default comment fields.
2120
- */
2121
- $fields = apply_filters( 'comment_form_default_fields', $fields );
2122
- $defaults = array(
2123
- 'fields' => $fields,
2124
- 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-describedby="form-allowed-tags" aria-required="true"></textarea></p>',
2125
- /** This filter is documented in wp-includes/link-template.php */
2126
- 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
2127
- /** This filter is documented in wp-includes/link-template.php */
2128
- 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
2129
- 'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
2130
- 'comment_notes_after' => '<p class="form-allowed-tags" id="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
2131
- 'id_form' => 'commentform',
2132
- 'id_submit' => 'submit',
2133
- 'class_submit' => 'submit',
2134
- 'name_submit' => 'submit',
2135
- 'title_reply' => __( 'Leave a Reply' ),
2136
- 'title_reply_to' => __( 'Leave a Reply to %s' ),
2137
- 'cancel_reply_link' => __( 'Cancel reply' ),
2138
- 'label_submit' => __( 'Post Comment' ),
2139
- 'format' => 'xhtml',
2140
- );
2141
-
2142
- /**
2143
- * Filter the comment form default arguments.
2144
- *
2145
- * Use 'comment_form_default_fields' to filter the comment fields.
2146
- *
2147
- * @since 3.0.0
2148
- *
2149
- * @param array $defaults The default comment form arguments.
2150
- */
2151
- $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
2152
-
2153
- ?>
2154
- <?php if ( comments_open( $post_id ) ) : ?>
2155
- <?php
2156
- /**
2157
- * Fires before the comment form.
2158
- *
2159
- * @since 3.0.0
2160
- */
2161
- do_action( 'comment_form_before' );
2162
- ?>
2163
- <div id="respond" class="comment-respond">
2164
- <h3 id="reply-title" class="comment-reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>
2165
- <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) : ?>
2166
- <?php echo $args['must_log_in']; ?>
2167
- <?php
2168
- /**
2169
- * Fires after the HTML-formatted 'must log in after' message in the comment form.
2170
- *
2171
- * @since 3.0.0
2172
- */
2173
- do_action( 'comment_form_must_log_in_after' );
2174
- ?>
2175
- <?php else : ?>
2176
- <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>>
2177
- <?php
2178
- /**
2179
- * Fires at the top of the comment form, inside the <form> tag.
2180
- *
2181
- * @since 3.0.0
2182
- */
2183
- do_action( 'comment_form_top' );
2184
- ?>
2185
- <?php if ( is_user_logged_in() ) : ?>
2186
- <?php
2187
- /**
2188
- * Filter the 'logged in' message for the comment form for display.
2189
- *
2190
- * @since 3.0.0
2191
- *
2192
- * @param string $args_logged_in The logged-in-as HTML-formatted message.
2193
- * @param array $commenter An array containing the comment author's
2194
- * username, email, and URL.
2195
- * @param string $user_identity If the commenter is a registered user,
2196
- * the display name, blank otherwise.
2197
- */
2198
- echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity );
2199
- ?>
2200
- <?php
2201
- /**
2202
- * Fires after the is_user_logged_in() check in the comment form.
2203
- *
2204
- * @since 3.0.0
2205
- *
2206
- * @param array $commenter An array containing the comment author's
2207
- * username, email, and URL.
2208
- * @param string $user_identity If the commenter is a registered user,
2209
- * the display name, blank otherwise.
2210
- */
2211
- do_action( 'comment_form_logged_in_after', $commenter, $user_identity );
2212
- ?>
2213
- <?php else : ?>
2214
- <?php echo $args['comment_notes_before']; ?>
2215
- <?php
2216
- /**
2217
- * Fires before the comment fields in the comment form.
2218
- *
2219
- * @since 3.0.0
2220
- */
2221
- do_action( 'comment_form_before_fields' );
2222
- foreach ( (array) $args['fields'] as $name => $field ) {
2223
- /**
2224
- * Filter a comment form field for display.
2225
- *
2226
- * The dynamic portion of the filter hook, $name, refers to the name
2227
- * of the comment form field. Such as 'author', 'email', or 'url'.
2228
- *
2229
- * @since 3.0.0
2230
- *
2231
- * @param string $field The HTML-formatted output of the comment form field.
2232
- */
2233
- echo apply_filters( "comment_form_field_{$name}", $field ) . "\n";
2234
- }
2235
- /**
2236
- * Fires after the comment fields in the comment form.
2237
- *
2238
- * @since 3.0.0
2239
- */
2240
- do_action( 'comment_form_after_fields' );
2241
- ?>
2242
- <?php endif; ?>
2243
- <?php
2244
- /**
2245
- * Filter the content of the comment textarea field for display.
2246
- *
2247
- * @since 3.0.0
2248
- *
2249
- * @param string $args_comment_field The content of the comment textarea field.
2250
- */
2251
- echo apply_filters( 'comment_form_field_comment', $args['comment_field'] );
2252
- ?>
2253
- <?php echo $args['comment_notes_after']; ?>
2254
- <p class="form-submit">
2255
- <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" class="<?php echo esc_attr( $args['class_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
2256
- <?php comment_id_fields( $post_id ); ?>
2257
- </p>
2258
- <?php
2259
- /**
2260
- * Fires at the bottom of the comment form, inside the closing </form> tag.
2261
- *
2262
- * @since 1.5.0
2263
- *
2264
- * @param int $post_id The post ID.
2265
- */
2266
- do_action( 'comment_form', $post_id );
2267
- ?>
2268
- </form>
2269
- <?php endif; ?>
2270
- </div><!-- #respond -->
2271
- <?php
2272
- /**
2273
- * Fires after the comment form.
2274
- *
2275
- * @since 3.0.0
2276
- */
2277
- do_action( 'comment_form_after' );
2278
- else :
2279
- /**
2280
- * Fires after the comment form if comments are closed.
2281
- *
2282
- * @since 3.0.0
2283
- */
2284
- do_action( 'comment_form_comments_closed' );
2285
- endif;
2286
- }