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,1899 +0,0 @@
1
- <?php
2
- /**
3
- * WordPress Plugin Administration API
4
- *
5
- * @package WordPress
6
- * @subpackage Administration
7
- */
8
-
9
- /**
10
- * Parse the plugin contents to retrieve plugin's metadata.
11
- *
12
- * The metadata of the plugin's data searches for the following in the plugin's
13
- * header. All plugin data must be on its own line. For plugin description, it
14
- * must not have any newlines or only parts of the description will be displayed
15
- * and the same goes for the plugin data. The below is formatted for printing.
16
- *
17
- * <code>
18
- * /*
19
- * Plugin Name: Name of Plugin
20
- * Plugin URI: Link to plugin information
21
- * Description: Plugin Description
22
- * Author: Plugin author's name
23
- * Author URI: Link to the author's web site
24
- * Version: Must be set in the plugin for WordPress 2.3+
25
- * Text Domain: Optional. Unique identifier, should be same as the one used in
26
- * plugin_text_domain()
27
- * Domain Path: Optional. Only useful if the translations are located in a
28
- * folder above the plugin's base path. For example, if .mo files are
29
- * located in the locale folder then Domain Path will be "/locale/" and
30
- * must have the first slash. Defaults to the base folder the plugin is
31
- * located in.
32
- * Network: Optional. Specify "Network: true" to require that a plugin is activated
33
- * across all sites in an installation. This will prevent a plugin from being
34
- * activated on a single site when Multisite is enabled.
35
- * * / # Remove the space to close comment
36
- * </code>
37
- *
38
- * Plugin data returned array contains the following:
39
- * 'Name' - Name of the plugin, must be unique.
40
- * 'Title' - Title of the plugin and the link to the plugin's web site.
41
- * 'Description' - Description of what the plugin does and/or notes
42
- * from the author.
43
- * 'Author' - The author's name
44
- * 'AuthorURI' - The authors web site address.
45
- * 'Version' - The plugin version number.
46
- * 'PluginURI' - Plugin web site address.
47
- * 'TextDomain' - Plugin's text domain for localization.
48
- * 'DomainPath' - Plugin's relative directory path to .mo files.
49
- * 'Network' - Boolean. Whether the plugin can only be activated network wide.
50
- *
51
- * Some users have issues with opening large files and manipulating the contents
52
- * for want is usually the first 1kiB or 2kiB. This function stops pulling in
53
- * the plugin contents when it has all of the required plugin data.
54
- *
55
- * The first 8kiB of the file will be pulled in and if the plugin data is not
56
- * within that first 8kiB, then the plugin author should correct their plugin
57
- * and move the plugin data headers to the top.
58
- *
59
- * The plugin file is assumed to have permissions to allow for scripts to read
60
- * the file. This is not checked however and the file is only opened for
61
- * reading.
62
- *
63
- * @link https://core.trac.wordpress.org/ticket/5651 Previous Optimizations.
64
- * @link https://core.trac.wordpress.org/ticket/7372 Further and better Optimizations.
65
- * @since 1.5.0
66
- *
67
- * @param string $plugin_file Path to the plugin file
68
- * @param bool $markup Optional. If the returned data should have HTML markup applied. Defaults to true.
69
- * @param bool $translate Optional. If the returned data should be translated. Defaults to true.
70
- * @return array See above for description.
71
- */
72
- function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {
73
-
74
- $default_headers = array(
75
- 'Name' => 'Plugin Name',
76
- 'PluginURI' => 'Plugin URI',
77
- 'Version' => 'Version',
78
- 'Description' => 'Description',
79
- 'Author' => 'Author',
80
- 'AuthorURI' => 'Author URI',
81
- 'TextDomain' => 'Text Domain',
82
- 'DomainPath' => 'Domain Path',
83
- 'Network' => 'Network',
84
- // Site Wide Only is deprecated in favor of Network.
85
- '_sitewide' => 'Site Wide Only',
86
- );
87
-
88
- $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' );
89
-
90
- // Site Wide Only is the old header for Network
91
- if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) {
92
- _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The <code>%1$s</code> plugin header is deprecated. Use <code>%2$s</code> instead.' ), 'Site Wide Only: true', 'Network: true' ) );
93
- $plugin_data['Network'] = $plugin_data['_sitewide'];
94
- }
95
- $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) );
96
- unset( $plugin_data['_sitewide'] );
97
-
98
- if ( $markup || $translate ) {
99
- $plugin_data = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup, $translate );
100
- } else {
101
- $plugin_data['Title'] = $plugin_data['Name'];
102
- $plugin_data['AuthorName'] = $plugin_data['Author'];
103
- }
104
-
105
- return $plugin_data;
106
- }
107
-
108
- /**
109
- * Sanitizes plugin data, optionally adds markup, optionally translates.
110
- *
111
- * @since 2.7.0
112
- * @access private
113
- * @see get_plugin_data()
114
- */
115
- function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) {
116
-
117
- // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path
118
- $plugin_file = plugin_basename( $plugin_file );
119
-
120
- // Translate fields
121
- if ( $translate ) {
122
- if ( $textdomain = $plugin_data['TextDomain'] ) {
123
- if ( $plugin_data['DomainPath'] )
124
- load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) . $plugin_data['DomainPath'] );
125
- else
126
- load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) );
127
- } elseif ( in_array( basename( $plugin_file ), array( 'hello.php', 'akismet.php' ) ) ) {
128
- $textdomain = 'default';
129
- }
130
- if ( $textdomain ) {
131
- foreach ( array( 'Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version' ) as $field )
132
- $plugin_data[ $field ] = translate( $plugin_data[ $field ], $textdomain );
133
- }
134
- }
135
-
136
- // Sanitize fields
137
- $allowed_tags = $allowed_tags_in_links = array(
138
- 'abbr' => array( 'title' => true ),
139
- 'acronym' => array( 'title' => true ),
140
- 'code' => true,
141
- 'em' => true,
142
- 'strong' => true,
143
- );
144
- $allowed_tags['a'] = array( 'href' => true, 'title' => true );
145
-
146
- // Name is marked up inside <a> tags. Don't allow these.
147
- // Author is too, but some plugins have used <a> here (omitting Author URI).
148
- $plugin_data['Name'] = wp_kses( $plugin_data['Name'], $allowed_tags_in_links );
149
- $plugin_data['Author'] = wp_kses( $plugin_data['Author'], $allowed_tags );
150
-
151
- $plugin_data['Description'] = wp_kses( $plugin_data['Description'], $allowed_tags );
152
- $plugin_data['Version'] = wp_kses( $plugin_data['Version'], $allowed_tags );
153
-
154
- $plugin_data['PluginURI'] = esc_url( $plugin_data['PluginURI'] );
155
- $plugin_data['AuthorURI'] = esc_url( $plugin_data['AuthorURI'] );
156
-
157
- $plugin_data['Title'] = $plugin_data['Name'];
158
- $plugin_data['AuthorName'] = $plugin_data['Author'];
159
-
160
- // Apply markup
161
- if ( $markup ) {
162
- if ( $plugin_data['PluginURI'] && $plugin_data['Name'] )
163
- $plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '">' . $plugin_data['Name'] . '</a>';
164
-
165
- if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] )
166
- $plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
167
-
168
- $plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
169
-
170
- if ( $plugin_data['Author'] )
171
- $plugin_data['Description'] .= ' <cite>' . sprintf( __('By %s.'), $plugin_data['Author'] ) . '</cite>';
172
- }
173
-
174
- return $plugin_data;
175
- }
176
-
177
- /**
178
- * Get a list of a plugin's files.
179
- *
180
- * @since 2.8.0
181
- *
182
- * @param string $plugin Plugin ID
183
- * @return array List of files relative to the plugin root.
184
- */
185
- function get_plugin_files($plugin) {
186
- $plugin_file = WP_PLUGIN_DIR . '/' . $plugin;
187
- $dir = dirname($plugin_file);
188
- $plugin_files = array($plugin);
189
- if ( is_dir($dir) && $dir != WP_PLUGIN_DIR ) {
190
- $plugins_dir = @ opendir( $dir );
191
- if ( $plugins_dir ) {
192
- while (($file = readdir( $plugins_dir ) ) !== false ) {
193
- if ( substr($file, 0, 1) == '.' )
194
- continue;
195
- if ( is_dir( $dir . '/' . $file ) ) {
196
- $plugins_subdir = @ opendir( $dir . '/' . $file );
197
- if ( $plugins_subdir ) {
198
- while (($subfile = readdir( $plugins_subdir ) ) !== false ) {
199
- if ( substr($subfile, 0, 1) == '.' )
200
- continue;
201
- $plugin_files[] = plugin_basename("$dir/$file/$subfile");
202
- }
203
- @closedir( $plugins_subdir );
204
- }
205
- } else {
206
- if ( plugin_basename("$dir/$file") != $plugin )
207
- $plugin_files[] = plugin_basename("$dir/$file");
208
- }
209
- }
210
- @closedir( $plugins_dir );
211
- }
212
- }
213
-
214
- return $plugin_files;
215
- }
216
-
217
- /**
218
- * Check the plugins directory and retrieve all plugin files with plugin data.
219
- *
220
- * WordPress only supports plugin files in the base plugins directory
221
- * (wp-content/plugins) and in one directory above the plugins directory
222
- * (wp-content/plugins/my-plugin). The file it looks for has the plugin data and
223
- * must be found in those two locations. It is recommended that do keep your
224
- * plugin files in directories.
225
- *
226
- * The file with the plugin data is the file that will be included and therefore
227
- * needs to have the main execution for the plugin. This does not mean
228
- * everything must be contained in the file and it is recommended that the file
229
- * be split for maintainability. Keep everything in one file for extreme
230
- * optimization purposes.
231
- *
232
- * @since 1.5.0
233
- *
234
- * @param string $plugin_folder Optional. Relative path to single plugin folder.
235
- * @return array Key is the plugin file path and the value is an array of the plugin data.
236
- */
237
- function get_plugins($plugin_folder = '') {
238
-
239
- if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
240
- $cache_plugins = array();
241
-
242
- if ( isset($cache_plugins[ $plugin_folder ]) )
243
- return $cache_plugins[ $plugin_folder ];
244
-
245
- $wp_plugins = array ();
246
- $plugin_root = WP_PLUGIN_DIR;
247
- if ( !empty($plugin_folder) )
248
- $plugin_root .= $plugin_folder;
249
-
250
- // Files in wp-content/plugins directory
251
- $plugins_dir = @ opendir( $plugin_root);
252
- $plugin_files = array();
253
- if ( $plugins_dir ) {
254
- while (($file = readdir( $plugins_dir ) ) !== false ) {
255
- if ( substr($file, 0, 1) == '.' )
256
- continue;
257
- if ( is_dir( $plugin_root.'/'.$file ) ) {
258
- $plugins_subdir = @ opendir( $plugin_root.'/'.$file );
259
- if ( $plugins_subdir ) {
260
- while (($subfile = readdir( $plugins_subdir ) ) !== false ) {
261
- if ( substr($subfile, 0, 1) == '.' )
262
- continue;
263
- if ( substr($subfile, -4) == '.php' )
264
- $plugin_files[] = "$file/$subfile";
265
- }
266
- closedir( $plugins_subdir );
267
- }
268
- } else {
269
- if ( substr($file, -4) == '.php' )
270
- $plugin_files[] = $file;
271
- }
272
- }
273
- closedir( $plugins_dir );
274
- }
275
-
276
- if ( empty($plugin_files) )
277
- return $wp_plugins;
278
-
279
- foreach ( $plugin_files as $plugin_file ) {
280
- if ( !is_readable( "$plugin_root/$plugin_file" ) )
281
- continue;
282
-
283
- $plugin_data = get_plugin_data( "$plugin_root/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached.
284
-
285
- if ( empty ( $plugin_data['Name'] ) )
286
- continue;
287
-
288
- $wp_plugins[plugin_basename( $plugin_file )] = $plugin_data;
289
- }
290
-
291
- uasort( $wp_plugins, '_sort_uname_callback' );
292
-
293
- $cache_plugins[ $plugin_folder ] = $wp_plugins;
294
- wp_cache_set('plugins', $cache_plugins, 'plugins');
295
-
296
- return $wp_plugins;
297
- }
298
-
299
- /**
300
- * Check the mu-plugins directory and retrieve all mu-plugin files with any plugin data.
301
- *
302
- * WordPress only includes mu-plugin files in the base mu-plugins directory (wp-content/mu-plugins).
303
- *
304
- * @since 3.0.0
305
- * @return array Key is the mu-plugin file path and the value is an array of the mu-plugin data.
306
- */
307
- function get_mu_plugins() {
308
- $wp_plugins = array();
309
- // Files in wp-content/mu-plugins directory
310
- $plugin_files = array();
311
-
312
- if ( ! is_dir( WPMU_PLUGIN_DIR ) )
313
- return $wp_plugins;
314
- if ( $plugins_dir = @ opendir( WPMU_PLUGIN_DIR ) ) {
315
- while ( ( $file = readdir( $plugins_dir ) ) !== false ) {
316
- if ( substr( $file, -4 ) == '.php' )
317
- $plugin_files[] = $file;
318
- }
319
- } else {
320
- return $wp_plugins;
321
- }
322
-
323
- @closedir( $plugins_dir );
324
-
325
- if ( empty($plugin_files) )
326
- return $wp_plugins;
327
-
328
- foreach ( $plugin_files as $plugin_file ) {
329
- if ( !is_readable( WPMU_PLUGIN_DIR . "/$plugin_file" ) )
330
- continue;
331
-
332
- $plugin_data = get_plugin_data( WPMU_PLUGIN_DIR . "/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached.
333
-
334
- if ( empty ( $plugin_data['Name'] ) )
335
- $plugin_data['Name'] = $plugin_file;
336
-
337
- $wp_plugins[ $plugin_file ] = $plugin_data;
338
- }
339
-
340
- if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php') <= 30 ) // silence is golden
341
- unset( $wp_plugins['index.php'] );
342
-
343
- uasort( $wp_plugins, '_sort_uname_callback' );
344
-
345
- return $wp_plugins;
346
- }
347
-
348
- /**
349
- * Callback to sort array by a 'Name' key.
350
- *
351
- * @since 3.1.0
352
- * @access private
353
- */
354
- function _sort_uname_callback( $a, $b ) {
355
- return strnatcasecmp( $a['Name'], $b['Name'] );
356
- }
357
-
358
- /**
359
- * Check the wp-content directory and retrieve all drop-ins with any plugin data.
360
- *
361
- * @since 3.0.0
362
- * @return array Key is the file path and the value is an array of the plugin data.
363
- */
364
- function get_dropins() {
365
- $dropins = array();
366
- $plugin_files = array();
367
-
368
- $_dropins = _get_dropins();
369
-
370
- // These exist in the wp-content directory
371
- if ( $plugins_dir = @ opendir( WP_CONTENT_DIR ) ) {
372
- while ( ( $file = readdir( $plugins_dir ) ) !== false ) {
373
- if ( isset( $_dropins[ $file ] ) )
374
- $plugin_files[] = $file;
375
- }
376
- } else {
377
- return $dropins;
378
- }
379
-
380
- @closedir( $plugins_dir );
381
-
382
- if ( empty($plugin_files) )
383
- return $dropins;
384
-
385
- foreach ( $plugin_files as $plugin_file ) {
386
- if ( !is_readable( WP_CONTENT_DIR . "/$plugin_file" ) )
387
- continue;
388
- $plugin_data = get_plugin_data( WP_CONTENT_DIR . "/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached.
389
- if ( empty( $plugin_data['Name'] ) )
390
- $plugin_data['Name'] = $plugin_file;
391
- $dropins[ $plugin_file ] = $plugin_data;
392
- }
393
-
394
- uksort( $dropins, 'strnatcasecmp' );
395
-
396
- return $dropins;
397
- }
398
-
399
- /**
400
- * Returns drop-ins that WordPress uses.
401
- *
402
- * Includes Multisite drop-ins only when is_multisite()
403
- *
404
- * @since 3.0.0
405
- * @return array Key is file name. The value is an array, with the first value the
406
- * purpose of the drop-in and the second value the name of the constant that must be
407
- * true for the drop-in to be used, or true if no constant is required.
408
- */
409
- function _get_dropins() {
410
- $dropins = array(
411
- 'advanced-cache.php' => array( __( 'Advanced caching plugin.' ), 'WP_CACHE' ), // WP_CACHE
412
- 'db.php' => array( __( 'Custom database class.' ), true ), // auto on load
413
- 'db-error.php' => array( __( 'Custom database error message.' ), true ), // auto on error
414
- 'install.php' => array( __( 'Custom install script.' ), true ), // auto on install
415
- 'maintenance.php' => array( __( 'Custom maintenance message.' ), true ), // auto on maintenance
416
- 'object-cache.php' => array( __( 'External object cache.' ), true ), // auto on load
417
- );
418
-
419
- if ( is_multisite() ) {
420
- $dropins['sunrise.php' ] = array( __( 'Executed before Multisite is loaded.' ), 'SUNRISE' ); // SUNRISE
421
- $dropins['blog-deleted.php' ] = array( __( 'Custom site deleted message.' ), true ); // auto on deleted blog
422
- $dropins['blog-inactive.php' ] = array( __( 'Custom site inactive message.' ), true ); // auto on inactive blog
423
- $dropins['blog-suspended.php'] = array( __( 'Custom site suspended message.' ), true ); // auto on archived or spammed blog
424
- }
425
-
426
- return $dropins;
427
- }
428
-
429
- /**
430
- * Check whether the plugin is active by checking the active_plugins list.
431
- *
432
- * @since 2.5.0
433
- *
434
- * @param string $plugin Base plugin path from plugins directory.
435
- * @return bool True, if in the active plugins list. False, not in the list.
436
- */
437
- function is_plugin_active( $plugin ) {
438
- return in_array( $plugin, (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( $plugin );
439
- }
440
-
441
- /**
442
- * Check whether the plugin is inactive.
443
- *
444
- * Reverse of is_plugin_active(). Used as a callback.
445
- *
446
- * @since 3.1.0
447
- * @see is_plugin_active()
448
- *
449
- * @param string $plugin Base plugin path from plugins directory.
450
- * @return bool True if inactive. False if active.
451
- */
452
- function is_plugin_inactive( $plugin ) {
453
- return ! is_plugin_active( $plugin );
454
- }
455
-
456
- /**
457
- * Check whether the plugin is active for the entire network.
458
- *
459
- * @since 3.0.0
460
- *
461
- * @param string $plugin Base plugin path from plugins directory.
462
- * @return bool True, if active for the network, otherwise false.
463
- */
464
- function is_plugin_active_for_network( $plugin ) {
465
- if ( !is_multisite() )
466
- return false;
467
-
468
- $plugins = get_site_option( 'active_sitewide_plugins');
469
- if ( isset($plugins[$plugin]) )
470
- return true;
471
-
472
- return false;
473
- }
474
-
475
- /**
476
- * Checks for "Network: true" in the plugin header to see if this should
477
- * be activated only as a network wide plugin. The plugin would also work
478
- * when Multisite is not enabled.
479
- *
480
- * Checks for "Site Wide Only: true" for backwards compatibility.
481
- *
482
- * @since 3.0.0
483
- *
484
- * @param string $plugin Plugin to check
485
- * @return bool True if plugin is network only, false otherwise.
486
- */
487
- function is_network_only_plugin( $plugin ) {
488
- $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
489
- if ( $plugin_data )
490
- return $plugin_data['Network'];
491
- return false;
492
- }
493
-
494
- /**
495
- * Attempts activation of plugin in a "sandbox" and redirects on success.
496
- *
497
- * A plugin that is already activated will not attempt to be activated again.
498
- *
499
- * The way it works is by setting the redirection to the error before trying to
500
- * include the plugin file. If the plugin fails, then the redirection will not
501
- * be overwritten with the success message. Also, the options will not be
502
- * updated and the activation hook will not be called on plugin error.
503
- *
504
- * It should be noted that in no way the below code will actually prevent errors
505
- * within the file. The code should not be used elsewhere to replicate the
506
- * "sandbox", which uses redirection to work.
507
- * {@source 13 1}
508
- *
509
- * If any errors are found or text is outputted, then it will be captured to
510
- * ensure that the success redirection will update the error redirection.
511
- *
512
- * @since 2.5.0
513
- *
514
- * @param string $plugin Plugin path to main plugin file with plugin data.
515
- * @param string $redirect Optional. URL to redirect to.
516
- * @param bool $network_wide Whether to enable the plugin for all sites in the
517
- * network or just the current site. Multisite only. Default is false.
518
- * @param bool $silent Prevent calling activation hooks. Optional, default is false.
519
- * @return WP_Error|null WP_Error on invalid file or null on success.
520
- */
521
- function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) {
522
- $plugin = plugin_basename( trim( $plugin ) );
523
-
524
- if ( is_multisite() && ( $network_wide || is_network_only_plugin($plugin) ) ) {
525
- $network_wide = true;
526
- $current = get_site_option( 'active_sitewide_plugins', array() );
527
- $_GET['networkwide'] = 1; // Back compat for plugins looking for this value.
528
- } else {
529
- $current = get_option( 'active_plugins', array() );
530
- }
531
-
532
- $valid = validate_plugin($plugin);
533
- if ( is_wp_error($valid) )
534
- return $valid;
535
-
536
- if ( ( $network_wide && ! isset( $current[ $plugin ] ) ) || ( ! $network_wide && ! in_array( $plugin, $current ) ) ) {
537
- if ( !empty($redirect) )
538
- wp_redirect(add_query_arg('_error_nonce', wp_create_nonce('plugin-activation-error_' . $plugin), $redirect)); // we'll override this later if the plugin can be included without fatal error
539
- ob_start();
540
- wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
541
- $_wp_plugin_file = $plugin;
542
- include_once( WP_PLUGIN_DIR . '/' . $plugin );
543
- $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin.
544
-
545
- if ( ! $silent ) {
546
- /**
547
- * Fires before a plugin is activated.
548
- *
549
- * If a plugin is silently activated (such as during an update),
550
- * this hook does not fire.
551
- *
552
- * @since 2.9.0
553
- *
554
- * @param string $plugin Plugin path to main plugin file with plugin data.
555
- * @param bool $network_wide Whether to enable the plugin for all sites in the network
556
- * or just the current site. Multisite only. Default is false.
557
- */
558
- do_action( 'activate_plugin', $plugin, $network_wide );
559
-
560
- /**
561
- * Fires as a specific plugin is being deactivated.
562
- *
563
- * This hook is the "deactivation" hook used internally by
564
- * register_deactivation_hook(). The dynamic portion of the
565
- * hook name, $plugin. refers to the plugin basename.
566
- *
567
- * If a plugin is silently activated (such as during an update),
568
- * this hook does not fire.
569
- *
570
- * @since 2.0.0
571
- *
572
- * @param bool $network_wide Whether to enable the plugin for all sites in the network
573
- * or just the current site. Multisite only. Default is false.
574
- */
575
- do_action( 'activate_' . $plugin, $network_wide );
576
- }
577
-
578
- if ( $network_wide ) {
579
- $current[$plugin] = time();
580
- update_site_option( 'active_sitewide_plugins', $current );
581
- } else {
582
- $current[] = $plugin;
583
- sort($current);
584
- update_option('active_plugins', $current);
585
- }
586
-
587
- if ( ! $silent ) {
588
- /**
589
- * Fires after a plugin has been activated.
590
- *
591
- * If a plugin is silently activated (such as during an update),
592
- * this hook does not fire.
593
- *
594
- * @since 2.9.0
595
- *
596
- * @param string $plugin Plugin path to main plugin file with plugin data.
597
- * @param bool $network_wide Whether to enable the plugin for all sites in the network
598
- * or just the current site. Multisite only. Default is false.
599
- */
600
- do_action( 'activated_plugin', $plugin, $network_wide );
601
- }
602
-
603
- if ( ob_get_length() > 0 ) {
604
- $output = ob_get_clean();
605
- return new WP_Error('unexpected_output', __('The plugin generated unexpected output.'), $output);
606
- }
607
- ob_end_clean();
608
- }
609
-
610
- return null;
611
- }
612
-
613
- /**
614
- * Deactivate a single plugin or multiple plugins.
615
- *
616
- * The deactivation hook is disabled by the plugin upgrader by using the $silent
617
- * parameter.
618
- *
619
- * @since 2.5.0
620
- *
621
- * @param string|array $plugins Single plugin or list of plugins to deactivate.
622
- * @param bool $silent Prevent calling deactivation hooks. Default is false.
623
- * @param mixed $network_wide Whether to deactivate the plugin for all sites in the network.
624
- * A value of null (the default) will deactivate plugins for both the site and the network.
625
- */
626
- function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
627
- if ( is_multisite() )
628
- $network_current = get_site_option( 'active_sitewide_plugins', array() );
629
- $current = get_option( 'active_plugins', array() );
630
- $do_blog = $do_network = false;
631
-
632
- foreach ( (array) $plugins as $plugin ) {
633
- $plugin = plugin_basename( trim( $plugin ) );
634
- if ( ! is_plugin_active($plugin) )
635
- continue;
636
-
637
- $network_deactivating = false !== $network_wide && is_plugin_active_for_network( $plugin );
638
-
639
- if ( ! $silent ) {
640
- /**
641
- * Fires before a plugin is deactivated.
642
- *
643
- * If a plugin is silently deactivated (such as during an update),
644
- * this hook does not fire.
645
- *
646
- * @since 2.9.0
647
- *
648
- * @param string $plugin Plugin path to main plugin file with plugin data.
649
- * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
650
- * or just the current site. Multisite only. Default is false.
651
- */
652
- do_action( 'deactivate_plugin', $plugin, $network_deactivating );
653
- }
654
-
655
- if ( false !== $network_wide ) {
656
- if ( is_plugin_active_for_network( $plugin ) ) {
657
- $do_network = true;
658
- unset( $network_current[ $plugin ] );
659
- } elseif ( $network_wide ) {
660
- continue;
661
- }
662
- }
663
-
664
- if ( true !== $network_wide ) {
665
- $key = array_search( $plugin, $current );
666
- if ( false !== $key ) {
667
- $do_blog = true;
668
- unset( $current[ $key ] );
669
- }
670
- }
671
-
672
- if ( ! $silent ) {
673
- /**
674
- * Fires as a specific plugin is being deactivated.
675
- *
676
- * This hook is the "deactivation" hook used internally by
677
- * register_deactivation_hook(). The dynamic portion of the
678
- * hook name, $plugin. refers to the plugin basename.
679
- *
680
- * If a plugin is silently deactivated (such as during an update),
681
- * this hook does not fire.
682
- *
683
- * @since 2.0.0
684
- *
685
- * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
686
- * or just the current site. Multisite only. Default is false.
687
- */
688
- do_action( 'deactivate_' . $plugin, $network_deactivating );
689
-
690
- /**
691
- * Fires after a plugin is deactivated.
692
- *
693
- * If a plugin is silently deactivated (such as during an update),
694
- * this hook does not fire.
695
- *
696
- * @since 2.9.0
697
- *
698
- * @param string $plugin Plugin basename.
699
- * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
700
- * or just the current site. Multisite only. Default false.
701
- */
702
- do_action( 'deactivated_plugin', $plugin, $network_deactivating );
703
- }
704
- }
705
-
706
- if ( $do_blog )
707
- update_option('active_plugins', $current);
708
- if ( $do_network )
709
- update_site_option( 'active_sitewide_plugins', $network_current );
710
- }
711
-
712
- /**
713
- * Activate multiple plugins.
714
- *
715
- * When WP_Error is returned, it does not mean that one of the plugins had
716
- * errors. It means that one or more of the plugins file path was invalid.
717
- *
718
- * The execution will be halted as soon as one of the plugins has an error.
719
- *
720
- * @since 2.6.0
721
- *
722
- * @param string|array $plugins Single plugin or list of plugins to activate.
723
- * @param string $redirect Redirect to page after successful activation.
724
- * @param bool $network_wide Whether to enable the plugin for all sites in the network.
725
- * @param bool $silent Prevent calling activation hooks. Default is false.
726
- * @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation.
727
- */
728
- function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) {
729
- if ( !is_array($plugins) )
730
- $plugins = array($plugins);
731
-
732
- $errors = array();
733
- foreach ( $plugins as $plugin ) {
734
- if ( !empty($redirect) )
735
- $redirect = add_query_arg('plugin', $plugin, $redirect);
736
- $result = activate_plugin($plugin, $redirect, $network_wide, $silent);
737
- if ( is_wp_error($result) )
738
- $errors[$plugin] = $result;
739
- }
740
-
741
- if ( !empty($errors) )
742
- return new WP_Error('plugins_invalid', __('One of the plugins is invalid.'), $errors);
743
-
744
- return true;
745
- }
746
-
747
- /**
748
- * Remove directory and files of a plugin for a list of plugins.
749
- *
750
- * @since 2.6.0
751
- *
752
- * @param array $plugins List of plugins to delete.
753
- * @param string $deprecated Deprecated.
754
- * @return bool|null|WP_Error True on success, false is $plugins is empty, WP_Error on failure.
755
- * Null if filesystem credentials are required to proceed.
756
- */
757
- function delete_plugins( $plugins, $deprecated = '' ) {
758
- global $wp_filesystem;
759
-
760
- if ( empty($plugins) )
761
- return false;
762
-
763
- $checked = array();
764
- foreach( $plugins as $plugin )
765
- $checked[] = 'checked[]=' . $plugin;
766
-
767
- ob_start();
768
- $url = wp_nonce_url('plugins.php?action=delete-selected&verify-delete=1&' . implode('&', $checked), 'bulk-plugins');
769
- if ( false === ($credentials = request_filesystem_credentials($url)) ) {
770
- $data = ob_get_contents();
771
- ob_end_clean();
772
- if ( ! empty($data) ){
773
- include_once( ABSPATH . 'wp-admin/admin-header.php');
774
- echo $data;
775
- include( ABSPATH . 'wp-admin/admin-footer.php');
776
- exit;
777
- }
778
- return;
779
- }
780
-
781
- if ( ! WP_Filesystem($credentials) ) {
782
- request_filesystem_credentials($url, '', true); //Failed to connect, Error and request again
783
- $data = ob_get_contents();
784
- ob_end_clean();
785
- if ( ! empty($data) ){
786
- include_once( ABSPATH . 'wp-admin/admin-header.php');
787
- echo $data;
788
- include( ABSPATH . 'wp-admin/admin-footer.php');
789
- exit;
790
- }
791
- return;
792
- }
793
-
794
- if ( ! is_object($wp_filesystem) )
795
- return new WP_Error('fs_unavailable', __('Could not access filesystem.'));
796
-
797
- if ( is_wp_error($wp_filesystem->errors) && $wp_filesystem->errors->get_error_code() )
798
- return new WP_Error('fs_error', __('Filesystem error.'), $wp_filesystem->errors);
799
-
800
- // Get the base plugin folder.
801
- $plugins_dir = $wp_filesystem->wp_plugins_dir();
802
- if ( empty( $plugins_dir ) ) {
803
- return new WP_Error( 'fs_no_plugins_dir', __( 'Unable to locate WordPress Plugin directory.' ) );
804
- }
805
-
806
- $plugins_dir = trailingslashit( $plugins_dir );
807
-
808
- $translations_dir = $wp_filesystem->wp_lang_dir();
809
- $translations_dir = trailingslashit( $translations_dir );
810
-
811
- $plugin_translations = wp_get_installed_translations( 'plugins' );
812
-
813
- $errors = array();
814
-
815
- foreach( $plugins as $plugin_file ) {
816
- // Run Uninstall hook.
817
- if ( is_uninstallable_plugin( $plugin_file ) ) {
818
- uninstall_plugin($plugin_file);
819
- }
820
-
821
- $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) );
822
- // If plugin is in its own directory, recursively delete the directory.
823
- if ( strpos( $plugin_file, '/' ) && $this_plugin_dir != $plugins_dir ) { //base check on if plugin includes directory separator AND that it's not the root plugin folder
824
- $deleted = $wp_filesystem->delete( $this_plugin_dir, true );
825
- } else {
826
- $deleted = $wp_filesystem->delete( $plugins_dir . $plugin_file );
827
- }
828
-
829
- if ( ! $deleted ) {
830
- $errors[] = $plugin_file;
831
- continue;
832
- }
833
-
834
- // Remove language files, silently.
835
- $plugin_slug = dirname( $plugin_file );
836
- if ( '.' !== $plugin_slug && ! empty( $plugin_translations[ $plugin_slug ] ) ) {
837
- $translations = $plugin_translations[ $plugin_slug ];
838
-
839
- foreach ( $translations as $translation => $data ) {
840
- $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.po' );
841
- $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.mo' );
842
- }
843
- }
844
- }
845
-
846
- // Remove deleted plugins from the plugin updates list.
847
- if ( $current = get_site_transient('update_plugins') ) {
848
- // Don't remove the plugins that weren't deleted.
849
- $deleted = array_diff( $plugins, $errors );
850
-
851
- foreach ( $deleted as $plugin_file ) {
852
- unset( $current->response[ $plugin_file ] );
853
- }
854
-
855
- set_site_transient( 'update_plugins', $current );
856
- }
857
-
858
- if ( ! empty($errors) )
859
- return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s.'), implode(', ', $errors)) );
860
-
861
- return true;
862
- }
863
-
864
- /**
865
- * Validate active plugins
866
- *
867
- * Validate all active plugins, deactivates invalid and
868
- * returns an array of deactivated ones.
869
- *
870
- * @since 2.5.0
871
- * @return array invalid plugins, plugin as key, error as value
872
- */
873
- function validate_active_plugins() {
874
- $plugins = get_option( 'active_plugins', array() );
875
- // Validate vartype: array.
876
- if ( ! is_array( $plugins ) ) {
877
- update_option( 'active_plugins', array() );
878
- $plugins = array();
879
- }
880
-
881
- if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
882
- $network_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );
883
- $plugins = array_merge( $plugins, array_keys( $network_plugins ) );
884
- }
885
-
886
- if ( empty( $plugins ) )
887
- return;
888
-
889
- $invalid = array();
890
-
891
- // Invalid plugins get deactivated.
892
- foreach ( $plugins as $plugin ) {
893
- $result = validate_plugin( $plugin );
894
- if ( is_wp_error( $result ) ) {
895
- $invalid[$plugin] = $result;
896
- deactivate_plugins( $plugin, true );
897
- }
898
- }
899
- return $invalid;
900
- }
901
-
902
- /**
903
- * Validate the plugin path.
904
- *
905
- * Checks that the file exists and {@link validate_file() is valid file}.
906
- *
907
- * @since 2.5.0
908
- *
909
- * @param string $plugin Plugin Path
910
- * @return WP_Error|int 0 on success, WP_Error on failure.
911
- */
912
- function validate_plugin($plugin) {
913
- if ( validate_file($plugin) )
914
- return new WP_Error('plugin_invalid', __('Invalid plugin path.'));
915
- if ( ! file_exists(WP_PLUGIN_DIR . '/' . $plugin) )
916
- return new WP_Error('plugin_not_found', __('Plugin file does not exist.'));
917
-
918
- $installed_plugins = get_plugins();
919
- if ( ! isset($installed_plugins[$plugin]) )
920
- return new WP_Error('no_plugin_header', __('The plugin does not have a valid header.'));
921
- return 0;
922
- }
923
-
924
- /**
925
- * Whether the plugin can be uninstalled.
926
- *
927
- * @since 2.7.0
928
- *
929
- * @param string $plugin Plugin path to check.
930
- * @return bool Whether plugin can be uninstalled.
931
- */
932
- function is_uninstallable_plugin($plugin) {
933
- $file = plugin_basename($plugin);
934
-
935
- $uninstallable_plugins = (array) get_option('uninstall_plugins');
936
- if ( isset( $uninstallable_plugins[$file] ) || file_exists( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ) )
937
- return true;
938
-
939
- return false;
940
- }
941
-
942
- /**
943
- * Uninstall a single plugin.
944
- *
945
- * Calls the uninstall hook, if it is available.
946
- *
947
- * @since 2.7.0
948
- *
949
- * @param string $plugin Relative plugin path from Plugin Directory.
950
- */
951
- function uninstall_plugin($plugin) {
952
- $file = plugin_basename($plugin);
953
-
954
- $uninstallable_plugins = (array) get_option('uninstall_plugins');
955
- if ( file_exists( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ) ) {
956
- if ( isset( $uninstallable_plugins[$file] ) ) {
957
- unset($uninstallable_plugins[$file]);
958
- update_option('uninstall_plugins', $uninstallable_plugins);
959
- }
960
- unset($uninstallable_plugins);
961
-
962
- define('WP_UNINSTALL_PLUGIN', $file);
963
- wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) );
964
- include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' );
965
-
966
- return true;
967
- }
968
-
969
- if ( isset( $uninstallable_plugins[$file] ) ) {
970
- $callable = $uninstallable_plugins[$file];
971
- unset($uninstallable_plugins[$file]);
972
- update_option('uninstall_plugins', $uninstallable_plugins);
973
- unset($uninstallable_plugins);
974
-
975
- wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
976
- include( WP_PLUGIN_DIR . '/' . $file );
977
-
978
- add_action( 'uninstall_' . $file, $callable );
979
-
980
- /**
981
- * Fires in uninstall_plugin() once the plugin has been uninstalled.
982
- *
983
- * The action concatenates the 'uninstall_' prefix with the basename of the
984
- * plugin passed to {@see uninstall_plugin()} to create a dynamically-named action.
985
- *
986
- * @since 2.7.0
987
- */
988
- do_action( 'uninstall_' . $file );
989
- }
990
- }
991
-
992
- //
993
- // Menu
994
- //
995
-
996
- /**
997
- * Add a top level menu page
998
- *
999
- * This function takes a capability which will be used to determine whether
1000
- * or not a page is included in the menu.
1001
- *
1002
- * The function which is hooked in to handle the output of the page must check
1003
- * that the user has the required capability as well.
1004
- *
1005
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1006
- * @param string $menu_title The text to be used for the menu
1007
- * @param string $capability The capability required for this menu to be displayed to the user.
1008
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1009
- * @param callback $function The function to be called to output the content for this page.
1010
- * @param string $icon_url The url to the icon to be used for this menu.
1011
- * * Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme.
1012
- * This should begin with 'data:image/svg+xml;base64,'.
1013
- * * Pass the name of a Dashicons helper class to use a font icon, e.g. 'dashicons-chart-pie'.
1014
- * * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS.
1015
- * @param int $position The position in the menu order this one should appear
1016
- *
1017
- * @return string The resulting page's hook_suffix
1018
- */
1019
- function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '', $position = null ) {
1020
- global $menu, $admin_page_hooks, $_registered_pages, $_parent_pages;
1021
-
1022
- $menu_slug = plugin_basename( $menu_slug );
1023
-
1024
- $admin_page_hooks[$menu_slug] = sanitize_title( $menu_title );
1025
-
1026
- $hookname = get_plugin_page_hookname( $menu_slug, '' );
1027
-
1028
- if ( !empty( $function ) && !empty( $hookname ) && current_user_can( $capability ) )
1029
- add_action( $hookname, $function );
1030
-
1031
- if ( empty($icon_url) ) {
1032
- $icon_url = 'dashicons-admin-generic';
1033
- $icon_class = 'menu-icon-generic ';
1034
- } else {
1035
- $icon_url = set_url_scheme( $icon_url );
1036
- $icon_class = '';
1037
- }
1038
-
1039
- $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url );
1040
-
1041
- if ( null === $position )
1042
- $menu[] = $new_menu;
1043
- else
1044
- $menu[$position] = $new_menu;
1045
-
1046
- $_registered_pages[$hookname] = true;
1047
-
1048
- // No parent as top level
1049
- $_parent_pages[$menu_slug] = false;
1050
-
1051
- return $hookname;
1052
- }
1053
-
1054
- /**
1055
- * Add a top level menu page in the 'objects' section
1056
- *
1057
- * This function takes a capability which will be used to determine whether
1058
- * or not a page is included in the menu.
1059
- *
1060
- * The function which is hooked in to handle the output of the page must check
1061
- * that the user has the required capability as well.
1062
- *
1063
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1064
- * @param string $menu_title The text to be used for the menu
1065
- * @param string $capability The capability required for this menu to be displayed to the user.
1066
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1067
- * @param callback $function The function to be called to output the content for this page.
1068
- * @param string $icon_url The url to the icon to be used for this menu
1069
- *
1070
- * @return string The resulting page's hook_suffix
1071
- */
1072
- function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') {
1073
- global $_wp_last_object_menu;
1074
-
1075
- $_wp_last_object_menu++;
1076
-
1077
- return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $_wp_last_object_menu);
1078
- }
1079
-
1080
- /**
1081
- * Add a top level menu page in the 'utility' section
1082
- *
1083
- * This function takes a capability which will be used to determine whether
1084
- * or not a page is included in the menu.
1085
- *
1086
- * The function which is hooked in to handle the output of the page must check
1087
- * that the user has the required capability as well.
1088
- *
1089
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1090
- * @param string $menu_title The text to be used for the menu
1091
- * @param string $capability The capability required for this menu to be displayed to the user.
1092
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1093
- * @param callback $function The function to be called to output the content for this page.
1094
- * @param string $icon_url The url to the icon to be used for this menu
1095
- *
1096
- * @return string The resulting page's hook_suffix
1097
- */
1098
- function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '') {
1099
- global $_wp_last_utility_menu;
1100
-
1101
- $_wp_last_utility_menu++;
1102
-
1103
- return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $_wp_last_utility_menu);
1104
- }
1105
-
1106
- /**
1107
- * Add a sub menu page
1108
- *
1109
- * This function takes a capability which will be used to determine whether
1110
- * or not a page is included in the menu.
1111
- *
1112
- * The function which is hooked in to handle the output of the page must check
1113
- * that the user has the required capability as well.
1114
- *
1115
- * @param string $parent_slug The slug name for the parent menu (or the file name of a standard WordPress admin page)
1116
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1117
- * @param string $menu_title The text to be used for the menu
1118
- * @param string $capability The capability required for this menu to be displayed to the user.
1119
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1120
- * @param callback $function The function to be called to output the content for this page.
1121
- *
1122
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1123
- */
1124
- function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1125
- global $submenu;
1126
- global $menu;
1127
- global $_wp_real_parent_file;
1128
- global $_wp_submenu_nopriv;
1129
- global $_registered_pages;
1130
- global $_parent_pages;
1131
-
1132
- $menu_slug = plugin_basename( $menu_slug );
1133
- $parent_slug = plugin_basename( $parent_slug);
1134
-
1135
- if ( isset( $_wp_real_parent_file[$parent_slug] ) )
1136
- $parent_slug = $_wp_real_parent_file[$parent_slug];
1137
-
1138
- if ( !current_user_can( $capability ) ) {
1139
- $_wp_submenu_nopriv[$parent_slug][$menu_slug] = true;
1140
- return false;
1141
- }
1142
-
1143
- /*
1144
- * If the parent doesn't already have a submenu, add a link to the parent
1145
- * as the first item in the submenu. If the submenu file is the same as the
1146
- * parent file someone is trying to link back to the parent manually. In
1147
- * this case, don't automatically add a link back to avoid duplication.
1148
- */
1149
- if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) {
1150
- foreach ( (array)$menu as $parent_menu ) {
1151
- if ( $parent_menu[2] == $parent_slug && current_user_can( $parent_menu[1] ) )
1152
- $submenu[$parent_slug][] = array_slice( $parent_menu, 0, 4 );
1153
- }
1154
- }
1155
-
1156
- $submenu[$parent_slug][] = array ( $menu_title, $capability, $menu_slug, $page_title );
1157
-
1158
- $hookname = get_plugin_page_hookname( $menu_slug, $parent_slug);
1159
- if (!empty ( $function ) && !empty ( $hookname ))
1160
- add_action( $hookname, $function );
1161
-
1162
- $_registered_pages[$hookname] = true;
1163
-
1164
- /*
1165
- * Backward-compatibility for plugins using add_management page.
1166
- * See wp-admin/admin.php for redirect from edit.php to tools.php
1167
- */
1168
- if ( 'tools.php' == $parent_slug )
1169
- $_registered_pages[get_plugin_page_hookname( $menu_slug, 'edit.php')] = true;
1170
-
1171
- // No parent as top level.
1172
- $_parent_pages[$menu_slug] = $parent_slug;
1173
-
1174
- return $hookname;
1175
- }
1176
-
1177
- /**
1178
- * Add sub menu page to the tools main menu.
1179
- *
1180
- * This function takes a capability which will be used to determine whether
1181
- * or not a page is included in the menu.
1182
- *
1183
- * The function which is hooked in to handle the output of the page must check
1184
- * that the user has the required capability as well.
1185
- *
1186
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1187
- * @param string $menu_title The text to be used for the menu
1188
- * @param string $capability The capability required for this menu to be displayed to the user.
1189
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1190
- * @param callback $function The function to be called to output the content for this page.
1191
- *
1192
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1193
- */
1194
- function add_management_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1195
- return add_submenu_page( 'tools.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1196
- }
1197
-
1198
- /**
1199
- * Add sub menu page to the options main menu.
1200
- *
1201
- * This function takes a capability which will be used to determine whether
1202
- * or not a page is included in the menu.
1203
- *
1204
- * The function which is hooked in to handle the output of the page must check
1205
- * that the user has the required capability as well.
1206
- *
1207
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1208
- * @param string $menu_title The text to be used for the menu
1209
- * @param string $capability The capability required for this menu to be displayed to the user.
1210
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1211
- * @param callback $function The function to be called to output the content for this page.
1212
- *
1213
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1214
- */
1215
- function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1216
- return add_submenu_page( 'options-general.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1217
- }
1218
-
1219
- /**
1220
- * Add sub menu page to the themes main menu.
1221
- *
1222
- * This function takes a capability which will be used to determine whether
1223
- * or not a page is included in the menu.
1224
- *
1225
- * The function which is hooked in to handle the output of the page must check
1226
- * that the user has the required capability as well.
1227
- *
1228
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1229
- * @param string $menu_title The text to be used for the menu
1230
- * @param string $capability The capability required for this menu to be displayed to the user.
1231
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1232
- * @param callback $function The function to be called to output the content for this page.
1233
- *
1234
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1235
- */
1236
- function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1237
- return add_submenu_page( 'themes.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1238
- }
1239
-
1240
- /**
1241
- * Add sub menu page to the plugins main menu.
1242
- *
1243
- * This function takes a capability which will be used to determine whether
1244
- * or not a page is included in the menu.
1245
- *
1246
- * The function which is hooked in to handle the output of the page must check
1247
- * that the user has the required capability as well.
1248
- *
1249
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1250
- * @param string $menu_title The text to be used for the menu
1251
- * @param string $capability The capability required for this menu to be displayed to the user.
1252
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1253
- * @param callback $function The function to be called to output the content for this page.
1254
- *
1255
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1256
- */
1257
- function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1258
- return add_submenu_page( 'plugins.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1259
- }
1260
-
1261
- /**
1262
- * Add sub menu page to the Users/Profile main menu.
1263
- *
1264
- * This function takes a capability which will be used to determine whether
1265
- * or not a page is included in the menu.
1266
- *
1267
- * The function which is hooked in to handle the output of the page must check
1268
- * that the user has the required capability as well.
1269
- *
1270
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1271
- * @param string $menu_title The text to be used for the menu
1272
- * @param string $capability The capability required for this menu to be displayed to the user.
1273
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1274
- * @param callback $function The function to be called to output the content for this page.
1275
- *
1276
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1277
- */
1278
- function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1279
- if ( current_user_can('edit_users') )
1280
- $parent = 'users.php';
1281
- else
1282
- $parent = 'profile.php';
1283
- return add_submenu_page( $parent, $page_title, $menu_title, $capability, $menu_slug, $function );
1284
- }
1285
- /**
1286
- * Add sub menu page to the Dashboard main menu.
1287
- *
1288
- * This function takes a capability which will be used to determine whether
1289
- * or not a page is included in the menu.
1290
- *
1291
- * The function which is hooked in to handle the output of the page must check
1292
- * that the user has the required capability as well.
1293
- *
1294
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1295
- * @param string $menu_title The text to be used for the menu
1296
- * @param string $capability The capability required for this menu to be displayed to the user.
1297
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1298
- * @param callback $function The function to be called to output the content for this page.
1299
- *
1300
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1301
- */
1302
- function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1303
- return add_submenu_page( 'index.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1304
- }
1305
-
1306
- /**
1307
- * Add sub menu page to the posts main menu.
1308
- *
1309
- * This function takes a capability which will be used to determine whether
1310
- * or not a page is included in the menu.
1311
- *
1312
- * The function which is hooked in to handle the output of the page must check
1313
- * that the user has the required capability as well.
1314
- *
1315
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1316
- * @param string $menu_title The text to be used for the menu
1317
- * @param string $capability The capability required for this menu to be displayed to the user.
1318
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1319
- * @param callback $function The function to be called to output the content for this page.
1320
- *
1321
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1322
- */
1323
- function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1324
- return add_submenu_page( 'edit.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1325
- }
1326
-
1327
- /**
1328
- * Add sub menu page to the media main menu.
1329
- *
1330
- * This function takes a capability which will be used to determine whether
1331
- * or not a page is included in the menu.
1332
- *
1333
- * The function which is hooked in to handle the output of the page must check
1334
- * that the user has the required capability as well.
1335
- *
1336
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1337
- * @param string $menu_title The text to be used for the menu
1338
- * @param string $capability The capability required for this menu to be displayed to the user.
1339
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1340
- * @param callback $function The function to be called to output the content for this page.
1341
- *
1342
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1343
- */
1344
- function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1345
- return add_submenu_page( 'upload.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1346
- }
1347
-
1348
- /**
1349
- * Add sub menu page to the links main menu.
1350
- *
1351
- * This function takes a capability which will be used to determine whether
1352
- * or not a page is included in the menu.
1353
- *
1354
- * The function which is hooked in to handle the output of the page must check
1355
- * that the user has the required capability as well.
1356
- *
1357
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1358
- * @param string $menu_title The text to be used for the menu
1359
- * @param string $capability The capability required for this menu to be displayed to the user.
1360
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1361
- * @param callback $function The function to be called to output the content for this page.
1362
- *
1363
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1364
- */
1365
- function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1366
- return add_submenu_page( 'link-manager.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1367
- }
1368
-
1369
- /**
1370
- * Add sub menu page to the pages main menu.
1371
- *
1372
- * This function takes a capability which will be used to determine whether
1373
- * or not a page is included in the menu.
1374
- *
1375
- * The function which is hooked in to handle the output of the page must check
1376
- * that the user has the required capability as well.
1377
- *
1378
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1379
- * @param string $menu_title The text to be used for the menu
1380
- * @param string $capability The capability required for this menu to be displayed to the user.
1381
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1382
- * @param callback $function The function to be called to output the content for this page.
1383
- *
1384
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1385
- */
1386
- function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1387
- return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $capability, $menu_slug, $function );
1388
- }
1389
-
1390
- /**
1391
- * Add sub menu page to the comments main menu.
1392
- *
1393
- * This function takes a capability which will be used to determine whether
1394
- * or not a page is included in the menu.
1395
- *
1396
- * The function which is hooked in to handle the output of the page must check
1397
- * that the user has the required capability as well.
1398
- *
1399
- * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected
1400
- * @param string $menu_title The text to be used for the menu
1401
- * @param string $capability The capability required for this menu to be displayed to the user.
1402
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1403
- * @param callback $function The function to be called to output the content for this page.
1404
- *
1405
- * @return string|bool The resulting page's hook_suffix, or false if the user does not have the capability required.
1406
- */
1407
- function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) {
1408
- return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $capability, $menu_slug, $function );
1409
- }
1410
-
1411
- /**
1412
- * Remove a top level admin menu
1413
- *
1414
- * @since 3.1.0
1415
- *
1416
- * @param string $menu_slug The slug of the menu
1417
- * @return array|bool The removed menu on success, False if not found
1418
- */
1419
- function remove_menu_page( $menu_slug ) {
1420
- global $menu;
1421
-
1422
- foreach ( $menu as $i => $item ) {
1423
- if ( $menu_slug == $item[2] ) {
1424
- unset( $menu[$i] );
1425
- return $item;
1426
- }
1427
- }
1428
-
1429
- return false;
1430
- }
1431
-
1432
- /**
1433
- * Remove an admin submenu
1434
- *
1435
- * @since 3.1.0
1436
- *
1437
- * @param string $menu_slug The slug for the parent menu
1438
- * @param string $submenu_slug The slug of the submenu
1439
- * @return array|bool The removed submenu on success, False if not found
1440
- */
1441
- function remove_submenu_page( $menu_slug, $submenu_slug ) {
1442
- global $submenu;
1443
-
1444
- if ( !isset( $submenu[$menu_slug] ) )
1445
- return false;
1446
-
1447
- foreach ( $submenu[$menu_slug] as $i => $item ) {
1448
- if ( $submenu_slug == $item[2] ) {
1449
- unset( $submenu[$menu_slug][$i] );
1450
- return $item;
1451
- }
1452
- }
1453
-
1454
- return false;
1455
- }
1456
-
1457
- /**
1458
- * Get the url to access a particular menu page based on the slug it was registered with.
1459
- *
1460
- * If the slug hasn't been registered properly no url will be returned
1461
- *
1462
- * @since 3.0.0
1463
- *
1464
- * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
1465
- * @param bool $echo Whether or not to echo the url - default is true
1466
- * @return string the url
1467
- */
1468
- function menu_page_url($menu_slug, $echo = true) {
1469
- global $_parent_pages;
1470
-
1471
- if ( isset( $_parent_pages[$menu_slug] ) ) {
1472
- $parent_slug = $_parent_pages[$menu_slug];
1473
- if ( $parent_slug && ! isset( $_parent_pages[$parent_slug] ) ) {
1474
- $url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) );
1475
- } else {
1476
- $url = admin_url( 'admin.php?page=' . $menu_slug );
1477
- }
1478
- } else {
1479
- $url = '';
1480
- }
1481
-
1482
- $url = esc_url($url);
1483
-
1484
- if ( $echo )
1485
- echo $url;
1486
-
1487
- return $url;
1488
- }
1489
-
1490
- //
1491
- // Pluggable Menu Support -- Private
1492
- //
1493
-
1494
- function get_admin_page_parent( $parent = '' ) {
1495
- global $parent_file;
1496
- global $menu;
1497
- global $submenu;
1498
- global $pagenow;
1499
- global $typenow;
1500
- global $plugin_page;
1501
- global $_wp_real_parent_file;
1502
- global $_wp_menu_nopriv;
1503
- global $_wp_submenu_nopriv;
1504
-
1505
- if ( !empty ( $parent ) && 'admin.php' != $parent ) {
1506
- if ( isset( $_wp_real_parent_file[$parent] ) )
1507
- $parent = $_wp_real_parent_file[$parent];
1508
- return $parent;
1509
- }
1510
-
1511
- if ( $pagenow == 'admin.php' && isset( $plugin_page ) ) {
1512
- foreach ( (array)$menu as $parent_menu ) {
1513
- if ( $parent_menu[2] == $plugin_page ) {
1514
- $parent_file = $plugin_page;
1515
- if ( isset( $_wp_real_parent_file[$parent_file] ) )
1516
- $parent_file = $_wp_real_parent_file[$parent_file];
1517
- return $parent_file;
1518
- }
1519
- }
1520
- if ( isset( $_wp_menu_nopriv[$plugin_page] ) ) {
1521
- $parent_file = $plugin_page;
1522
- if ( isset( $_wp_real_parent_file[$parent_file] ) )
1523
- $parent_file = $_wp_real_parent_file[$parent_file];
1524
- return $parent_file;
1525
- }
1526
- }
1527
-
1528
- if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$pagenow][$plugin_page] ) ) {
1529
- $parent_file = $pagenow;
1530
- if ( isset( $_wp_real_parent_file[$parent_file] ) )
1531
- $parent_file = $_wp_real_parent_file[$parent_file];
1532
- return $parent_file;
1533
- }
1534
-
1535
- foreach (array_keys( (array)$submenu ) as $parent) {
1536
- foreach ( $submenu[$parent] as $submenu_array ) {
1537
- if ( isset( $_wp_real_parent_file[$parent] ) )
1538
- $parent = $_wp_real_parent_file[$parent];
1539
- if ( !empty($typenow) && ($submenu_array[2] == "$pagenow?post_type=$typenow") ) {
1540
- $parent_file = $parent;
1541
- return $parent;
1542
- } elseif ( $submenu_array[2] == $pagenow && empty($typenow) && ( empty($parent_file) || false === strpos($parent_file, '?') ) ) {
1543
- $parent_file = $parent;
1544
- return $parent;
1545
- } else
1546
- if ( isset( $plugin_page ) && ($plugin_page == $submenu_array[2] ) ) {
1547
- $parent_file = $parent;
1548
- return $parent;
1549
- }
1550
- }
1551
- }
1552
-
1553
- if ( empty($parent_file) )
1554
- $parent_file = '';
1555
- return '';
1556
- }
1557
-
1558
- function get_admin_page_title() {
1559
- global $title;
1560
- global $menu;
1561
- global $submenu;
1562
- global $pagenow;
1563
- global $plugin_page;
1564
- global $typenow;
1565
-
1566
- if ( ! empty ( $title ) )
1567
- return $title;
1568
-
1569
- $hook = get_plugin_page_hook( $plugin_page, $pagenow );
1570
-
1571
- $parent = $parent1 = get_admin_page_parent();
1572
-
1573
- if ( empty ( $parent) ) {
1574
- foreach ( (array)$menu as $menu_array ) {
1575
- if ( isset( $menu_array[3] ) ) {
1576
- if ( $menu_array[2] == $pagenow ) {
1577
- $title = $menu_array[3];
1578
- return $menu_array[3];
1579
- } else
1580
- if ( isset( $plugin_page ) && ($plugin_page == $menu_array[2] ) && ($hook == $menu_array[3] ) ) {
1581
- $title = $menu_array[3];
1582
- return $menu_array[3];
1583
- }
1584
- } else {
1585
- $title = $menu_array[0];
1586
- return $title;
1587
- }
1588
- }
1589
- } else {
1590
- foreach ( array_keys( $submenu ) as $parent ) {
1591
- foreach ( $submenu[$parent] as $submenu_array ) {
1592
- if ( isset( $plugin_page ) &&
1593
- ( $plugin_page == $submenu_array[2] ) &&
1594
- (
1595
- ( $parent == $pagenow ) ||
1596
- ( $parent == $plugin_page ) ||
1597
- ( $plugin_page == $hook ) ||
1598
- ( $pagenow == 'admin.php' && $parent1 != $submenu_array[2] ) ||
1599
- ( !empty($typenow) && $parent == $pagenow . '?post_type=' . $typenow)
1600
- )
1601
- ) {
1602
- $title = $submenu_array[3];
1603
- return $submenu_array[3];
1604
- }
1605
-
1606
- if ( $submenu_array[2] != $pagenow || isset( $_GET['page'] ) ) // not the current page
1607
- continue;
1608
-
1609
- if ( isset( $submenu_array[3] ) ) {
1610
- $title = $submenu_array[3];
1611
- return $submenu_array[3];
1612
- } else {
1613
- $title = $submenu_array[0];
1614
- return $title;
1615
- }
1616
- }
1617
- }
1618
- if ( empty ( $title ) ) {
1619
- foreach ( $menu as $menu_array ) {
1620
- if ( isset( $plugin_page ) &&
1621
- ( $plugin_page == $menu_array[2] ) &&
1622
- ( $pagenow == 'admin.php' ) &&
1623
- ( $parent1 == $menu_array[2] ) )
1624
- {
1625
- $title = $menu_array[3];
1626
- return $menu_array[3];
1627
- }
1628
- }
1629
- }
1630
- }
1631
-
1632
- return $title;
1633
- }
1634
-
1635
- function get_plugin_page_hook( $plugin_page, $parent_page ) {
1636
- $hook = get_plugin_page_hookname( $plugin_page, $parent_page );
1637
- if ( has_action($hook) )
1638
- return $hook;
1639
- else
1640
- return null;
1641
- }
1642
-
1643
- function get_plugin_page_hookname( $plugin_page, $parent_page ) {
1644
- global $admin_page_hooks;
1645
-
1646
- $parent = get_admin_page_parent( $parent_page );
1647
-
1648
- $page_type = 'admin';
1649
- if ( empty ( $parent_page ) || 'admin.php' == $parent_page || isset( $admin_page_hooks[$plugin_page] ) ) {
1650
- if ( isset( $admin_page_hooks[$plugin_page] ) )
1651
- $page_type = 'toplevel';
1652
- else
1653
- if ( isset( $admin_page_hooks[$parent] ))
1654
- $page_type = $admin_page_hooks[$parent];
1655
- } else if ( isset( $admin_page_hooks[$parent] ) ) {
1656
- $page_type = $admin_page_hooks[$parent];
1657
- }
1658
-
1659
- $plugin_name = preg_replace( '!\.php!', '', $plugin_page );
1660
-
1661
- return $page_type . '_page_' . $plugin_name;
1662
- }
1663
-
1664
- function user_can_access_admin_page() {
1665
- global $pagenow;
1666
- global $menu;
1667
- global $submenu;
1668
- global $_wp_menu_nopriv;
1669
- global $_wp_submenu_nopriv;
1670
- global $plugin_page;
1671
- global $_registered_pages;
1672
-
1673
- $parent = get_admin_page_parent();
1674
-
1675
- if ( !isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$parent][$pagenow] ) )
1676
- return false;
1677
-
1678
- if ( isset( $plugin_page ) ) {
1679
- if ( isset( $_wp_submenu_nopriv[$parent][$plugin_page] ) )
1680
- return false;
1681
-
1682
- $hookname = get_plugin_page_hookname($plugin_page, $parent);
1683
-
1684
- if ( !isset($_registered_pages[$hookname]) )
1685
- return false;
1686
- }
1687
-
1688
- if ( empty( $parent) ) {
1689
- if ( isset( $_wp_menu_nopriv[$pagenow] ) )
1690
- return false;
1691
- if ( isset( $_wp_submenu_nopriv[$pagenow][$pagenow] ) )
1692
- return false;
1693
- if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$pagenow][$plugin_page] ) )
1694
- return false;
1695
- if ( isset( $plugin_page ) && isset( $_wp_menu_nopriv[$plugin_page] ) )
1696
- return false;
1697
- foreach (array_keys( $_wp_submenu_nopriv ) as $key ) {
1698
- if ( isset( $_wp_submenu_nopriv[$key][$pagenow] ) )
1699
- return false;
1700
- if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[$key][$plugin_page] ) )
1701
- return false;
1702
- }
1703
- return true;
1704
- }
1705
-
1706
- if ( isset( $plugin_page ) && ( $plugin_page == $parent ) && isset( $_wp_menu_nopriv[$plugin_page] ) )
1707
- return false;
1708
-
1709
- if ( isset( $submenu[$parent] ) ) {
1710
- foreach ( $submenu[$parent] as $submenu_array ) {
1711
- if ( isset( $plugin_page ) && ( $submenu_array[2] == $plugin_page ) ) {
1712
- if ( current_user_can( $submenu_array[1] ))
1713
- return true;
1714
- else
1715
- return false;
1716
- } else if ( $submenu_array[2] == $pagenow ) {
1717
- if ( current_user_can( $submenu_array[1] ))
1718
- return true;
1719
- else
1720
- return false;
1721
- }
1722
- }
1723
- }
1724
-
1725
- foreach ( $menu as $menu_array ) {
1726
- if ( $menu_array[2] == $parent) {
1727
- if ( current_user_can( $menu_array[1] ))
1728
- return true;
1729
- else
1730
- return false;
1731
- }
1732
- }
1733
-
1734
- return true;
1735
- }
1736
-
1737
- /* Whitelist functions */
1738
-
1739
- /**
1740
- * Register a setting and its sanitization callback
1741
- *
1742
- * @since 2.7.0
1743
- *
1744
- * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
1745
- * Default whitelisted option key names include "general," "discussion," and "reading," among others.
1746
- * @param string $option_name The name of an option to sanitize and save.
1747
- * @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
1748
- * @return unknown
1749
- */
1750
- function register_setting( $option_group, $option_name, $sanitize_callback = '' ) {
1751
- global $new_whitelist_options;
1752
-
1753
- if ( 'misc' == $option_group ) {
1754
- _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
1755
- $option_group = 'general';
1756
- }
1757
-
1758
- if ( 'privacy' == $option_group ) {
1759
- _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
1760
- $option_group = 'reading';
1761
- }
1762
-
1763
- $new_whitelist_options[ $option_group ][] = $option_name;
1764
- if ( $sanitize_callback != '' )
1765
- add_filter( "sanitize_option_{$option_name}", $sanitize_callback );
1766
- }
1767
-
1768
- /**
1769
- * Unregister a setting
1770
- *
1771
- * @since 2.7.0
1772
- *
1773
- * @param unknown_type $option_group
1774
- * @param unknown_type $option_name
1775
- * @param unknown_type $sanitize_callback
1776
- * @return unknown
1777
- */
1778
- function unregister_setting( $option_group, $option_name, $sanitize_callback = '' ) {
1779
- global $new_whitelist_options;
1780
-
1781
- if ( 'misc' == $option_group ) {
1782
- _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
1783
- $option_group = 'general';
1784
- }
1785
-
1786
- if ( 'privacy' == $option_group ) {
1787
- _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
1788
- $option_group = 'reading';
1789
- }
1790
-
1791
- $pos = array_search( $option_name, (array) $new_whitelist_options );
1792
- if ( $pos !== false )
1793
- unset( $new_whitelist_options[ $option_group ][ $pos ] );
1794
- if ( $sanitize_callback != '' )
1795
- remove_filter( "sanitize_option_{$option_name}", $sanitize_callback );
1796
- }
1797
-
1798
- /**
1799
- * {@internal Missing Short Description}}
1800
- *
1801
- * @since 2.7.0
1802
- *
1803
- * @param unknown_type $options
1804
- * @return unknown
1805
- */
1806
- function option_update_filter( $options ) {
1807
- global $new_whitelist_options;
1808
-
1809
- if ( is_array( $new_whitelist_options ) )
1810
- $options = add_option_whitelist( $new_whitelist_options, $options );
1811
-
1812
- return $options;
1813
- }
1814
- add_filter( 'whitelist_options', 'option_update_filter' );
1815
-
1816
- /**
1817
- * {@internal Missing Short Description}}
1818
- *
1819
- * @since 2.7.0
1820
- *
1821
- * @param unknown_type $new_options
1822
- * @param unknown_type $options
1823
- * @return unknown
1824
- */
1825
- function add_option_whitelist( $new_options, $options = '' ) {
1826
- if ( $options == '' )
1827
- global $whitelist_options;
1828
- else
1829
- $whitelist_options = $options;
1830
-
1831
- foreach ( $new_options as $page => $keys ) {
1832
- foreach ( $keys as $key ) {
1833
- if ( !isset($whitelist_options[ $page ]) || !is_array($whitelist_options[ $page ]) ) {
1834
- $whitelist_options[ $page ] = array();
1835
- $whitelist_options[ $page ][] = $key;
1836
- } else {
1837
- $pos = array_search( $key, $whitelist_options[ $page ] );
1838
- if ( $pos === false )
1839
- $whitelist_options[ $page ][] = $key;
1840
- }
1841
- }
1842
- }
1843
-
1844
- return $whitelist_options;
1845
- }
1846
-
1847
- /**
1848
- * {@internal Missing Short Description}}
1849
- *
1850
- * @since 2.7.0
1851
- *
1852
- * @param unknown_type $del_options
1853
- * @param unknown_type $options
1854
- * @return unknown
1855
- */
1856
- function remove_option_whitelist( $del_options, $options = '' ) {
1857
- if ( $options == '' )
1858
- global $whitelist_options;
1859
- else
1860
- $whitelist_options = $options;
1861
-
1862
- foreach ( $del_options as $page => $keys ) {
1863
- foreach ( $keys as $key ) {
1864
- if ( isset($whitelist_options[ $page ]) && is_array($whitelist_options[ $page ]) ) {
1865
- $pos = array_search( $key, $whitelist_options[ $page ] );
1866
- if ( $pos !== false )
1867
- unset( $whitelist_options[ $page ][ $pos ] );
1868
- }
1869
- }
1870
- }
1871
-
1872
- return $whitelist_options;
1873
- }
1874
-
1875
- /**
1876
- * Output nonce, action, and option_page fields for a settings page.
1877
- *
1878
- * @since 2.7.0
1879
- *
1880
- * @param string $option_group A settings group name. This should match the group name used in register_setting().
1881
- */
1882
- function settings_fields($option_group) {
1883
- echo "<input type='hidden' name='option_page' value='" . esc_attr($option_group) . "' />";
1884
- echo '<input type="hidden" name="action" value="update" />';
1885
- wp_nonce_field("$option_group-options");
1886
- }
1887
-
1888
- /**
1889
- * Clears the Plugins cache used by get_plugins() and by default, the Plugin Update cache.
1890
- *
1891
- * @since 3.7.0
1892
- *
1893
- * @param bool $clear_update_cache Whether to clear the Plugin updates cache
1894
- */
1895
- function wp_clean_plugins_cache( $clear_update_cache = true ) {
1896
- if ( $clear_update_cache )
1897
- delete_site_transient( 'update_plugins' );
1898
- wp_cache_delete( 'plugins', 'plugins' );
1899
- }