stump-cli 0.1.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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,432 +0,0 @@
1
- <?php
2
- /**
3
- * WordPress Administration Update API
4
- *
5
- * @package WordPress
6
- * @subpackage Administration
7
- */
8
-
9
- /**
10
- * Selects the first update version from the update_core option.
11
- *
12
- * @return bool|object The response from the API on success, false on failure.
13
- */
14
- function get_preferred_from_update_core() {
15
- $updates = get_core_updates();
16
- if ( ! is_array( $updates ) )
17
- return false;
18
- if ( empty( $updates ) )
19
- return (object) array( 'response' => 'latest' );
20
- return $updates[0];
21
- }
22
-
23
- /**
24
- * Get available core updates.
25
- *
26
- * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too,
27
- * set $options['available'] to false to skip not-dismissed updates.
28
- * @return bool|array Array of the update objects on success, false on failure.
29
- */
30
- function get_core_updates( $options = array() ) {
31
- $options = array_merge( array( 'available' => true, 'dismissed' => false ), $options );
32
- $dismissed = get_site_option( 'dismissed_update_core' );
33
-
34
- if ( ! is_array( $dismissed ) )
35
- $dismissed = array();
36
-
37
- $from_api = get_site_transient( 'update_core' );
38
-
39
- if ( ! isset( $from_api->updates ) || ! is_array( $from_api->updates ) )
40
- return false;
41
-
42
- $updates = $from_api->updates;
43
- $result = array();
44
- foreach ( $updates as $update ) {
45
- if ( $update->response == 'autoupdate' )
46
- continue;
47
-
48
- if ( array_key_exists( $update->current . '|' . $update->locale, $dismissed ) ) {
49
- if ( $options['dismissed'] ) {
50
- $update->dismissed = true;
51
- $result[] = $update;
52
- }
53
- } else {
54
- if ( $options['available'] ) {
55
- $update->dismissed = false;
56
- $result[] = $update;
57
- }
58
- }
59
- }
60
- return $result;
61
- }
62
-
63
- /**
64
- * Gets the best available (and enabled) Auto-Update for WordPress Core.
65
- *
66
- * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the install allows it, else, 1.2.3
67
- *
68
- * @since 3.7.0
69
- *
70
- * @return bool|array False on failure, otherwise the core update offering.
71
- */
72
- function find_core_auto_update() {
73
- $updates = get_site_transient( 'update_core' );
74
- if ( ! $updates || empty( $updates->updates ) )
75
- return false;
76
-
77
- include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
78
-
79
- $auto_update = false;
80
- $upgrader = new WP_Automatic_Updater;
81
- foreach ( $updates->updates as $update ) {
82
- if ( 'autoupdate' != $update->response )
83
- continue;
84
-
85
- if ( ! $upgrader->should_update( 'core', $update, ABSPATH ) )
86
- continue;
87
-
88
- if ( ! $auto_update || version_compare( $update->current, $auto_update->current, '>' ) )
89
- $auto_update = $update;
90
- }
91
- return $auto_update;
92
- }
93
-
94
- /**
95
- * Gets and caches the checksums for the given version of WordPress.
96
- *
97
- * @since 3.7.0
98
- *
99
- * @param string $version Version string to query.
100
- * @param string $locale Locale to query.
101
- * @return bool|array False on failure. An array of checksums on success.
102
- */
103
- function get_core_checksums( $version, $locale ) {
104
- $url = $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' );
105
-
106
- if ( $ssl = wp_http_supports( array( 'ssl' ) ) )
107
- $url = set_url_scheme( $url, 'https' );
108
-
109
- $options = array(
110
- 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
111
- );
112
-
113
- $response = wp_remote_get( $url, $options );
114
- if ( $ssl && is_wp_error( $response ) ) {
115
- trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );
116
- $response = wp_remote_get( $http_url, $options );
117
- }
118
-
119
- if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
120
- return false;
121
-
122
- $body = trim( wp_remote_retrieve_body( $response ) );
123
- $body = json_decode( $body, true );
124
-
125
- if ( ! is_array( $body ) || ! isset( $body['checksums'] ) || ! is_array( $body['checksums'] ) )
126
- return false;
127
-
128
- return $body['checksums'];
129
- }
130
-
131
- function dismiss_core_update( $update ) {
132
- $dismissed = get_site_option( 'dismissed_update_core' );
133
- $dismissed[ $update->current . '|' . $update->locale ] = true;
134
- return update_site_option( 'dismissed_update_core', $dismissed );
135
- }
136
-
137
- function undismiss_core_update( $version, $locale ) {
138
- $dismissed = get_site_option( 'dismissed_update_core' );
139
- $key = $version . '|' . $locale;
140
-
141
- if ( ! isset( $dismissed[$key] ) )
142
- return false;
143
-
144
- unset( $dismissed[$key] );
145
- return update_site_option( 'dismissed_update_core', $dismissed );
146
- }
147
-
148
- function find_core_update( $version, $locale ) {
149
- $from_api = get_site_transient( 'update_core' );
150
-
151
- if ( ! isset( $from_api->updates ) || ! is_array( $from_api->updates ) )
152
- return false;
153
-
154
- $updates = $from_api->updates;
155
- foreach ( $updates as $update ) {
156
- if ( $update->current == $version && $update->locale == $locale )
157
- return $update;
158
- }
159
- return false;
160
- }
161
-
162
- function core_update_footer( $msg = '' ) {
163
- if ( !current_user_can('update_core') )
164
- return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
165
-
166
- $cur = get_preferred_from_update_core();
167
- if ( ! is_object( $cur ) )
168
- $cur = new stdClass;
169
-
170
- if ( ! isset( $cur->current ) )
171
- $cur->current = '';
172
-
173
- if ( ! isset( $cur->url ) )
174
- $cur->url = '';
175
-
176
- if ( ! isset( $cur->response ) )
177
- $cur->response = '';
178
-
179
- switch ( $cur->response ) {
180
- case 'development' :
181
- return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
182
-
183
- case 'upgrade' :
184
- return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current);
185
-
186
- case 'latest' :
187
- default :
188
- return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
189
- }
190
- }
191
- add_filter( 'update_footer', 'core_update_footer' );
192
-
193
- function update_nag() {
194
- if ( is_multisite() && !current_user_can('update_core') )
195
- return false;
196
-
197
- global $pagenow;
198
-
199
- if ( 'update-core.php' == $pagenow )
200
- return;
201
-
202
- $cur = get_preferred_from_update_core();
203
-
204
- if ( ! isset( $cur->response ) || $cur->response != 'upgrade' )
205
- return false;
206
-
207
- if ( current_user_can('update_core') ) {
208
- $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s">Please update now</a>.'), $cur->current, network_admin_url( 'update-core.php' ) );
209
- } else {
210
- $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current );
211
- }
212
- echo "<div class='update-nag'>$msg</div>";
213
- }
214
- add_action( 'admin_notices', 'update_nag', 3 );
215
- add_action( 'network_admin_notices', 'update_nag', 3 );
216
-
217
- // Called directly from dashboard
218
- function update_right_now_message() {
219
- $theme_name = wp_get_theme();
220
- if ( current_user_can( 'switch_themes' ) ) {
221
- $theme_name = sprintf( '<a href="themes.php">%1$s</a>', $theme_name );
222
- }
223
-
224
- $msg = sprintf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name );
225
-
226
- if ( current_user_can('update_core') ) {
227
- $cur = get_preferred_from_update_core();
228
-
229
- if ( isset( $cur->response ) && $cur->response == 'upgrade' )
230
- $msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';
231
- }
232
-
233
- echo "<p id='wp-version-message'>$msg</p>";
234
- }
235
-
236
- function get_plugin_updates() {
237
- $all_plugins = get_plugins();
238
- $upgrade_plugins = array();
239
- $current = get_site_transient( 'update_plugins' );
240
- foreach ( (array)$all_plugins as $plugin_file => $plugin_data) {
241
- if ( isset( $current->response[ $plugin_file ] ) ) {
242
- $upgrade_plugins[ $plugin_file ] = (object) $plugin_data;
243
- $upgrade_plugins[ $plugin_file ]->update = $current->response[ $plugin_file ];
244
- }
245
- }
246
-
247
- return $upgrade_plugins;
248
- }
249
-
250
- function wp_plugin_update_rows() {
251
- if ( !current_user_can('update_plugins' ) )
252
- return;
253
-
254
- $plugins = get_site_transient( 'update_plugins' );
255
- if ( isset($plugins->response) && is_array($plugins->response) ) {
256
- $plugins = array_keys( $plugins->response );
257
- foreach( $plugins as $plugin_file ) {
258
- add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );
259
- }
260
- }
261
- }
262
- add_action( 'admin_init', 'wp_plugin_update_rows' );
263
-
264
- function wp_plugin_update_row( $file, $plugin_data ) {
265
- $current = get_site_transient( 'update_plugins' );
266
- if ( !isset( $current->response[ $file ] ) )
267
- return false;
268
-
269
- $r = $current->response[ $file ];
270
-
271
- $plugins_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());
272
- $plugin_name = wp_kses( $plugin_data['Name'], $plugins_allowedtags );
273
-
274
- $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $r->slug . '&section=changelog&TB_iframe=true&width=600&height=800');
275
-
276
- $wp_list_table = _get_list_table('WP_Plugins_List_Table');
277
-
278
- if ( is_network_admin() || !is_multisite() ) {
279
- echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
280
-
281
- if ( ! current_user_can('update_plugins') )
282
- printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version );
283
- else if ( empty($r->package) )
284
- printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version );
285
- else
286
- printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version, wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin&plugin=') . $file, 'upgrade-plugin_' . $file) );
287
-
288
- /**
289
- * Fires at the end of the update message container in each
290
- * row of the plugins list table.
291
- *
292
- * The dynamic portion of the hook name, $file, refers to the path
293
- * of the plugin's primary file relative to the plugins directory.
294
- *
295
- * @since 2.8.0
296
- *
297
- * @param array $plugin_data {
298
- * An array of plugin metadata.
299
- *
300
- * @type string $name The human-readable name of the plugin.
301
- * @type string $plugin_uri Plugin URI.
302
- * @type string $version Plugin version.
303
- * @type string $description Plugin description.
304
- * @type string $author Plugin author.
305
- * @type string $author_uri Plugin author URI.
306
- * @type string $text_domain Plugin text domain.
307
- * @type string $domain_path Relative path to the plugin's .mo file(s).
308
- * @type bool $network Whether the plugin can only be activated network wide.
309
- * @type string $title The human-readable title of the plugin.
310
- * @type string $author_name Plugin author's name.
311
- * @type bool $update Whether there's an available update. Default null.
312
- * }
313
- * @param array $r {
314
- * An array of metadata about the available plugin update.
315
- *
316
- * @type int $id Plugin ID.
317
- * @type string $slug Plugin slug.
318
- * @type string $new_version New plugin version.
319
- * @type string $url Plugin URL.
320
- * @type string $package Plugin update package URL.
321
- * }
322
- */
323
- do_action( "in_plugin_update_message-{$file}", $plugin_data, $r );
324
-
325
- echo '</div></td></tr>';
326
- }
327
- }
328
-
329
- function get_theme_updates() {
330
- $current = get_site_transient('update_themes');
331
-
332
- if ( ! isset( $current->response ) )
333
- return array();
334
-
335
- $update_themes = array();
336
- foreach ( $current->response as $stylesheet => $data ) {
337
- $update_themes[ $stylesheet ] = wp_get_theme( $stylesheet );
338
- $update_themes[ $stylesheet ]->update = $data;
339
- }
340
-
341
- return $update_themes;
342
- }
343
-
344
- function wp_theme_update_rows() {
345
- if ( !current_user_can('update_themes' ) )
346
- return;
347
-
348
- $themes = get_site_transient( 'update_themes' );
349
- if ( isset($themes->response) && is_array($themes->response) ) {
350
- $themes = array_keys( $themes->response );
351
-
352
- foreach( $themes as $theme ) {
353
- add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );
354
- }
355
- }
356
- }
357
- add_action( 'admin_init', 'wp_theme_update_rows' );
358
-
359
- function wp_theme_update_row( $theme_key, $theme ) {
360
- $current = get_site_transient( 'update_themes' );
361
- if ( !isset( $current->response[ $theme_key ] ) )
362
- return false;
363
- $r = $current->response[ $theme_key ];
364
-
365
- $details_url = add_query_arg( array( 'TB_iframe' => 'true', 'width' => 1024, 'height' => 800 ), $current->response[ $theme_key ]['url'] );
366
-
367
- $wp_list_table = _get_list_table('WP_MS_Themes_List_Table');
368
-
369
- echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
370
- if ( ! current_user_can('update_themes') )
371
- printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version );
372
- else if ( empty( $r['package'] ) )
373
- printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] );
374
- else
375
- printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) );
376
-
377
- /**
378
- * Fires at the end of the update message container in each
379
- * row of the themes list table.
380
- *
381
- * The dynamic portion of the hook name, $theme_key, refers to
382
- * the theme slug as found in the WordPress.org themes repository.
383
- *
384
- * @since 3.1.0
385
- *
386
- * @param WP_Theme $theme The WP_Theme object.
387
- * @param array $r {
388
- * An array of metadata about the available theme update.
389
- *
390
- * @type string $new_version New theme version.
391
- * @type string $url Theme URL.
392
- * @type string $package Theme update package URL.
393
- * }
394
- */
395
- do_action( "in_theme_update_message-{$theme_key}", $theme, $r );
396
-
397
- echo '</div></td></tr>';
398
- }
399
-
400
- function maintenance_nag() {
401
- include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
402
- global $upgrading;
403
- $nag = isset( $upgrading );
404
- if ( ! $nag ) {
405
- $failed = get_site_option( 'auto_core_update_failed' );
406
- /*
407
- * If an update failed critically, we may have copied over version.php but not other files.
408
- * In that case, if the install claims we're running the version we attempted, nag.
409
- * This is serious enough to err on the side of nagging.
410
- *
411
- * If we simply failed to update before we tried to copy any files, then assume things are
412
- * OK if they are now running the latest.
413
- *
414
- * This flag is cleared whenever a successful update occurs using Core_Upgrader.
415
- */
416
- $comparison = ! empty( $failed['critical'] ) ? '>=' : '>';
417
- if ( version_compare( $failed['attempted'], $wp_version, $comparison ) )
418
- $nag = true;
419
- }
420
-
421
- if ( ! $nag )
422
- return false;
423
-
424
- if ( current_user_can('update_core') )
425
- $msg = sprintf( __('An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.'), 'update-core.php' );
426
- else
427
- $msg = __('An automated WordPress update has failed to complete! Please notify the site administrator.');
428
-
429
- echo "<div class='update-nag'>$msg</div>";
430
- }
431
- add_action( 'admin_notices', 'maintenance_nag' );
432
- add_action( 'network_admin_notices', 'maintenance_nag' );
@@ -1,2218 +0,0 @@
1
- <?php
2
- /**
3
- * WordPress Upgrade API
4
- *
5
- * Most of the functions are pluggable and can be overwritten
6
- *
7
- * @package WordPress
8
- * @subpackage Administration
9
- */
10
-
11
- /** Include user install customize script. */
12
- if ( file_exists(WP_CONTENT_DIR . '/install.php') )
13
- require (WP_CONTENT_DIR . '/install.php');
14
-
15
- /** WordPress Administration API */
16
- require_once(ABSPATH . 'wp-admin/includes/admin.php');
17
-
18
- /** WordPress Schema API */
19
- require_once(ABSPATH . 'wp-admin/includes/schema.php');
20
-
21
- if ( !function_exists('wp_install') ) :
22
- /**
23
- * Installs the blog
24
- *
25
- * {@internal Missing Long Description}}
26
- *
27
- * @since 2.1.0
28
- *
29
- * @param string $blog_title Blog title.
30
- * @param string $user_name User's username.
31
- * @param string $user_email User's email.
32
- * @param bool $public Whether blog is public.
33
- * @param null $deprecated Optional. Not used.
34
- * @param string $user_password Optional. User's chosen password. Will default to a random password.
35
- * @param string $language Optional. Language chosen.
36
- * @return array Array keys 'url', 'user_id', 'password', 'password_message'.
37
- */
38
- function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' ) {
39
- if ( !empty( $deprecated ) )
40
- _deprecated_argument( __FUNCTION__, '2.6' );
41
-
42
- wp_check_mysql_version();
43
- wp_cache_flush();
44
- make_db_current_silent();
45
- populate_options();
46
- populate_roles();
47
-
48
- update_option('blogname', $blog_title);
49
- update_option('admin_email', $user_email);
50
- update_option('blog_public', $public);
51
-
52
- if ( $language ) {
53
- update_option( 'WPLANG', $language );
54
- }
55
-
56
- $guessurl = wp_guess_url();
57
-
58
- update_option('siteurl', $guessurl);
59
-
60
- // If not a public blog, don't ping.
61
- if ( ! $public )
62
- update_option('default_pingback_flag', 0);
63
-
64
- /*
65
- * Create default user. If the user already exists, the user tables are
66
- * being shared among blogs. Just set the role in that case.
67
- */
68
- $user_id = username_exists($user_name);
69
- $user_password = trim($user_password);
70
- $email_password = false;
71
- if ( !$user_id && empty($user_password) ) {
72
- $user_password = wp_generate_password( 12, false );
73
- $message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.');
74
- $user_id = wp_create_user($user_name, $user_password, $user_email);
75
- update_user_option($user_id, 'default_password_nag', true, true);
76
- $email_password = true;
77
- } else if ( !$user_id ) {
78
- // Password has been provided
79
- $message = '<em>'.__('Your chosen password.').'</em>';
80
- $user_id = wp_create_user($user_name, $user_password, $user_email);
81
- } else {
82
- $message = __('User already exists. Password inherited.');
83
- }
84
-
85
- $user = new WP_User($user_id);
86
- $user->set_role('administrator');
87
-
88
- wp_install_defaults($user_id);
89
-
90
- flush_rewrite_rules();
91
-
92
- wp_new_blog_notification($blog_title, $guessurl, $user_id, ($email_password ? $user_password : __('The password you chose during the install.') ) );
93
-
94
- wp_cache_flush();
95
-
96
- /**
97
- * Fires after a site is fully installed.
98
- *
99
- * @since 3.9.0
100
- *
101
- * @param WP_User $user The site owner.
102
- */
103
- do_action( 'wp_install', $user );
104
-
105
- return array('url' => $guessurl, 'user_id' => $user_id, 'password' => $user_password, 'password_message' => $message);
106
- }
107
- endif;
108
-
109
- if ( !function_exists('wp_install_defaults') ) :
110
- /**
111
- * {@internal Missing Short Description}}
112
- *
113
- * {@internal Missing Long Description}}
114
- *
115
- * @since 2.1.0
116
- *
117
- * @param int $user_id User ID.
118
- */
119
- function wp_install_defaults( $user_id ) {
120
- global $wpdb, $wp_rewrite, $table_prefix;
121
-
122
- // Default category
123
- $cat_name = __('Uncategorized');
124
- /* translators: Default category slug */
125
- $cat_slug = sanitize_title(_x('Uncategorized', 'Default category slug'));
126
-
127
- if ( global_terms_enabled() ) {
128
- $cat_id = $wpdb->get_var( $wpdb->prepare( "SELECT cat_ID FROM {$wpdb->sitecategories} WHERE category_nicename = %s", $cat_slug ) );
129
- if ( $cat_id == null ) {
130
- $wpdb->insert( $wpdb->sitecategories, array('cat_ID' => 0, 'cat_name' => $cat_name, 'category_nicename' => $cat_slug, 'last_updated' => current_time('mysql', true)) );
131
- $cat_id = $wpdb->insert_id;
132
- }
133
- update_option('default_category', $cat_id);
134
- } else {
135
- $cat_id = 1;
136
- }
137
-
138
- $wpdb->insert( $wpdb->terms, array('term_id' => $cat_id, 'name' => $cat_name, 'slug' => $cat_slug, 'term_group' => 0) );
139
- $wpdb->insert( $wpdb->term_taxonomy, array('term_id' => $cat_id, 'taxonomy' => 'category', 'description' => '', 'parent' => 0, 'count' => 1));
140
- $cat_tt_id = $wpdb->insert_id;
141
-
142
- // First post
143
- $now = date('Y-m-d H:i:s');
144
- $now_gmt = gmdate('Y-m-d H:i:s');
145
- $first_post_guid = get_option('home') . '/?p=1';
146
-
147
- if ( is_multisite() ) {
148
- $first_post = get_site_option( 'first_post' );
149
-
150
- if ( empty($first_post) )
151
- $first_post = __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' );
152
-
153
- $first_post = str_replace( "SITE_URL", esc_url( network_home_url() ), $first_post );
154
- $first_post = str_replace( "SITE_NAME", get_current_site()->site_name, $first_post );
155
- } else {
156
- $first_post = __('Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!');
157
- }
158
-
159
- $wpdb->insert( $wpdb->posts, array(
160
- 'post_author' => $user_id,
161
- 'post_date' => $now,
162
- 'post_date_gmt' => $now_gmt,
163
- 'post_content' => $first_post,
164
- 'post_excerpt' => '',
165
- 'post_title' => __('Hello world!'),
166
- /* translators: Default post slug */
167
- 'post_name' => sanitize_title( _x('hello-world', 'Default post slug') ),
168
- 'post_modified' => $now,
169
- 'post_modified_gmt' => $now_gmt,
170
- 'guid' => $first_post_guid,
171
- 'comment_count' => 1,
172
- 'to_ping' => '',
173
- 'pinged' => '',
174
- 'post_content_filtered' => ''
175
- ));
176
- $wpdb->insert( $wpdb->term_relationships, array('term_taxonomy_id' => $cat_tt_id, 'object_id' => 1) );
177
-
178
- // Default comment
179
- $first_comment_author = __('Mr WordPress');
180
- $first_comment_url = 'https://wordpress.org/';
181
- $first_comment = __('Hi, this is a comment.
182
- To delete a comment, just log in and view the post&#039;s comments. There you will have the option to edit or delete them.');
183
- if ( is_multisite() ) {
184
- $first_comment_author = get_site_option( 'first_comment_author', $first_comment_author );
185
- $first_comment_url = get_site_option( 'first_comment_url', network_home_url() );
186
- $first_comment = get_site_option( 'first_comment', $first_comment );
187
- }
188
- $wpdb->insert( $wpdb->comments, array(
189
- 'comment_post_ID' => 1,
190
- 'comment_author' => $first_comment_author,
191
- 'comment_author_email' => '',
192
- 'comment_author_url' => $first_comment_url,
193
- 'comment_date' => $now,
194
- 'comment_date_gmt' => $now_gmt,
195
- 'comment_content' => $first_comment
196
- ));
197
-
198
- // First Page
199
- $first_page = sprintf( __( "This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:
200
-
201
- <blockquote>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)</blockquote>
202
-
203
- ...or something like this:
204
-
205
- <blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</blockquote>
206
-
207
- As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to delete this page and create new pages for your content. Have fun!" ), admin_url() );
208
- if ( is_multisite() )
209
- $first_page = get_site_option( 'first_page', $first_page );
210
- $first_post_guid = get_option('home') . '/?page_id=2';
211
- $wpdb->insert( $wpdb->posts, array(
212
- 'post_author' => $user_id,
213
- 'post_date' => $now,
214
- 'post_date_gmt' => $now_gmt,
215
- 'post_content' => $first_page,
216
- 'post_excerpt' => '',
217
- 'post_title' => __( 'Sample Page' ),
218
- /* translators: Default page slug */
219
- 'post_name' => __( 'sample-page' ),
220
- 'post_modified' => $now,
221
- 'post_modified_gmt' => $now_gmt,
222
- 'guid' => $first_post_guid,
223
- 'post_type' => 'page',
224
- 'to_ping' => '',
225
- 'pinged' => '',
226
- 'post_content_filtered' => ''
227
- ));
228
- $wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) );
229
-
230
- // Set up default widgets for default theme.
231
- update_option( 'widget_search', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) );
232
- update_option( 'widget_recent-posts', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );
233
- update_option( 'widget_recent-comments', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );
234
- update_option( 'widget_archives', array ( 2 => array ( 'title' => '', 'count' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) );
235
- update_option( 'widget_categories', array ( 2 => array ( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) );
236
- update_option( 'widget_meta', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) );
237
- update_option( 'sidebars_widgets', array ( 'wp_inactive_widgets' => array (), 'sidebar-1' => array ( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2', ), 'sidebar-2' => array (), 'sidebar-3' => array (), 'array_version' => 3 ) );
238
-
239
- if ( ! is_multisite() )
240
- update_user_meta( $user_id, 'show_welcome_panel', 1 );
241
- elseif ( ! is_super_admin( $user_id ) && ! metadata_exists( 'user', $user_id, 'show_welcome_panel' ) )
242
- update_user_meta( $user_id, 'show_welcome_panel', 2 );
243
-
244
- if ( is_multisite() ) {
245
- // Flush rules to pick up the new page.
246
- $wp_rewrite->init();
247
- $wp_rewrite->flush_rules();
248
-
249
- $user = new WP_User($user_id);
250
- $wpdb->update( $wpdb->options, array('option_value' => $user->user_email), array('option_name' => 'admin_email') );
251
-
252
- // Remove all perms except for the login user.
253
- $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s", $user_id, $table_prefix.'user_level') );
254
- $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id != %d AND meta_key = %s", $user_id, $table_prefix.'capabilities') );
255
-
256
- // Delete any caps that snuck into the previously active blog. (Hardcoded to blog 1 for now.) TODO: Get previous_blog_id.
257
- if ( !is_super_admin( $user_id ) && $user_id != 1 )
258
- $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $user_id , 'meta_key' => $wpdb->base_prefix.'1_capabilities' ) );
259
- }
260
- }
261
- endif;
262
-
263
- if ( !function_exists('wp_new_blog_notification') ) :
264
- /**
265
- * {@internal Missing Short Description}}
266
- *
267
- * {@internal Missing Long Description}}
268
- *
269
- * @since 2.1.0
270
- *
271
- * @param string $blog_title Blog title.
272
- * @param string $blog_url Blog url.
273
- * @param int $user_id User ID.
274
- * @param string $password User's Password.
275
- */
276
- function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) {
277
- $user = new WP_User( $user_id );
278
- $email = $user->user_email;
279
- $name = $user->user_login;
280
- $login_url = wp_login_url();
281
- $message = sprintf( __( "Your new WordPress site has been successfully set up at:
282
-
283
- %1\$s
284
-
285
- You can log in to the administrator account with the following information:
286
-
287
- Log in here: %2\$s
288
- Username: %3\$s
289
- Password: %4\$s
290
-
291
- We hope you enjoy your new site. Thanks!
292
-
293
- --The WordPress Team
294
- https://wordpress.org/
295
- "), $blog_url, $login_url, $name, $password );
296
-
297
- @wp_mail($email, __('New WordPress Site'), $message);
298
- }
299
- endif;
300
-
301
- if ( !function_exists('wp_upgrade') ) :
302
- /**
303
- * Run WordPress Upgrade functions.
304
- *
305
- * {@internal Missing Long Description}}
306
- *
307
- * @since 2.1.0
308
- *
309
- * @return null
310
- */
311
- function wp_upgrade() {
312
- global $wp_current_db_version, $wp_db_version, $wpdb;
313
-
314
- $wp_current_db_version = __get_option('db_version');
315
-
316
- // We are up-to-date. Nothing to do.
317
- if ( $wp_db_version == $wp_current_db_version )
318
- return;
319
-
320
- if ( ! is_blog_installed() )
321
- return;
322
-
323
- wp_check_mysql_version();
324
- wp_cache_flush();
325
- pre_schema_upgrade();
326
- make_db_current_silent();
327
- upgrade_all();
328
- if ( is_multisite() && is_main_site() )
329
- upgrade_network();
330
- wp_cache_flush();
331
-
332
- if ( is_multisite() ) {
333
- if ( $wpdb->get_row( "SELECT blog_id FROM {$wpdb->blog_versions} WHERE blog_id = '{$wpdb->blogid}'" ) )
334
- $wpdb->query( "UPDATE {$wpdb->blog_versions} SET db_version = '{$wp_db_version}' WHERE blog_id = '{$wpdb->blogid}'" );
335
- else
336
- $wpdb->query( "INSERT INTO {$wpdb->blog_versions} ( `blog_id` , `db_version` , `last_updated` ) VALUES ( '{$wpdb->blogid}', '{$wp_db_version}', NOW());" );
337
- }
338
-
339
- /**
340
- * Fires after a site is fully upgraded.
341
- *
342
- * @since 3.9.0
343
- *
344
- * @param int $wp_db_version The new $wp_db_version.
345
- * @param int $wp_current_db_version The old (current) $wp_db_version.
346
- */
347
- do_action( 'wp_upgrade', $wp_db_version, $wp_current_db_version );
348
- }
349
- endif;
350
-
351
- /**
352
- * Functions to be called in install and upgrade scripts.
353
- *
354
- * {@internal Missing Long Description}}
355
- *
356
- * @since 1.0.1
357
- */
358
- function upgrade_all() {
359
- global $wp_current_db_version, $wp_db_version;
360
- $wp_current_db_version = __get_option('db_version');
361
-
362
- // We are up-to-date. Nothing to do.
363
- if ( $wp_db_version == $wp_current_db_version )
364
- return;
365
-
366
- // If the version is not set in the DB, try to guess the version.
367
- if ( empty($wp_current_db_version) ) {
368
- $wp_current_db_version = 0;
369
-
370
- // If the template option exists, we have 1.5.
371
- $template = __get_option('template');
372
- if ( !empty($template) )
373
- $wp_current_db_version = 2541;
374
- }
375
-
376
- if ( $wp_current_db_version < 6039 )
377
- upgrade_230_options_table();
378
-
379
- populate_options();
380
-
381
- if ( $wp_current_db_version < 2541 ) {
382
- upgrade_100();
383
- upgrade_101();
384
- upgrade_110();
385
- upgrade_130();
386
- }
387
-
388
- if ( $wp_current_db_version < 3308 )
389
- upgrade_160();
390
-
391
- if ( $wp_current_db_version < 4772 )
392
- upgrade_210();
393
-
394
- if ( $wp_current_db_version < 4351 )
395
- upgrade_old_slugs();
396
-
397
- if ( $wp_current_db_version < 5539 )
398
- upgrade_230();
399
-
400
- if ( $wp_current_db_version < 6124 )
401
- upgrade_230_old_tables();
402
-
403
- if ( $wp_current_db_version < 7499 )
404
- upgrade_250();
405
-
406
- if ( $wp_current_db_version < 7935 )
407
- upgrade_252();
408
-
409
- if ( $wp_current_db_version < 8201 )
410
- upgrade_260();
411
-
412
- if ( $wp_current_db_version < 8989 )
413
- upgrade_270();
414
-
415
- if ( $wp_current_db_version < 10360 )
416
- upgrade_280();
417
-
418
- if ( $wp_current_db_version < 11958 )
419
- upgrade_290();
420
-
421
- if ( $wp_current_db_version < 15260 )
422
- upgrade_300();
423
-
424
- if ( $wp_current_db_version < 19389 )
425
- upgrade_330();
426
-
427
- if ( $wp_current_db_version < 20080 )
428
- upgrade_340();
429
-
430
- if ( $wp_current_db_version < 22422 )
431
- upgrade_350();
432
-
433
- if ( $wp_current_db_version < 25824 )
434
- upgrade_370();
435
-
436
- if ( $wp_current_db_version < 26148 )
437
- upgrade_372();
438
-
439
- if ( $wp_current_db_version < 26691 )
440
- upgrade_380();
441
-
442
- if ( $wp_current_db_version < 29630 )
443
- upgrade_400();
444
-
445
- maybe_disable_link_manager();
446
-
447
- maybe_disable_automattic_widgets();
448
-
449
- update_option( 'db_version', $wp_db_version );
450
- update_option( 'db_upgraded', true );
451
- }
452
-
453
- /**
454
- * Execute changes made in WordPress 1.0.
455
- *
456
- * @since 1.0.0
457
- */
458
- function upgrade_100() {
459
- global $wpdb;
460
-
461
- // Get the title and ID of every post, post_name to check if it already has a value
462
- $posts = $wpdb->get_results("SELECT ID, post_title, post_name FROM $wpdb->posts WHERE post_name = ''");
463
- if ($posts) {
464
- foreach($posts as $post) {
465
- if ('' == $post->post_name) {
466
- $newtitle = sanitize_title($post->post_title);
467
- $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET post_name = %s WHERE ID = %d", $newtitle, $post->ID) );
468
- }
469
- }
470
- }
471
-
472
- $categories = $wpdb->get_results("SELECT cat_ID, cat_name, category_nicename FROM $wpdb->categories");
473
- foreach ($categories as $category) {
474
- if ('' == $category->category_nicename) {
475
- $newtitle = sanitize_title($category->cat_name);
476
- $wpdb->update( $wpdb->categories, array('category_nicename' => $newtitle), array('cat_ID' => $category->cat_ID) );
477
- }
478
- }
479
-
480
- $sql = "UPDATE $wpdb->options
481
- SET option_value = REPLACE(option_value, 'wp-links/links-images/', 'wp-images/links/')
482
- WHERE option_name LIKE %s
483
- AND option_value LIKE %s";
484
- $wpdb->query( $wpdb->prepare( $sql, $wpdb->esc_like( 'links_rating_image' ) . '%', $wpdb->esc_like( 'wp-links/links-images/' ) . '%' ) );
485
-
486
- $done_ids = $wpdb->get_results("SELECT DISTINCT post_id FROM $wpdb->post2cat");
487
- if ($done_ids) :
488
- foreach ($done_ids as $done_id) :
489
- $done_posts[] = $done_id->post_id;
490
- endforeach;
491
- $catwhere = ' AND ID NOT IN (' . implode(',', $done_posts) . ')';
492
- else:
493
- $catwhere = '';
494
- endif;
495
-
496
- $allposts = $wpdb->get_results("SELECT ID, post_category FROM $wpdb->posts WHERE post_category != '0' $catwhere");
497
- if ($allposts) :
498
- foreach ($allposts as $post) {
499
- // Check to see if it's already been imported
500
- $cat = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->post2cat WHERE post_id = %d AND category_id = %d", $post->ID, $post->post_category) );
501
- if (!$cat && 0 != $post->post_category) { // If there's no result
502
- $wpdb->insert( $wpdb->post2cat, array('post_id' => $post->ID, 'category_id' => $post->post_category) );
503
- }
504
- }
505
- endif;
506
- }
507
-
508
- /**
509
- * Execute changes made in WordPress 1.0.1.
510
- *
511
- * @since 1.0.1
512
- */
513
- function upgrade_101() {
514
- global $wpdb;
515
-
516
- // Clean up indices, add a few
517
- add_clean_index($wpdb->posts, 'post_name');
518
- add_clean_index($wpdb->posts, 'post_status');
519
- add_clean_index($wpdb->categories, 'category_nicename');
520
- add_clean_index($wpdb->comments, 'comment_approved');
521
- add_clean_index($wpdb->comments, 'comment_post_ID');
522
- add_clean_index($wpdb->links , 'link_category');
523
- add_clean_index($wpdb->links , 'link_visible');
524
- }
525
-
526
- /**
527
- * Execute changes made in WordPress 1.2.
528
- *
529
- * @since 1.2.0
530
- */
531
- function upgrade_110() {
532
- global $wpdb;
533
-
534
- // Set user_nicename.
535
- $users = $wpdb->get_results("SELECT ID, user_nickname, user_nicename FROM $wpdb->users");
536
- foreach ($users as $user) {
537
- if ('' == $user->user_nicename) {
538
- $newname = sanitize_title($user->user_nickname);
539
- $wpdb->update( $wpdb->users, array('user_nicename' => $newname), array('ID' => $user->ID) );
540
- }
541
- }
542
-
543
- $users = $wpdb->get_results("SELECT ID, user_pass from $wpdb->users");
544
- foreach ($users as $row) {
545
- if (!preg_match('/^[A-Fa-f0-9]{32}$/', $row->user_pass)) {
546
- $wpdb->update( $wpdb->users, array('user_pass' => md5($row->user_pass)), array('ID' => $row->ID) );
547
- }
548
- }
549
-
550
- // Get the GMT offset, we'll use that later on
551
- $all_options = get_alloptions_110();
552
-
553
- $time_difference = $all_options->time_difference;
554
-
555
- $server_time = time()+date('Z');
556
- $weblogger_time = $server_time + $time_difference * HOUR_IN_SECONDS;
557
- $gmt_time = time();
558
-
559
- $diff_gmt_server = ($gmt_time - $server_time) / HOUR_IN_SECONDS;
560
- $diff_weblogger_server = ($weblogger_time - $server_time) / HOUR_IN_SECONDS;
561
- $diff_gmt_weblogger = $diff_gmt_server - $diff_weblogger_server;
562
- $gmt_offset = -$diff_gmt_weblogger;
563
-
564
- // Add a gmt_offset option, with value $gmt_offset
565
- add_option('gmt_offset', $gmt_offset);
566
-
567
- // Check if we already set the GMT fields (if we did, then
568
- // MAX(post_date_gmt) can't be '0000-00-00 00:00:00'
569
- // <michel_v> I just slapped myself silly for not thinking about it earlier
570
- $got_gmt_fields = ! ($wpdb->get_var("SELECT MAX(post_date_gmt) FROM $wpdb->posts") == '0000-00-00 00:00:00');
571
-
572
- if (!$got_gmt_fields) {
573
-
574
- // Add or subtract time to all dates, to get GMT dates
575
- $add_hours = intval($diff_gmt_weblogger);
576
- $add_minutes = intval(60 * ($diff_gmt_weblogger - $add_hours));
577
- $wpdb->query("UPDATE $wpdb->posts SET post_date_gmt = DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
578
- $wpdb->query("UPDATE $wpdb->posts SET post_modified = post_date");
579
- $wpdb->query("UPDATE $wpdb->posts SET post_modified_gmt = DATE_ADD(post_modified, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE) WHERE post_modified != '0000-00-00 00:00:00'");
580
- $wpdb->query("UPDATE $wpdb->comments SET comment_date_gmt = DATE_ADD(comment_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
581
- $wpdb->query("UPDATE $wpdb->users SET user_registered = DATE_ADD(user_registered, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
582
- }
583
-
584
- }
585
-
586
- /**
587
- * Execute changes made in WordPress 1.5.
588
- *
589
- * @since 1.5.0
590
- */
591
- function upgrade_130() {
592
- global $wpdb;
593
-
594
- // Remove extraneous backslashes.
595
- $posts = $wpdb->get_results("SELECT ID, post_title, post_content, post_excerpt, guid, post_date, post_name, post_status, post_author FROM $wpdb->posts");
596
- if ($posts) {
597
- foreach($posts as $post) {
598
- $post_content = addslashes(deslash($post->post_content));
599
- $post_title = addslashes(deslash($post->post_title));
600
- $post_excerpt = addslashes(deslash($post->post_excerpt));
601
- if ( empty($post->guid) )
602
- $guid = get_permalink($post->ID);
603
- else
604
- $guid = $post->guid;
605
-
606
- $wpdb->update( $wpdb->posts, compact('post_title', 'post_content', 'post_excerpt', 'guid'), array('ID' => $post->ID) );
607
-
608
- }
609
- }
610
-
611
- // Remove extraneous backslashes.
612
- $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_content FROM $wpdb->comments");
613
- if ($comments) {
614
- foreach($comments as $comment) {
615
- $comment_content = deslash($comment->comment_content);
616
- $comment_author = deslash($comment->comment_author);
617
-
618
- $wpdb->update($wpdb->comments, compact('comment_content', 'comment_author'), array('comment_ID' => $comment->comment_ID) );
619
- }
620
- }
621
-
622
- // Remove extraneous backslashes.
623
- $links = $wpdb->get_results("SELECT link_id, link_name, link_description FROM $wpdb->links");
624
- if ($links) {
625
- foreach($links as $link) {
626
- $link_name = deslash($link->link_name);
627
- $link_description = deslash($link->link_description);
628
-
629
- $wpdb->update( $wpdb->links, compact('link_name', 'link_description'), array('link_id' => $link->link_id) );
630
- }
631
- }
632
-
633
- $active_plugins = __get_option('active_plugins');
634
-
635
- /*
636
- * If plugins are not stored in an array, they're stored in the old
637
- * newline separated format. Convert to new format.
638
- */
639
- if ( !is_array( $active_plugins ) ) {
640
- $active_plugins = explode("\n", trim($active_plugins));
641
- update_option('active_plugins', $active_plugins);
642
- }
643
-
644
- // Obsolete tables
645
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optionvalues');
646
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optiontypes');
647
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optiongroups');
648
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'optiongroup_options');
649
-
650
- // Update comments table to use comment_type
651
- $wpdb->query("UPDATE $wpdb->comments SET comment_type='trackback', comment_content = REPLACE(comment_content, '<trackback />', '') WHERE comment_content LIKE '<trackback />%'");
652
- $wpdb->query("UPDATE $wpdb->comments SET comment_type='pingback', comment_content = REPLACE(comment_content, '<pingback />', '') WHERE comment_content LIKE '<pingback />%'");
653
-
654
- // Some versions have multiple duplicate option_name rows with the same values
655
- $options = $wpdb->get_results("SELECT option_name, COUNT(option_name) AS dupes FROM `$wpdb->options` GROUP BY option_name");
656
- foreach ( $options as $option ) {
657
- if ( 1 != $option->dupes ) { // Could this be done in the query?
658
- $limit = $option->dupes - 1;
659
- $dupe_ids = $wpdb->get_col( $wpdb->prepare("SELECT option_id FROM $wpdb->options WHERE option_name = %s LIMIT %d", $option->option_name, $limit) );
660
- if ( $dupe_ids ) {
661
- $dupe_ids = join($dupe_ids, ',');
662
- $wpdb->query("DELETE FROM $wpdb->options WHERE option_id IN ($dupe_ids)");
663
- }
664
- }
665
- }
666
-
667
- make_site_theme();
668
- }
669
-
670
- /**
671
- * Execute changes made in WordPress 2.0.
672
- *
673
- * @since 2.0.0
674
- */
675
- function upgrade_160() {
676
- global $wpdb, $wp_current_db_version;
677
-
678
- populate_roles_160();
679
-
680
- $users = $wpdb->get_results("SELECT * FROM $wpdb->users");
681
- foreach ( $users as $user ) :
682
- if ( !empty( $user->user_firstname ) )
683
- update_user_meta( $user->ID, 'first_name', wp_slash($user->user_firstname) );
684
- if ( !empty( $user->user_lastname ) )
685
- update_user_meta( $user->ID, 'last_name', wp_slash($user->user_lastname) );
686
- if ( !empty( $user->user_nickname ) )
687
- update_user_meta( $user->ID, 'nickname', wp_slash($user->user_nickname) );
688
- if ( !empty( $user->user_level ) )
689
- update_user_meta( $user->ID, $wpdb->prefix . 'user_level', $user->user_level );
690
- if ( !empty( $user->user_icq ) )
691
- update_user_meta( $user->ID, 'icq', wp_slash($user->user_icq) );
692
- if ( !empty( $user->user_aim ) )
693
- update_user_meta( $user->ID, 'aim', wp_slash($user->user_aim) );
694
- if ( !empty( $user->user_msn ) )
695
- update_user_meta( $user->ID, 'msn', wp_slash($user->user_msn) );
696
- if ( !empty( $user->user_yim ) )
697
- update_user_meta( $user->ID, 'yim', wp_slash($user->user_icq) );
698
- if ( !empty( $user->user_description ) )
699
- update_user_meta( $user->ID, 'description', wp_slash($user->user_description) );
700
-
701
- if ( isset( $user->user_idmode ) ):
702
- $idmode = $user->user_idmode;
703
- if ($idmode == 'nickname') $id = $user->user_nickname;
704
- if ($idmode == 'login') $id = $user->user_login;
705
- if ($idmode == 'firstname') $id = $user->user_firstname;
706
- if ($idmode == 'lastname') $id = $user->user_lastname;
707
- if ($idmode == 'namefl') $id = $user->user_firstname.' '.$user->user_lastname;
708
- if ($idmode == 'namelf') $id = $user->user_lastname.' '.$user->user_firstname;
709
- if (!$idmode) $id = $user->user_nickname;
710
- $wpdb->update( $wpdb->users, array('display_name' => $id), array('ID' => $user->ID) );
711
- endif;
712
-
713
- // FIXME: RESET_CAPS is temporary code to reset roles and caps if flag is set.
714
- $caps = get_user_meta( $user->ID, $wpdb->prefix . 'capabilities');
715
- if ( empty($caps) || defined('RESET_CAPS') ) {
716
- $level = get_user_meta($user->ID, $wpdb->prefix . 'user_level', true);
717
- $role = translate_level_to_role($level);
718
- update_user_meta( $user->ID, $wpdb->prefix . 'capabilities', array($role => true) );
719
- }
720
-
721
- endforeach;
722
- $old_user_fields = array( 'user_firstname', 'user_lastname', 'user_icq', 'user_aim', 'user_msn', 'user_yim', 'user_idmode', 'user_ip', 'user_domain', 'user_browser', 'user_description', 'user_nickname', 'user_level' );
723
- $wpdb->hide_errors();
724
- foreach ( $old_user_fields as $old )
725
- $wpdb->query("ALTER TABLE $wpdb->users DROP $old");
726
- $wpdb->show_errors();
727
-
728
- // Populate comment_count field of posts table.
729
- $comments = $wpdb->get_results( "SELECT comment_post_ID, COUNT(*) as c FROM $wpdb->comments WHERE comment_approved = '1' GROUP BY comment_post_ID" );
730
- if ( is_array( $comments ) )
731
- foreach ($comments as $comment)
732
- $wpdb->update( $wpdb->posts, array('comment_count' => $comment->c), array('ID' => $comment->comment_post_ID) );
733
-
734
- /*
735
- * Some alpha versions used a post status of object instead of attachment
736
- * and put the mime type in post_type instead of post_mime_type.
737
- */
738
- if ( $wp_current_db_version > 2541 && $wp_current_db_version <= 3091 ) {
739
- $objects = $wpdb->get_results("SELECT ID, post_type FROM $wpdb->posts WHERE post_status = 'object'");
740
- foreach ($objects as $object) {
741
- $wpdb->update( $wpdb->posts, array( 'post_status' => 'attachment',
742
- 'post_mime_type' => $object->post_type,
743
- 'post_type' => ''),
744
- array( 'ID' => $object->ID ) );
745
-
746
- $meta = get_post_meta($object->ID, 'imagedata', true);
747
- if ( ! empty($meta['file']) )
748
- update_attached_file( $object->ID, $meta['file'] );
749
- }
750
- }
751
- }
752
-
753
- /**
754
- * Execute changes made in WordPress 2.1.
755
- *
756
- * @since 2.1.0
757
- */
758
- function upgrade_210() {
759
- global $wpdb, $wp_current_db_version;
760
-
761
- if ( $wp_current_db_version < 3506 ) {
762
- // Update status and type.
763
- $posts = $wpdb->get_results("SELECT ID, post_status FROM $wpdb->posts");
764
-
765
- if ( ! empty($posts) ) foreach ($posts as $post) {
766
- $status = $post->post_status;
767
- $type = 'post';
768
-
769
- if ( 'static' == $status ) {
770
- $status = 'publish';
771
- $type = 'page';
772
- } else if ( 'attachment' == $status ) {
773
- $status = 'inherit';
774
- $type = 'attachment';
775
- }
776
-
777
- $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET post_status = %s, post_type = %s WHERE ID = %d", $status, $type, $post->ID) );
778
- }
779
- }
780
-
781
- if ( $wp_current_db_version < 3845 ) {
782
- populate_roles_210();
783
- }
784
-
785
- if ( $wp_current_db_version < 3531 ) {
786
- // Give future posts a post_status of future.
787
- $now = gmdate('Y-m-d H:i:59');
788
- $wpdb->query ("UPDATE $wpdb->posts SET post_status = 'future' WHERE post_status = 'publish' AND post_date_gmt > '$now'");
789
-
790
- $posts = $wpdb->get_results("SELECT ID, post_date FROM $wpdb->posts WHERE post_status ='future'");
791
- if ( !empty($posts) )
792
- foreach ( $posts as $post )
793
- wp_schedule_single_event(mysql2date('U', $post->post_date, false), 'publish_future_post', array($post->ID));
794
- }
795
- }
796
-
797
- /**
798
- * Execute changes made in WordPress 2.3.
799
- *
800
- * @since 2.3.0
801
- */
802
- function upgrade_230() {
803
- global $wp_current_db_version, $wpdb;
804
-
805
- if ( $wp_current_db_version < 5200 ) {
806
- populate_roles_230();
807
- }
808
-
809
- // Convert categories to terms.
810
- $tt_ids = array();
811
- $have_tags = false;
812
- $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_ID");
813
- foreach ($categories as $category) {
814
- $term_id = (int) $category->cat_ID;
815
- $name = $category->cat_name;
816
- $description = $category->category_description;
817
- $slug = $category->category_nicename;
818
- $parent = $category->category_parent;
819
- $term_group = 0;
820
-
821
- // Associate terms with the same slug in a term group and make slugs unique.
822
- if ( $exists = $wpdb->get_results( $wpdb->prepare("SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $slug) ) ) {
823
- $term_group = $exists[0]->term_group;
824
- $id = $exists[0]->term_id;
825
- $num = 2;
826
- do {
827
- $alt_slug = $slug . "-$num";
828
- $num++;
829
- $slug_check = $wpdb->get_var( $wpdb->prepare("SELECT slug FROM $wpdb->terms WHERE slug = %s", $alt_slug) );
830
- } while ( $slug_check );
831
-
832
- $slug = $alt_slug;
833
-
834
- if ( empty( $term_group ) ) {
835
- $term_group = $wpdb->get_var("SELECT MAX(term_group) FROM $wpdb->terms GROUP BY term_group") + 1;
836
- $wpdb->query( $wpdb->prepare("UPDATE $wpdb->terms SET term_group = %d WHERE term_id = %d", $term_group, $id) );
837
- }
838
- }
839
-
840
- $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->terms (term_id, name, slug, term_group) VALUES
841
- (%d, %s, %s, %d)", $term_id, $name, $slug, $term_group) );
842
-
843
- $count = 0;
844
- if ( !empty($category->category_count) ) {
845
- $count = (int) $category->category_count;
846
- $taxonomy = 'category';
847
- $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ( %d, %s, %s, %d, %d)", $term_id, $taxonomy, $description, $parent, $count) );
848
- $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id;
849
- }
850
-
851
- if ( !empty($category->link_count) ) {
852
- $count = (int) $category->link_count;
853
- $taxonomy = 'link_category';
854
- $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ( %d, %s, %s, %d, %d)", $term_id, $taxonomy, $description, $parent, $count) );
855
- $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id;
856
- }
857
-
858
- if ( !empty($category->tag_count) ) {
859
- $have_tags = true;
860
- $count = (int) $category->tag_count;
861
- $taxonomy = 'post_tag';
862
- $wpdb->insert( $wpdb->term_taxonomy, compact('term_id', 'taxonomy', 'description', 'parent', 'count') );
863
- $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id;
864
- }
865
-
866
- if ( empty($count) ) {
867
- $count = 0;
868
- $taxonomy = 'category';
869
- $wpdb->insert( $wpdb->term_taxonomy, compact('term_id', 'taxonomy', 'description', 'parent', 'count') );
870
- $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id;
871
- }
872
- }
873
-
874
- $select = 'post_id, category_id';
875
- if ( $have_tags )
876
- $select .= ', rel_type';
877
-
878
- $posts = $wpdb->get_results("SELECT $select FROM $wpdb->post2cat GROUP BY post_id, category_id");
879
- foreach ( $posts as $post ) {
880
- $post_id = (int) $post->post_id;
881
- $term_id = (int) $post->category_id;
882
- $taxonomy = 'category';
883
- if ( !empty($post->rel_type) && 'tag' == $post->rel_type)
884
- $taxonomy = 'tag';
885
- $tt_id = $tt_ids[$term_id][$taxonomy];
886
- if ( empty($tt_id) )
887
- continue;
888
-
889
- $wpdb->insert( $wpdb->term_relationships, array('object_id' => $post_id, 'term_taxonomy_id' => $tt_id) );
890
- }
891
-
892
- // < 3570 we used linkcategories. >= 3570 we used categories and link2cat.
893
- if ( $wp_current_db_version < 3570 ) {
894
- /*
895
- * Create link_category terms for link categories. Create a map of link
896
- * cat IDs to link_category terms.
897
- */
898
- $link_cat_id_map = array();
899
- $default_link_cat = 0;
900
- $tt_ids = array();
901
- $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM " . $wpdb->prefix . 'linkcategories');
902
- foreach ( $link_cats as $category) {
903
- $cat_id = (int) $category->cat_id;
904
- $term_id = 0;
905
- $name = wp_slash($category->cat_name);
906
- $slug = sanitize_title($name);
907
- $term_group = 0;
908
-
909
- // Associate terms with the same slug in a term group and make slugs unique.
910
- if ( $exists = $wpdb->get_results( $wpdb->prepare("SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $slug) ) ) {
911
- $term_group = $exists[0]->term_group;
912
- $term_id = $exists[0]->term_id;
913
- }
914
-
915
- if ( empty($term_id) ) {
916
- $wpdb->insert( $wpdb->terms, compact('name', 'slug', 'term_group') );
917
- $term_id = (int) $wpdb->insert_id;
918
- }
919
-
920
- $link_cat_id_map[$cat_id] = $term_id;
921
- $default_link_cat = $term_id;
922
-
923
- $wpdb->insert( $wpdb->term_taxonomy, array('term_id' => $term_id, 'taxonomy' => 'link_category', 'description' => '', 'parent' => 0, 'count' => 0) );
924
- $tt_ids[$term_id] = (int) $wpdb->insert_id;
925
- }
926
-
927
- // Associate links to cats.
928
- $links = $wpdb->get_results("SELECT link_id, link_category FROM $wpdb->links");
929
- if ( !empty($links) ) foreach ( $links as $link ) {
930
- if ( 0 == $link->link_category )
931
- continue;
932
- if ( ! isset($link_cat_id_map[$link->link_category]) )
933
- continue;
934
- $term_id = $link_cat_id_map[$link->link_category];
935
- $tt_id = $tt_ids[$term_id];
936
- if ( empty($tt_id) )
937
- continue;
938
-
939
- $wpdb->insert( $wpdb->term_relationships, array('object_id' => $link->link_id, 'term_taxonomy_id' => $tt_id) );
940
- }
941
-
942
- // Set default to the last category we grabbed during the upgrade loop.
943
- update_option('default_link_category', $default_link_cat);
944
- } else {
945
- $links = $wpdb->get_results("SELECT link_id, category_id FROM $wpdb->link2cat GROUP BY link_id, category_id");
946
- foreach ( $links as $link ) {
947
- $link_id = (int) $link->link_id;
948
- $term_id = (int) $link->category_id;
949
- $taxonomy = 'link_category';
950
- $tt_id = $tt_ids[$term_id][$taxonomy];
951
- if ( empty($tt_id) )
952
- continue;
953
- $wpdb->insert( $wpdb->term_relationships, array('object_id' => $link_id, 'term_taxonomy_id' => $tt_id) );
954
- }
955
- }
956
-
957
- if ( $wp_current_db_version < 4772 ) {
958
- // Obsolete linkcategories table
959
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'linkcategories');
960
- }
961
-
962
- // Recalculate all counts
963
- $terms = $wpdb->get_results("SELECT term_taxonomy_id, taxonomy FROM $wpdb->term_taxonomy");
964
- foreach ( (array) $terms as $term ) {
965
- if ( ('post_tag' == $term->taxonomy) || ('category' == $term->taxonomy) )
966
- $count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND post_status = 'publish' AND post_type = 'post' AND term_taxonomy_id = %d", $term->term_taxonomy_id) );
967
- else
968
- $count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term->term_taxonomy_id) );
969
- $wpdb->update( $wpdb->term_taxonomy, array('count' => $count), array('term_taxonomy_id' => $term->term_taxonomy_id) );
970
- }
971
- }
972
-
973
- /**
974
- * Remove old options from the database.
975
- *
976
- * @since 2.3.0
977
- */
978
- function upgrade_230_options_table() {
979
- global $wpdb;
980
- $old_options_fields = array( 'option_can_override', 'option_type', 'option_width', 'option_height', 'option_description', 'option_admin_level' );
981
- $wpdb->hide_errors();
982
- foreach ( $old_options_fields as $old )
983
- $wpdb->query("ALTER TABLE $wpdb->options DROP $old");
984
- $wpdb->show_errors();
985
- }
986
-
987
- /**
988
- * Remove old categories, link2cat, and post2cat database tables.
989
- *
990
- * @since 2.3.0
991
- */
992
- function upgrade_230_old_tables() {
993
- global $wpdb;
994
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'categories');
995
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'link2cat');
996
- $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'post2cat');
997
- }
998
-
999
- /**
1000
- * Upgrade old slugs made in version 2.2.
1001
- *
1002
- * @since 2.2.0
1003
- */
1004
- function upgrade_old_slugs() {
1005
- // Upgrade people who were using the Redirect Old Slugs plugin.
1006
- global $wpdb;
1007
- $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = '_wp_old_slug' WHERE meta_key = 'old_slug'");
1008
- }
1009
-
1010
- /**
1011
- * Execute changes made in WordPress 2.5.0.
1012
- *
1013
- * @since 2.5.0
1014
- */
1015
- function upgrade_250() {
1016
- global $wp_current_db_version;
1017
-
1018
- if ( $wp_current_db_version < 6689 ) {
1019
- populate_roles_250();
1020
- }
1021
-
1022
- }
1023
-
1024
- /**
1025
- * Execute changes made in WordPress 2.5.2.
1026
- *
1027
- * @since 2.5.2
1028
- */
1029
- function upgrade_252() {
1030
- global $wpdb;
1031
-
1032
- $wpdb->query("UPDATE $wpdb->users SET user_activation_key = ''");
1033
- }
1034
-
1035
- /**
1036
- * Execute changes made in WordPress 2.6.
1037
- *
1038
- * @since 2.6.0
1039
- */
1040
- function upgrade_260() {
1041
- global $wp_current_db_version;
1042
-
1043
- if ( $wp_current_db_version < 8000 )
1044
- populate_roles_260();
1045
- }
1046
-
1047
- /**
1048
- * Execute changes made in WordPress 2.7.
1049
- *
1050
- * @since 2.7.0
1051
- */
1052
- function upgrade_270() {
1053
- global $wpdb, $wp_current_db_version;
1054
-
1055
- if ( $wp_current_db_version < 8980 )
1056
- populate_roles_270();
1057
-
1058
- // Update post_date for unpublished posts with empty timestamp
1059
- if ( $wp_current_db_version < 8921 )
1060
- $wpdb->query( "UPDATE $wpdb->posts SET post_date = post_modified WHERE post_date = '0000-00-00 00:00:00'" );
1061
- }
1062
-
1063
- /**
1064
- * Execute changes made in WordPress 2.8.
1065
- *
1066
- * @since 2.8.0
1067
- */
1068
- function upgrade_280() {
1069
- global $wp_current_db_version, $wpdb;
1070
-
1071
- if ( $wp_current_db_version < 10360 )
1072
- populate_roles_280();
1073
- if ( is_multisite() ) {
1074
- $start = 0;
1075
- while( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
1076
- foreach( $rows as $row ) {
1077
- $value = $row->option_value;
1078
- if ( !@unserialize( $value ) )
1079
- $value = stripslashes( $value );
1080
- if ( $value !== $row->option_value ) {
1081
- update_option( $row->option_name, $value );
1082
- }
1083
- }
1084
- $start += 20;
1085
- }
1086
- refresh_blog_details( $wpdb->blogid );
1087
- }
1088
- }
1089
-
1090
- /**
1091
- * Execute changes made in WordPress 2.9.
1092
- *
1093
- * @since 2.9.0
1094
- */
1095
- function upgrade_290() {
1096
- global $wp_current_db_version;
1097
-
1098
- if ( $wp_current_db_version < 11958 ) {
1099
- // Previously, setting depth to 1 would redundantly disable threading, but now 2 is the minimum depth to avoid confusion
1100
- if ( get_option( 'thread_comments_depth' ) == '1' ) {
1101
- update_option( 'thread_comments_depth', 2 );
1102
- update_option( 'thread_comments', 0 );
1103
- }
1104
- }
1105
- }
1106
-
1107
- /**
1108
- * Execute changes made in WordPress 3.0.
1109
- *
1110
- * @since 3.0.0
1111
- */
1112
- function upgrade_300() {
1113
- global $wp_current_db_version, $wpdb;
1114
-
1115
- if ( $wp_current_db_version < 15093 )
1116
- populate_roles_300();
1117
-
1118
- if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )
1119
- add_site_option( 'siteurl', '' );
1120
-
1121
- // 3.0 screen options key name changes.
1122
- if ( is_main_site() && !defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) {
1123
- $sql = "DELETE FROM $wpdb->usermeta
1124
- WHERE meta_key LIKE %s
1125
- OR meta_key LIKE %s
1126
- OR meta_key LIKE %s
1127
- OR meta_key LIKE %s
1128
- OR meta_key LIKE %s
1129
- OR meta_key LIKE %s
1130
- OR meta_key = 'manageedittagscolumnshidden'
1131
- OR meta_key = 'managecategoriescolumnshidden'
1132
- OR meta_key = 'manageedit-tagscolumnshidden'
1133
- OR meta_key = 'manageeditcolumnshidden'
1134
- OR meta_key = 'categories_per_page'
1135
- OR meta_key = 'edit_tags_per_page'";
1136
- $prefix = $wpdb->esc_like( $wpdb->base_prefix );
1137
- $wpdb->query( $wpdb->prepare( $sql,
1138
- $prefix . '%' . $wpdb->esc_like( 'meta-box-hidden' ) . '%',
1139
- $prefix . '%' . $wpdb->esc_like( 'closedpostboxes' ) . '%',
1140
- $prefix . '%' . $wpdb->esc_like( 'manage-' ) . '%' . $wpdb->esc_like( '-columns-hidden' ) . '%',
1141
- $prefix . '%' . $wpdb->esc_like( 'meta-box-order' ) . '%',
1142
- $prefix . '%' . $wpdb->esc_like( 'metaboxorder' ) . '%',
1143
- $prefix . '%' . $wpdb->esc_like( 'screen_layout' ) . '%'
1144
- ) );
1145
- }
1146
-
1147
- }
1148
-
1149
- /**
1150
- * Execute changes made in WordPress 3.3.
1151
- *
1152
- * @since 3.3.0
1153
- */
1154
- function upgrade_330() {
1155
- global $wp_current_db_version, $wpdb, $wp_registered_widgets, $sidebars_widgets;
1156
-
1157
- if ( $wp_current_db_version < 19061 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
1158
- $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('show_admin_bar_admin', 'plugins_last_view')" );
1159
- }
1160
-
1161
- if ( $wp_current_db_version >= 11548 )
1162
- return;
1163
-
1164
- $sidebars_widgets = get_option( 'sidebars_widgets', array() );
1165
- $_sidebars_widgets = array();
1166
-
1167
- if ( isset($sidebars_widgets['wp_inactive_widgets']) || empty($sidebars_widgets) )
1168
- $sidebars_widgets['array_version'] = 3;
1169
- elseif ( !isset($sidebars_widgets['array_version']) )
1170
- $sidebars_widgets['array_version'] = 1;
1171
-
1172
- switch ( $sidebars_widgets['array_version'] ) {
1173
- case 1 :
1174
- foreach ( (array) $sidebars_widgets as $index => $sidebar )
1175
- if ( is_array($sidebar) )
1176
- foreach ( (array) $sidebar as $i => $name ) {
1177
- $id = strtolower($name);
1178
- if ( isset($wp_registered_widgets[$id]) ) {
1179
- $_sidebars_widgets[$index][$i] = $id;
1180
- continue;
1181
- }
1182
- $id = sanitize_title($name);
1183
- if ( isset($wp_registered_widgets[$id]) ) {
1184
- $_sidebars_widgets[$index][$i] = $id;
1185
- continue;
1186
- }
1187
-
1188
- $found = false;
1189
-
1190
- foreach ( $wp_registered_widgets as $widget_id => $widget ) {
1191
- if ( strtolower($widget['name']) == strtolower($name) ) {
1192
- $_sidebars_widgets[$index][$i] = $widget['id'];
1193
- $found = true;
1194
- break;
1195
- } elseif ( sanitize_title($widget['name']) == sanitize_title($name) ) {
1196
- $_sidebars_widgets[$index][$i] = $widget['id'];
1197
- $found = true;
1198
- break;
1199
- }
1200
- }
1201
-
1202
- if ( $found )
1203
- continue;
1204
-
1205
- unset($_sidebars_widgets[$index][$i]);
1206
- }
1207
- $_sidebars_widgets['array_version'] = 2;
1208
- $sidebars_widgets = $_sidebars_widgets;
1209
- unset($_sidebars_widgets);
1210
-
1211
- case 2 :
1212
- $sidebars_widgets = retrieve_widgets();
1213
- $sidebars_widgets['array_version'] = 3;
1214
- update_option( 'sidebars_widgets', $sidebars_widgets );
1215
- }
1216
- }
1217
-
1218
- /**
1219
- * Execute changes made in WordPress 3.4.
1220
- *
1221
- * @since 3.4.0
1222
- */
1223
- function upgrade_340() {
1224
- global $wp_current_db_version, $wpdb;
1225
-
1226
- if ( $wp_current_db_version < 19798 ) {
1227
- $wpdb->hide_errors();
1228
- $wpdb->query( "ALTER TABLE $wpdb->options DROP COLUMN blog_id" );
1229
- $wpdb->show_errors();
1230
- }
1231
-
1232
- if ( $wp_current_db_version < 19799 ) {
1233
- $wpdb->hide_errors();
1234
- $wpdb->query("ALTER TABLE $wpdb->comments DROP INDEX comment_approved");
1235
- $wpdb->show_errors();
1236
- }
1237
-
1238
- if ( $wp_current_db_version < 20022 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
1239
- $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'themes_last_view'" );
1240
- }
1241
-
1242
- if ( $wp_current_db_version < 20080 ) {
1243
- if ( 'yes' == $wpdb->get_var( "SELECT autoload FROM $wpdb->options WHERE option_name = 'uninstall_plugins'" ) ) {
1244
- $uninstall_plugins = get_option( 'uninstall_plugins' );
1245
- delete_option( 'uninstall_plugins' );
1246
- add_option( 'uninstall_plugins', $uninstall_plugins, null, 'no' );
1247
- }
1248
- }
1249
- }
1250
-
1251
- /**
1252
- * Execute changes made in WordPress 3.5.
1253
- *
1254
- * @since 3.5.0
1255
- */
1256
- function upgrade_350() {
1257
- global $wp_current_db_version, $wpdb;
1258
-
1259
- if ( $wp_current_db_version < 22006 && $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) )
1260
- update_option( 'link_manager_enabled', 1 ); // Previously set to 0 by populate_options()
1261
-
1262
- if ( $wp_current_db_version < 21811 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
1263
- $meta_keys = array();
1264
- foreach ( array_merge( get_post_types(), get_taxonomies() ) as $name ) {
1265
- if ( false !== strpos( $name, '-' ) )
1266
- $meta_keys[] = 'edit_' . str_replace( '-', '_', $name ) . '_per_page';
1267
- }
1268
- if ( $meta_keys ) {
1269
- $meta_keys = implode( "', '", $meta_keys );
1270
- $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('$meta_keys')" );
1271
- }
1272
- }
1273
-
1274
- if ( $wp_current_db_version < 22422 && $term = get_term_by( 'slug', 'post-format-standard', 'post_format' ) )
1275
- wp_delete_term( $term->term_id, 'post_format' );
1276
- }
1277
-
1278
- /**
1279
- * Execute changes made in WordPress 3.7.
1280
- *
1281
- * @since 3.7.0
1282
- */
1283
- function upgrade_370() {
1284
- global $wp_current_db_version;
1285
- if ( $wp_current_db_version < 25824 )
1286
- wp_clear_scheduled_hook( 'wp_auto_updates_maybe_update' );
1287
- }
1288
-
1289
- /**
1290
- * Execute changes made in WordPress 3.7.2.
1291
- *
1292
- * @since 3.7.2
1293
- * @since 3.8.0
1294
- */
1295
- function upgrade_372() {
1296
- global $wp_current_db_version;
1297
- if ( $wp_current_db_version < 26148 )
1298
- wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
1299
- }
1300
-
1301
- /**
1302
- * Execute changes made in WordPress 3.8.0.
1303
- *
1304
- * @since 3.8.0
1305
- */
1306
- function upgrade_380() {
1307
- global $wp_current_db_version;
1308
- if ( $wp_current_db_version < 26691 ) {
1309
- deactivate_plugins( array( 'mp6/mp6.php' ), true );
1310
- }
1311
- }
1312
-
1313
- /**
1314
- * Execute changes made in WordPress 4.0.0.
1315
- *
1316
- * @since 4.0.0
1317
- */
1318
- function upgrade_400() {
1319
- global $wp_current_db_version;
1320
- if ( $wp_current_db_version < 29630 ) {
1321
- if ( ! is_multisite() && false === get_option( 'WPLANG' ) ) {
1322
- if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && in_array( WPLANG, get_available_languages() ) ) {
1323
- update_option( 'WPLANG', WPLANG );
1324
- } else {
1325
- update_option( 'WPLANG', '' );
1326
- }
1327
- }
1328
- }
1329
- }
1330
-
1331
- /**
1332
- * Execute network level changes
1333
- *
1334
- * @since 3.0.0
1335
- */
1336
- function upgrade_network() {
1337
- global $wp_current_db_version, $wpdb;
1338
-
1339
- // Always.
1340
- if ( is_main_network() ) {
1341
- /*
1342
- * Deletes all expired transients. The multi-table delete syntax is used
1343
- * to delete the transient record from table a, and the corresponding
1344
- * transient_timeout record from table b.
1345
- */
1346
- $time = time();
1347
- $sql = "DELETE a, b FROM $wpdb->sitemeta a, $wpdb->sitemeta b
1348
- WHERE a.meta_key LIKE %s
1349
- AND a.meta_key NOT LIKE %s
1350
- AND b.meta_key = CONCAT( '_site_transient_timeout_', SUBSTRING( a.meta_key, 17 ) )
1351
- AND b.meta_value < %d";
1352
- $wpdb->query( $wpdb->prepare( $sql, $wpdb->esc_like( '_site_transient_' ) . '%', $wpdb->esc_like ( '_site_transient_timeout_' ) . '%', $time ) );
1353
- }
1354
-
1355
- // 2.8.
1356
- if ( $wp_current_db_version < 11549 ) {
1357
- $wpmu_sitewide_plugins = get_site_option( 'wpmu_sitewide_plugins' );
1358
- $active_sitewide_plugins = get_site_option( 'active_sitewide_plugins' );
1359
- if ( $wpmu_sitewide_plugins ) {
1360
- if ( !$active_sitewide_plugins )
1361
- $sitewide_plugins = (array) $wpmu_sitewide_plugins;
1362
- else
1363
- $sitewide_plugins = array_merge( (array) $active_sitewide_plugins, (array) $wpmu_sitewide_plugins );
1364
-
1365
- update_site_option( 'active_sitewide_plugins', $sitewide_plugins );
1366
- }
1367
- delete_site_option( 'wpmu_sitewide_plugins' );
1368
- delete_site_option( 'deactivated_sitewide_plugins' );
1369
-
1370
- $start = 0;
1371
- while( $rows = $wpdb->get_results( "SELECT meta_key, meta_value FROM {$wpdb->sitemeta} ORDER BY meta_id LIMIT $start, 20" ) ) {
1372
- foreach( $rows as $row ) {
1373
- $value = $row->meta_value;
1374
- if ( !@unserialize( $value ) )
1375
- $value = stripslashes( $value );
1376
- if ( $value !== $row->meta_value ) {
1377
- update_site_option( $row->meta_key, $value );
1378
- }
1379
- }
1380
- $start += 20;
1381
- }
1382
- }
1383
-
1384
- // 3.0
1385
- if ( $wp_current_db_version < 13576 )
1386
- update_site_option( 'global_terms_enabled', '1' );
1387
-
1388
- // 3.3
1389
- if ( $wp_current_db_version < 19390 )
1390
- update_site_option( 'initial_db_version', $wp_current_db_version );
1391
-
1392
- if ( $wp_current_db_version < 19470 ) {
1393
- if ( false === get_site_option( 'active_sitewide_plugins' ) )
1394
- update_site_option( 'active_sitewide_plugins', array() );
1395
- }
1396
-
1397
- // 3.4
1398
- if ( $wp_current_db_version < 20148 ) {
1399
- // 'allowedthemes' keys things by stylesheet. 'allowed_themes' keyed things by name.
1400
- $allowedthemes = get_site_option( 'allowedthemes' );
1401
- $allowed_themes = get_site_option( 'allowed_themes' );
1402
- if ( false === $allowedthemes && is_array( $allowed_themes ) && $allowed_themes ) {
1403
- $converted = array();
1404
- $themes = wp_get_themes();
1405
- foreach ( $themes as $stylesheet => $theme_data ) {
1406
- if ( isset( $allowed_themes[ $theme_data->get('Name') ] ) )
1407
- $converted[ $stylesheet ] = true;
1408
- }
1409
- update_site_option( 'allowedthemes', $converted );
1410
- delete_site_option( 'allowed_themes' );
1411
- }
1412
- }
1413
-
1414
- // 3.5
1415
- if ( $wp_current_db_version < 21823 )
1416
- update_site_option( 'ms_files_rewriting', '1' );
1417
-
1418
- // 3.5.2
1419
- if ( $wp_current_db_version < 24448 ) {
1420
- $illegal_names = get_site_option( 'illegal_names' );
1421
- if ( is_array( $illegal_names ) && count( $illegal_names ) === 1 ) {
1422
- $illegal_name = reset( $illegal_names );
1423
- $illegal_names = explode( ' ', $illegal_name );
1424
- update_site_option( 'illegal_names', $illegal_names );
1425
- }
1426
- }
1427
- }
1428
-
1429
- // The functions we use to actually do stuff
1430
-
1431
- // General
1432
-
1433
- /**
1434
- * {@internal Missing Short Description}}
1435
- *
1436
- * {@internal Missing Long Description}}
1437
- *
1438
- * @since 1.0.0
1439
- *
1440
- * @param string $table_name Database table name to create.
1441
- * @param string $create_ddl SQL statement to create table.
1442
- * @return bool If table already exists or was created by function.
1443
- */
1444
- function maybe_create_table($table_name, $create_ddl) {
1445
- global $wpdb;
1446
-
1447
- $query = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $table_name ) );
1448
-
1449
- if ( $wpdb->get_var( $query ) == $table_name ) {
1450
- return true;
1451
- }
1452
-
1453
- // Didn't find it try to create it..
1454
- $wpdb->query($create_ddl);
1455
-
1456
- // We cannot directly tell that whether this succeeded!
1457
- if ( $wpdb->get_var( $query ) == $table_name ) {
1458
- return true;
1459
- }
1460
- return false;
1461
- }
1462
-
1463
- /**
1464
- * {@internal Missing Short Description}}
1465
- *
1466
- * {@internal Missing Long Description}}
1467
- *
1468
- * @since 1.0.1
1469
- *
1470
- * @param string $table Database table name.
1471
- * @param string $index Index name to drop.
1472
- * @return bool True, when finished.
1473
- */
1474
- function drop_index($table, $index) {
1475
- global $wpdb;
1476
- $wpdb->hide_errors();
1477
- $wpdb->query("ALTER TABLE `$table` DROP INDEX `$index`");
1478
- // Now we need to take out all the extra ones we may have created
1479
- for ($i = 0; $i < 25; $i++) {
1480
- $wpdb->query("ALTER TABLE `$table` DROP INDEX `{$index}_$i`");
1481
- }
1482
- $wpdb->show_errors();
1483
- return true;
1484
- }
1485
-
1486
- /**
1487
- * {@internal Missing Short Description}}
1488
- *
1489
- * {@internal Missing Long Description}}
1490
- *
1491
- * @since 1.0.1
1492
- *
1493
- * @param string $table Database table name.
1494
- * @param string $index Database table index column.
1495
- * @return bool True, when done with execution.
1496
- */
1497
- function add_clean_index($table, $index) {
1498
- global $wpdb;
1499
- drop_index($table, $index);
1500
- $wpdb->query("ALTER TABLE `$table` ADD INDEX ( `$index` )");
1501
- return true;
1502
- }
1503
-
1504
- /**
1505
- ** maybe_add_column()
1506
- ** Add column to db table if it doesn't exist.
1507
- ** Returns: true if already exists or on successful completion
1508
- ** false on error
1509
- */
1510
- function maybe_add_column($table_name, $column_name, $create_ddl) {
1511
- global $wpdb;
1512
- foreach ($wpdb->get_col("DESC $table_name", 0) as $column ) {
1513
- if ($column == $column_name) {
1514
- return true;
1515
- }
1516
- }
1517
-
1518
- // Didn't find it try to create it.
1519
- $wpdb->query($create_ddl);
1520
-
1521
- // We cannot directly tell that whether this succeeded!
1522
- foreach ($wpdb->get_col("DESC $table_name", 0) as $column ) {
1523
- if ($column == $column_name) {
1524
- return true;
1525
- }
1526
- }
1527
- return false;
1528
- }
1529
-
1530
- /**
1531
- * Retrieve all options as it was for 1.2.
1532
- *
1533
- * @since 1.2.0
1534
- *
1535
- * @return array List of options.
1536
- */
1537
- function get_alloptions_110() {
1538
- global $wpdb;
1539
- $all_options = new stdClass;
1540
- if ( $options = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" ) ) {
1541
- foreach ( $options as $option ) {
1542
- if ( 'siteurl' == $option->option_name || 'home' == $option->option_name || 'category_base' == $option->option_name )
1543
- $option->option_value = untrailingslashit( $option->option_value );
1544
- $all_options->{$option->option_name} = stripslashes( $option->option_value );
1545
- }
1546
- }
1547
- return $all_options;
1548
- }
1549
-
1550
- /**
1551
- * Version of get_option that is private to install/upgrade.
1552
- *
1553
- * @since 1.5.1
1554
- * @access private
1555
- *
1556
- * @param string $setting Option name.
1557
- * @return mixed
1558
- */
1559
- function __get_option($setting) {
1560
- global $wpdb;
1561
-
1562
- if ( $setting == 'home' && defined( 'WP_HOME' ) )
1563
- return untrailingslashit( WP_HOME );
1564
-
1565
- if ( $setting == 'siteurl' && defined( 'WP_SITEURL' ) )
1566
- return untrailingslashit( WP_SITEURL );
1567
-
1568
- $option = $wpdb->get_var( $wpdb->prepare("SELECT option_value FROM $wpdb->options WHERE option_name = %s", $setting ) );
1569
-
1570
- if ( 'home' == $setting && '' == $option )
1571
- return __get_option( 'siteurl' );
1572
-
1573
- if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting || 'tag_base' == $setting )
1574
- $option = untrailingslashit( $option );
1575
-
1576
- return maybe_unserialize( $option );
1577
- }
1578
-
1579
- /**
1580
- * {@internal Missing Short Description}}
1581
- *
1582
- * {@internal Missing Long Description}}
1583
- *
1584
- * @since 1.5.0
1585
- *
1586
- * @param string $content
1587
- * @return string
1588
- */
1589
- function deslash($content) {
1590
- // Note: \\\ inside a regex denotes a single backslash.
1591
-
1592
- /*
1593
- * Replace one or more backslashes followed by a single quote with
1594
- * a single quote.
1595
- */
1596
- $content = preg_replace("/\\\+'/", "'", $content);
1597
-
1598
- /*
1599
- * Replace one or more backslashes followed by a double quote with
1600
- * a double quote.
1601
- */
1602
- $content = preg_replace('/\\\+"/', '"', $content);
1603
-
1604
- // Replace one or more backslashes with one backslash.
1605
- $content = preg_replace("/\\\+/", "\\", $content);
1606
-
1607
- return $content;
1608
- }
1609
-
1610
- /**
1611
- * {@internal Missing Short Description}}
1612
- *
1613
- * {@internal Missing Long Description}}
1614
- *
1615
- * @since 1.5.0
1616
- *
1617
- * @param unknown_type $queries
1618
- * @param unknown_type $execute
1619
- * @return unknown
1620
- */
1621
- function dbDelta( $queries = '', $execute = true ) {
1622
- global $wpdb;
1623
-
1624
- if ( in_array( $queries, array( '', 'all', 'blog', 'global', 'ms_global' ), true ) )
1625
- $queries = wp_get_db_schema( $queries );
1626
-
1627
- // Separate individual queries into an array
1628
- if ( !is_array($queries) ) {
1629
- $queries = explode( ';', $queries );
1630
- $queries = array_filter( $queries );
1631
- }
1632
-
1633
- /**
1634
- * Filter the dbDelta SQL queries.
1635
- *
1636
- * @since 3.3.0
1637
- *
1638
- * @param array $queries An array of dbDelta SQL queries.
1639
- */
1640
- $queries = apply_filters( 'dbdelta_queries', $queries );
1641
-
1642
- $cqueries = array(); // Creation Queries
1643
- $iqueries = array(); // Insertion Queries
1644
- $for_update = array();
1645
-
1646
- // Create a tablename index for an array ($cqueries) of queries
1647
- foreach($queries as $qry) {
1648
- if (preg_match("|CREATE TABLE ([^ ]*)|", $qry, $matches)) {
1649
- $cqueries[ trim( $matches[1], '`' ) ] = $qry;
1650
- $for_update[$matches[1]] = 'Created table '.$matches[1];
1651
- } else if (preg_match("|CREATE DATABASE ([^ ]*)|", $qry, $matches)) {
1652
- array_unshift($cqueries, $qry);
1653
- } else if (preg_match("|INSERT INTO ([^ ]*)|", $qry, $matches)) {
1654
- $iqueries[] = $qry;
1655
- } else if (preg_match("|UPDATE ([^ ]*)|", $qry, $matches)) {
1656
- $iqueries[] = $qry;
1657
- } else {
1658
- // Unrecognized query type
1659
- }
1660
- }
1661
-
1662
- /**
1663
- * Filter the dbDelta SQL queries for creating tables and/or databases.
1664
- *
1665
- * Queries filterable via this hook contain "CREATE TABLE" or "CREATE DATABASE".
1666
- *
1667
- * @since 3.3.0
1668
- *
1669
- * @param array $cqueries An array of dbDelta create SQL queries.
1670
- */
1671
- $cqueries = apply_filters( 'dbdelta_create_queries', $cqueries );
1672
-
1673
- /**
1674
- * Filter the dbDelta SQL queries for inserting or updating.
1675
- *
1676
- * Queries filterable via this hook contain "INSERT INTO" or "UPDATE".
1677
- *
1678
- * @since 3.3.0
1679
- *
1680
- * @param array $iqueries An array of dbDelta insert or update SQL queries.
1681
- */
1682
- $iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries );
1683
-
1684
- $global_tables = $wpdb->tables( 'global' );
1685
- foreach ( $cqueries as $table => $qry ) {
1686
- // Upgrade global tables only for the main site. Don't upgrade at all if DO_NOT_UPGRADE_GLOBAL_TABLES is defined.
1687
- if ( in_array( $table, $global_tables ) && ( !is_main_site() || defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) ) {
1688
- unset( $cqueries[ $table ], $for_update[ $table ] );
1689
- continue;
1690
- }
1691
-
1692
- // Fetch the table column structure from the database
1693
- $suppress = $wpdb->suppress_errors();
1694
- $tablefields = $wpdb->get_results("DESCRIBE {$table};");
1695
- $wpdb->suppress_errors( $suppress );
1696
-
1697
- if ( ! $tablefields )
1698
- continue;
1699
-
1700
- // Clear the field and index arrays.
1701
- $cfields = $indices = array();
1702
-
1703
- // Get all of the field names in the query from between the parentheses.
1704
- preg_match("|\((.*)\)|ms", $qry, $match2);
1705
- $qryline = trim($match2[1]);
1706
-
1707
- // Separate field lines into an array.
1708
- $flds = explode("\n", $qryline);
1709
-
1710
- // todo: Remove this?
1711
- //echo "<hr/><pre>\n".print_r(strtolower($table), true).":\n".print_r($cqueries, true)."</pre><hr/>";
1712
-
1713
- // For every field line specified in the query.
1714
- foreach ($flds as $fld) {
1715
-
1716
- // Extract the field name.
1717
- preg_match("|^([^ ]*)|", trim($fld), $fvals);
1718
- $fieldname = trim( $fvals[1], '`' );
1719
-
1720
- // Verify the found field name.
1721
- $validfield = true;
1722
- switch (strtolower($fieldname)) {
1723
- case '':
1724
- case 'primary':
1725
- case 'index':
1726
- case 'fulltext':
1727
- case 'unique':
1728
- case 'key':
1729
- $validfield = false;
1730
- $indices[] = trim(trim($fld), ", \n");
1731
- break;
1732
- }
1733
- $fld = trim($fld);
1734
-
1735
- // If it's a valid field, add it to the field array.
1736
- if ($validfield) {
1737
- $cfields[strtolower($fieldname)] = trim($fld, ", \n");
1738
- }
1739
- }
1740
-
1741
- // For every field in the table.
1742
- foreach ($tablefields as $tablefield) {
1743
-
1744
- // If the table field exists in the field array ...
1745
- if (array_key_exists(strtolower($tablefield->Field), $cfields)) {
1746
-
1747
- // Get the field type from the query.
1748
- preg_match("|".$tablefield->Field." ([^ ]*( unsigned)?)|i", $cfields[strtolower($tablefield->Field)], $matches);
1749
- $fieldtype = $matches[1];
1750
-
1751
- // Is actual field type different from the field type in query?
1752
- if ($tablefield->Type != $fieldtype) {
1753
- // Add a query to change the column type
1754
- $cqueries[] = "ALTER TABLE {$table} CHANGE COLUMN {$tablefield->Field} " . $cfields[strtolower($tablefield->Field)];
1755
- $for_update[$table.'.'.$tablefield->Field] = "Changed type of {$table}.{$tablefield->Field} from {$tablefield->Type} to {$fieldtype}";
1756
- }
1757
-
1758
- // Get the default value from the array
1759
- // todo: Remove this?
1760
- //echo "{$cfields[strtolower($tablefield->Field)]}<br>";
1761
- if (preg_match("| DEFAULT '(.*?)'|i", $cfields[strtolower($tablefield->Field)], $matches)) {
1762
- $default_value = $matches[1];
1763
- if ($tablefield->Default != $default_value) {
1764
- // Add a query to change the column's default value
1765
- $cqueries[] = "ALTER TABLE {$table} ALTER COLUMN {$tablefield->Field} SET DEFAULT '{$default_value}'";
1766
- $for_update[$table.'.'.$tablefield->Field] = "Changed default value of {$table}.{$tablefield->Field} from {$tablefield->Default} to {$default_value}";
1767
- }
1768
- }
1769
-
1770
- // Remove the field from the array (so it's not added).
1771
- unset($cfields[strtolower($tablefield->Field)]);
1772
- } else {
1773
- // This field exists in the table, but not in the creation queries?
1774
- }
1775
- }
1776
-
1777
- // For every remaining field specified for the table.
1778
- foreach ($cfields as $fieldname => $fielddef) {
1779
- // Push a query line into $cqueries that adds the field to that table.
1780
- $cqueries[] = "ALTER TABLE {$table} ADD COLUMN $fielddef";
1781
- $for_update[$table.'.'.$fieldname] = 'Added column '.$table.'.'.$fieldname;
1782
- }
1783
-
1784
- // Index stuff goes here. Fetch the table index structure from the database.
1785
- $tableindices = $wpdb->get_results("SHOW INDEX FROM {$table};");
1786
-
1787
- if ($tableindices) {
1788
- // Clear the index array.
1789
- unset($index_ary);
1790
-
1791
- // For every index in the table.
1792
- foreach ($tableindices as $tableindex) {
1793
-
1794
- // Add the index to the index data array.
1795
- $keyname = $tableindex->Key_name;
1796
- $index_ary[$keyname]['columns'][] = array('fieldname' => $tableindex->Column_name, 'subpart' => $tableindex->Sub_part);
1797
- $index_ary[$keyname]['unique'] = ($tableindex->Non_unique == 0)?true:false;
1798
- }
1799
-
1800
- // For each actual index in the index array.
1801
- foreach ($index_ary as $index_name => $index_data) {
1802
-
1803
- // Build a create string to compare to the query.
1804
- $index_string = '';
1805
- if ($index_name == 'PRIMARY') {
1806
- $index_string .= 'PRIMARY ';
1807
- } else if($index_data['unique']) {
1808
- $index_string .= 'UNIQUE ';
1809
- }
1810
- $index_string .= 'KEY ';
1811
- if ($index_name != 'PRIMARY') {
1812
- $index_string .= $index_name;
1813
- }
1814
- $index_columns = '';
1815
-
1816
- // For each column in the index.
1817
- foreach ($index_data['columns'] as $column_data) {
1818
- if ($index_columns != '') $index_columns .= ',';
1819
-
1820
- // Add the field to the column list string.
1821
- $index_columns .= $column_data['fieldname'];
1822
- if ($column_data['subpart'] != '') {
1823
- $index_columns .= '('.$column_data['subpart'].')';
1824
- }
1825
- }
1826
- // Add the column list to the index create string.
1827
- $index_string .= ' ('.$index_columns.')';
1828
- if (!(($aindex = array_search($index_string, $indices)) === false)) {
1829
- unset($indices[$aindex]);
1830
- // todo: Remove this?
1831
- //echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br />Found index:".$index_string."</pre>\n";
1832
- }
1833
- // todo: Remove this?
1834
- //else echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br /><b>Did not find index:</b>".$index_string."<br />".print_r($indices, true)."</pre>\n";
1835
- }
1836
- }
1837
-
1838
- // For every remaining index specified for the table.
1839
- foreach ( (array) $indices as $index ) {
1840
- // Push a query line into $cqueries that adds the index to that table.
1841
- $cqueries[] = "ALTER TABLE {$table} ADD $index";
1842
- $for_update[] = 'Added index ' . $table . ' ' . $index;
1843
- }
1844
-
1845
- // Remove the original table creation query from processing.
1846
- unset( $cqueries[ $table ], $for_update[ $table ] );
1847
- }
1848
-
1849
- $allqueries = array_merge($cqueries, $iqueries);
1850
- if ($execute) {
1851
- foreach ($allqueries as $query) {
1852
- // todo: Remove this?
1853
- //echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">".print_r($query, true)."</pre>\n";
1854
- $wpdb->query($query);
1855
- }
1856
- }
1857
-
1858
- return $for_update;
1859
- }
1860
-
1861
- /**
1862
- * {@internal Missing Short Description}}
1863
- *
1864
- * {@internal Missing Long Description}}
1865
- *
1866
- * @since 1.5.0
1867
- */
1868
- function make_db_current( $tables = 'all' ) {
1869
- $alterations = dbDelta( $tables );
1870
- echo "<ol>\n";
1871
- foreach($alterations as $alteration) echo "<li>$alteration</li>\n";
1872
- echo "</ol>\n";
1873
- }
1874
-
1875
- /**
1876
- * {@internal Missing Short Description}}
1877
- *
1878
- * {@internal Missing Long Description}}
1879
- *
1880
- * @since 1.5.0
1881
- */
1882
- function make_db_current_silent( $tables = 'all' ) {
1883
- dbDelta( $tables );
1884
- }
1885
-
1886
- /**
1887
- * {@internal Missing Short Description}}
1888
- *
1889
- * {@internal Missing Long Description}}
1890
- *
1891
- * @since 1.5.0
1892
- *
1893
- * @param unknown_type $theme_name
1894
- * @param unknown_type $template
1895
- * @return unknown
1896
- */
1897
- function make_site_theme_from_oldschool($theme_name, $template) {
1898
- $home_path = get_home_path();
1899
- $site_dir = WP_CONTENT_DIR . "/themes/$template";
1900
-
1901
- if (! file_exists("$home_path/index.php"))
1902
- return false;
1903
-
1904
- /*
1905
- * Copy files from the old locations to the site theme.
1906
- * TODO: This does not copy arbitrary include dependencies. Only the standard WP files are copied.
1907
- */
1908
- $files = array('index.php' => 'index.php', 'wp-layout.css' => 'style.css', 'wp-comments.php' => 'comments.php', 'wp-comments-popup.php' => 'comments-popup.php');
1909
-
1910
- foreach ($files as $oldfile => $newfile) {
1911
- if ($oldfile == 'index.php')
1912
- $oldpath = $home_path;
1913
- else
1914
- $oldpath = ABSPATH;
1915
-
1916
- // Check to make sure it's not a new index.
1917
- if ($oldfile == 'index.php') {
1918
- $index = implode('', file("$oldpath/$oldfile"));
1919
- if (strpos($index, 'WP_USE_THEMES') !== false) {
1920
- if (! @copy(WP_CONTENT_DIR . '/themes/' . WP_DEFAULT_THEME . '/index.php', "$site_dir/$newfile"))
1921
- return false;
1922
-
1923
- // Don't copy anything.
1924
- continue;
1925
- }
1926
- }
1927
-
1928
- if (! @copy("$oldpath/$oldfile", "$site_dir/$newfile"))
1929
- return false;
1930
-
1931
- chmod("$site_dir/$newfile", 0777);
1932
-
1933
- // Update the blog header include in each file.
1934
- $lines = explode("\n", implode('', file("$site_dir/$newfile")));
1935
- if ($lines) {
1936
- $f = fopen("$site_dir/$newfile", 'w');
1937
-
1938
- foreach ($lines as $line) {
1939
- if (preg_match('/require.*wp-blog-header/', $line))
1940
- $line = '//' . $line;
1941
-
1942
- // Update stylesheet references.
1943
- $line = str_replace("<?php echo __get_option('siteurl'); ?>/wp-layout.css", "<?php bloginfo('stylesheet_url'); ?>", $line);
1944
-
1945
- // Update comments template inclusion.
1946
- $line = str_replace("<?php include(ABSPATH . 'wp-comments.php'); ?>", "<?php comments_template(); ?>", $line);
1947
-
1948
- fwrite($f, "{$line}\n");
1949
- }
1950
- fclose($f);
1951
- }
1952
- }
1953
-
1954
- // Add a theme header.
1955
- $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the update.\nVersion: 1.0\nAuthor: Moi\n*/\n";
1956
-
1957
- $stylelines = file_get_contents("$site_dir/style.css");
1958
- if ($stylelines) {
1959
- $f = fopen("$site_dir/style.css", 'w');
1960
-
1961
- fwrite($f, $header);
1962
- fwrite($f, $stylelines);
1963
- fclose($f);
1964
- }
1965
-
1966
- return true;
1967
- }
1968
-
1969
- /**
1970
- * {@internal Missing Short Description}}
1971
- *
1972
- * {@internal Missing Long Description}}
1973
- *
1974
- * @since 1.5.0
1975
- *
1976
- * @param unknown_type $theme_name
1977
- * @param unknown_type $template
1978
- * @return unknown
1979
- */
1980
- function make_site_theme_from_default($theme_name, $template) {
1981
- $site_dir = WP_CONTENT_DIR . "/themes/$template";
1982
- $default_dir = WP_CONTENT_DIR . '/themes/' . WP_DEFAULT_THEME;
1983
-
1984
- // Copy files from the default theme to the site theme.
1985
- //$files = array('index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css');
1986
-
1987
- $theme_dir = @ opendir($default_dir);
1988
- if ($theme_dir) {
1989
- while(($theme_file = readdir( $theme_dir )) !== false) {
1990
- if (is_dir("$default_dir/$theme_file"))
1991
- continue;
1992
- if (! @copy("$default_dir/$theme_file", "$site_dir/$theme_file"))
1993
- return;
1994
- chmod("$site_dir/$theme_file", 0777);
1995
- }
1996
- }
1997
- @closedir($theme_dir);
1998
-
1999
- // Rewrite the theme header.
2000
- $stylelines = explode("\n", implode('', file("$site_dir/style.css")));
2001
- if ($stylelines) {
2002
- $f = fopen("$site_dir/style.css", 'w');
2003
-
2004
- foreach ($stylelines as $line) {
2005
- if (strpos($line, 'Theme Name:') !== false) $line = 'Theme Name: ' . $theme_name;
2006
- elseif (strpos($line, 'Theme URI:') !== false) $line = 'Theme URI: ' . __get_option('url');
2007
- elseif (strpos($line, 'Description:') !== false) $line = 'Description: Your theme.';
2008
- elseif (strpos($line, 'Version:') !== false) $line = 'Version: 1';
2009
- elseif (strpos($line, 'Author:') !== false) $line = 'Author: You';
2010
- fwrite($f, $line . "\n");
2011
- }
2012
- fclose($f);
2013
- }
2014
-
2015
- // Copy the images.
2016
- umask(0);
2017
- if (! mkdir("$site_dir/images", 0777)) {
2018
- return false;
2019
- }
2020
-
2021
- $images_dir = @ opendir("$default_dir/images");
2022
- if ($images_dir) {
2023
- while(($image = readdir($images_dir)) !== false) {
2024
- if (is_dir("$default_dir/images/$image"))
2025
- continue;
2026
- if (! @copy("$default_dir/images/$image", "$site_dir/images/$image"))
2027
- return;
2028
- chmod("$site_dir/images/$image", 0777);
2029
- }
2030
- }
2031
- @closedir($images_dir);
2032
- }
2033
-
2034
- // Create a site theme from the default theme.
2035
- /**
2036
- * {@internal Missing Short Description}}
2037
- *
2038
- * {@internal Missing Long Description}}
2039
- *
2040
- * @since 1.5.0
2041
- *
2042
- * @return unknown
2043
- */
2044
- function make_site_theme() {
2045
- // Name the theme after the blog.
2046
- $theme_name = __get_option('blogname');
2047
- $template = sanitize_title($theme_name);
2048
- $site_dir = WP_CONTENT_DIR . "/themes/$template";
2049
-
2050
- // If the theme already exists, nothing to do.
2051
- if ( is_dir($site_dir)) {
2052
- return false;
2053
- }
2054
-
2055
- // We must be able to write to the themes dir.
2056
- if (! is_writable(WP_CONTENT_DIR . "/themes")) {
2057
- return false;
2058
- }
2059
-
2060
- umask(0);
2061
- if (! mkdir($site_dir, 0777)) {
2062
- return false;
2063
- }
2064
-
2065
- if (file_exists(ABSPATH . 'wp-layout.css')) {
2066
- if (! make_site_theme_from_oldschool($theme_name, $template)) {
2067
- // TODO: rm -rf the site theme directory.
2068
- return false;
2069
- }
2070
- } else {
2071
- if (! make_site_theme_from_default($theme_name, $template))
2072
- // TODO: rm -rf the site theme directory.
2073
- return false;
2074
- }
2075
-
2076
- // Make the new site theme active.
2077
- $current_template = __get_option('template');
2078
- if ($current_template == WP_DEFAULT_THEME) {
2079
- update_option('template', $template);
2080
- update_option('stylesheet', $template);
2081
- }
2082
- return $template;
2083
- }
2084
-
2085
- /**
2086
- * Translate user level to user role name.
2087
- *
2088
- * @since 2.0.0
2089
- *
2090
- * @param int $level User level.
2091
- * @return string User role name.
2092
- */
2093
- function translate_level_to_role($level) {
2094
- switch ($level) {
2095
- case 10:
2096
- case 9:
2097
- case 8:
2098
- return 'administrator';
2099
- case 7:
2100
- case 6:
2101
- case 5:
2102
- return 'editor';
2103
- case 4:
2104
- case 3:
2105
- case 2:
2106
- return 'author';
2107
- case 1:
2108
- return 'contributor';
2109
- case 0:
2110
- return 'subscriber';
2111
- }
2112
- }
2113
-
2114
- /**
2115
- * {@internal Missing Short Description}}
2116
- *
2117
- * {@internal Missing Long Description}}
2118
- *
2119
- * @since 2.1.0
2120
- */
2121
- function wp_check_mysql_version() {
2122
- global $wpdb;
2123
- $result = $wpdb->check_database_version();
2124
- if ( is_wp_error( $result ) )
2125
- die( $result->get_error_message() );
2126
- }
2127
-
2128
- /**
2129
- * Disables the Automattic widgets plugin, which was merged into core.
2130
- *
2131
- * @since 2.2.0
2132
- */
2133
- function maybe_disable_automattic_widgets() {
2134
- $plugins = __get_option( 'active_plugins' );
2135
-
2136
- foreach ( (array) $plugins as $plugin ) {
2137
- if ( basename( $plugin ) == 'widgets.php' ) {
2138
- array_splice( $plugins, array_search( $plugin, $plugins ), 1 );
2139
- update_option( 'active_plugins', $plugins );
2140
- break;
2141
- }
2142
- }
2143
- }
2144
-
2145
- /**
2146
- * Disables the Link Manager on upgrade, if at the time of upgrade, no links exist in the DB.
2147
- *
2148
- * @since 3.5.0
2149
- */
2150
- function maybe_disable_link_manager() {
2151
- global $wp_current_db_version, $wpdb;
2152
-
2153
- if ( $wp_current_db_version >= 22006 && get_option( 'link_manager_enabled' ) && ! $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) )
2154
- update_option( 'link_manager_enabled', 0 );
2155
- }
2156
-
2157
- /**
2158
- * Runs before the schema is upgraded.
2159
- *
2160
- * @since 2.9.0
2161
- */
2162
- function pre_schema_upgrade() {
2163
- global $wp_current_db_version, $wpdb;
2164
-
2165
- // Upgrade versions prior to 2.9
2166
- if ( $wp_current_db_version < 11557 ) {
2167
- // Delete duplicate options. Keep the option with the highest option_id.
2168
- $wpdb->query("DELETE o1 FROM $wpdb->options AS o1 JOIN $wpdb->options AS o2 USING (`option_name`) WHERE o2.option_id > o1.option_id");
2169
-
2170
- // Drop the old primary key and add the new.
2171
- $wpdb->query("ALTER TABLE $wpdb->options DROP PRIMARY KEY, ADD PRIMARY KEY(option_id)");
2172
-
2173
- // Drop the old option_name index. dbDelta() doesn't do the drop.
2174
- $wpdb->query("ALTER TABLE $wpdb->options DROP INDEX option_name");
2175
- }
2176
-
2177
- // Multisite schema upgrades.
2178
- if ( $wp_current_db_version < 25448 && is_multisite() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) && is_main_network() ) {
2179
-
2180
- // Upgrade verions prior to 3.7
2181
- if ( $wp_current_db_version < 25179 ) {
2182
- // New primary key for signups.
2183
- $wpdb->query( "ALTER TABLE $wpdb->signups ADD signup_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST" );
2184
- $wpdb->query( "ALTER TABLE $wpdb->signups DROP INDEX domain" );
2185
- }
2186
-
2187
- if ( $wp_current_db_version < 25448 ) {
2188
- // Convert archived from enum to tinyint.
2189
- $wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived varchar(1) NOT NULL default '0'" );
2190
- $wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived tinyint(2) NOT NULL default 0" );
2191
- }
2192
- }
2193
- }
2194
-
2195
- /**
2196
- * Install global terms.
2197
- *
2198
- * @since 3.0.0
2199
- *
2200
- */
2201
- if ( !function_exists( 'install_global_terms' ) ) :
2202
- function install_global_terms() {
2203
- global $wpdb, $charset_collate;
2204
- $ms_queries = "
2205
- CREATE TABLE $wpdb->sitecategories (
2206
- cat_ID bigint(20) NOT NULL auto_increment,
2207
- cat_name varchar(55) NOT NULL default '',
2208
- category_nicename varchar(200) NOT NULL default '',
2209
- last_updated timestamp NOT NULL,
2210
- PRIMARY KEY (cat_ID),
2211
- KEY category_nicename (category_nicename),
2212
- KEY last_updated (last_updated)
2213
- ) $charset_collate;
2214
- ";
2215
- // now create tables
2216
- dbDelta( $ms_queries );
2217
- }
2218
- endif;