stump-cli 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +3 -16
- data/Rakefile +2 -0
- data/bin/stump-cli +58 -0
- data/lib/stump-cli/version.rb +3 -0
- data/lib/stump.rb +5 -0
- data/lib/wp/Movefile-example +62 -0
- data/lib/wp/README.md +25 -0
- data/lib/wp/index.php +17 -0
- data/lib/wp/license.txt +385 -0
- data/lib/wp/readme.html +96 -0
- data/lib/wp/wp-activate.php +131 -0
- data/lib/wp/wp-admin/about.php +193 -0
- data/lib/wp/wp-admin/admin-ajax.php +98 -0
- data/lib/wp/wp-admin/admin-footer.php +99 -0
- data/lib/wp/wp-admin/admin-functions.php +15 -0
- data/lib/wp/wp-admin/admin-header.php +243 -0
- data/lib/wp/wp-admin/admin-post.php +71 -0
- data/lib/wp/wp-admin/admin.php +347 -0
- data/lib/wp/wp-admin/async-upload.php +114 -0
- data/lib/wp/wp-admin/comment.php +299 -0
- data/lib/wp/wp-admin/credits.php +192 -0
- data/lib/wp/wp-admin/css/about-rtl.css +446 -0
- data/lib/wp/wp-admin/css/about.css +446 -0
- data/lib/wp/wp-admin/css/admin-menu-rtl.css +917 -0
- data/lib/wp/wp-admin/css/admin-menu.css +917 -0
- data/lib/wp/wp-admin/css/color-picker-rtl.css +127 -0
- data/lib/wp/wp-admin/css/color-picker-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/color-picker.css +127 -0
- data/lib/wp/wp-admin/css/color-picker.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/_admin.scss +525 -0
- data/lib/wp/wp-admin/css/colors/_mixins.scss +43 -0
- data/lib/wp/wp-admin/css/colors/_variables.scss +58 -0
- data/lib/wp/wp-admin/css/colors/blue/colors-rtl.css +341 -0
- data/lib/wp/wp-admin/css/colors/blue/colors-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/blue/colors.css +341 -0
- data/lib/wp/wp-admin/css/colors/blue/colors.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/blue/colors.scss +11 -0
- data/lib/wp/wp-admin/css/colors/coffee/colors-rtl.css +341 -0
- data/lib/wp/wp-admin/css/colors/coffee/colors-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/coffee/colors.css +341 -0
- data/lib/wp/wp-admin/css/colors/coffee/colors.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/coffee/colors.scss +7 -0
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors-rtl.css +341 -0
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors.css +341 -0
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors.scss +8 -0
- data/lib/wp/wp-admin/css/colors/light/colors-rtl.css +349 -0
- data/lib/wp/wp-admin/css/colors/light/colors-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/light/colors.css +349 -0
- data/lib/wp/wp-admin/css/colors/light/colors.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/light/colors.scss +38 -0
- data/lib/wp/wp-admin/css/colors/midnight/colors-rtl.css +341 -0
- data/lib/wp/wp-admin/css/colors/midnight/colors-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/midnight/colors.css +341 -0
- data/lib/wp/wp-admin/css/colors/midnight/colors.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/midnight/colors.scss +5 -0
- data/lib/wp/wp-admin/css/colors/ocean/colors-rtl.css +341 -0
- data/lib/wp/wp-admin/css/colors/ocean/colors-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/ocean/colors.css +341 -0
- data/lib/wp/wp-admin/css/colors/ocean/colors.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/ocean/colors.scss +8 -0
- data/lib/wp/wp-admin/css/colors/sunrise/colors-rtl.css +341 -0
- data/lib/wp/wp-admin/css/colors/sunrise/colors-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/sunrise/colors.css +341 -0
- data/lib/wp/wp-admin/css/colors/sunrise/colors.min.css +1 -0
- data/lib/wp/wp-admin/css/colors/sunrise/colors.scss +6 -0
- data/lib/wp/wp-admin/css/common-rtl.css +3212 -0
- data/lib/wp/wp-admin/css/common.css +3212 -0
- data/lib/wp/wp-admin/css/customize-controls-rtl.css +889 -0
- data/lib/wp/wp-admin/css/customize-controls-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/customize-controls.css +889 -0
- data/lib/wp/wp-admin/css/customize-controls.min.css +1 -0
- data/lib/wp/wp-admin/css/customize-widgets-rtl.css +603 -0
- data/lib/wp/wp-admin/css/customize-widgets-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/customize-widgets.css +603 -0
- data/lib/wp/wp-admin/css/customize-widgets.min.css +1 -0
- data/lib/wp/wp-admin/css/dashboard-rtl.css +1116 -0
- data/lib/wp/wp-admin/css/dashboard.css +1116 -0
- data/lib/wp/wp-admin/css/deprecated-media-rtl.css +371 -0
- data/lib/wp/wp-admin/css/deprecated-media-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/deprecated-media.css +371 -0
- data/lib/wp/wp-admin/css/deprecated-media.min.css +1 -0
- data/lib/wp/wp-admin/css/edit-rtl.css +1501 -0
- data/lib/wp/wp-admin/css/edit.css +1501 -0
- data/lib/wp/wp-admin/css/farbtastic-rtl.css +41 -0
- data/lib/wp/wp-admin/css/farbtastic.css +41 -0
- data/lib/wp/wp-admin/css/forms-rtl.css +992 -0
- data/lib/wp/wp-admin/css/forms.css +992 -0
- data/lib/wp/wp-admin/css/ie-rtl.css +785 -0
- data/lib/wp/wp-admin/css/ie-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/ie.css +785 -0
- data/lib/wp/wp-admin/css/ie.min.css +1 -0
- data/lib/wp/wp-admin/css/install-rtl.css +389 -0
- data/lib/wp/wp-admin/css/install-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/install.css +389 -0
- data/lib/wp/wp-admin/css/install.min.css +1 -0
- data/lib/wp/wp-admin/css/l10n-rtl.css +101 -0
- data/lib/wp/wp-admin/css/l10n.css +101 -0
- data/lib/wp/wp-admin/css/list-tables-rtl.css +1875 -0
- data/lib/wp/wp-admin/css/list-tables.css +1875 -0
- data/lib/wp/wp-admin/css/login-rtl.css +269 -0
- data/lib/wp/wp-admin/css/login-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/login.css +269 -0
- data/lib/wp/wp-admin/css/login.min.css +1 -0
- data/lib/wp/wp-admin/css/media-rtl.css +1196 -0
- data/lib/wp/wp-admin/css/media.css +1196 -0
- data/lib/wp/wp-admin/css/nav-menus-rtl.css +857 -0
- data/lib/wp/wp-admin/css/nav-menus.css +857 -0
- data/lib/wp/wp-admin/css/press-this-rtl.css +458 -0
- data/lib/wp/wp-admin/css/press-this.css +458 -0
- data/lib/wp/wp-admin/css/revisions-rtl.css +574 -0
- data/lib/wp/wp-admin/css/revisions.css +574 -0
- data/lib/wp/wp-admin/css/themes-rtl.css +1732 -0
- data/lib/wp/wp-admin/css/themes.css +1732 -0
- data/lib/wp/wp-admin/css/widgets-rtl.css +577 -0
- data/lib/wp/wp-admin/css/widgets.css +577 -0
- data/lib/wp/wp-admin/css/wp-admin-rtl.css +14 -0
- data/lib/wp/wp-admin/css/wp-admin-rtl.min.css +1 -0
- data/lib/wp/wp-admin/css/wp-admin.css +14 -0
- data/lib/wp/wp-admin/css/wp-admin.min.css +1 -0
- data/lib/wp/wp-admin/custom-background.php +482 -0
- data/lib/wp/wp-admin/custom-header.php +1366 -0
- data/lib/wp/wp-admin/customize.php +278 -0
- data/lib/wp/wp-admin/edit-comments.php +254 -0
- data/lib/wp/wp-admin/edit-form-advanced.php +636 -0
- data/lib/wp/wp-admin/edit-form-comment.php +160 -0
- data/lib/wp/wp-admin/edit-link-form.php +150 -0
- data/lib/wp/wp-admin/edit-tag-form.php +204 -0
- data/lib/wp/wp-admin/edit-tags.php +591 -0
- data/lib/wp/wp-admin/edit.php +330 -0
- data/lib/wp/wp-admin/export.php +243 -0
- data/lib/wp/wp-admin/freedoms.php +57 -0
- data/lib/wp/wp-admin/images/align-center-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-center.png +0 -0
- data/lib/wp/wp-admin/images/align-left-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-left.png +0 -0
- data/lib/wp/wp-admin/images/align-none-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-none.png +0 -0
- data/lib/wp/wp-admin/images/align-right-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-right.png +0 -0
- data/lib/wp/wp-admin/images/arrows-2x.png +0 -0
- data/lib/wp/wp-admin/images/arrows.png +0 -0
- data/lib/wp/wp-admin/images/bubble_bg-2x.gif +0 -0
- data/lib/wp/wp-admin/images/bubble_bg.gif +0 -0
- data/lib/wp/wp-admin/images/comment-grey-bubble-2x.png +0 -0
- data/lib/wp/wp-admin/images/comment-grey-bubble.png +0 -0
- data/lib/wp/wp-admin/images/date-button-2x.gif +0 -0
- data/lib/wp/wp-admin/images/date-button.gif +0 -0
- data/lib/wp/wp-admin/images/generic.png +0 -0
- data/lib/wp/wp-admin/images/icons32-2x.png +0 -0
- data/lib/wp/wp-admin/images/icons32-vs-2x.png +0 -0
- data/lib/wp/wp-admin/images/icons32-vs.png +0 -0
- data/lib/wp/wp-admin/images/icons32.png +0 -0
- data/lib/wp/wp-admin/images/imgedit-icons-2x.png +0 -0
- data/lib/wp/wp-admin/images/imgedit-icons.png +0 -0
- data/lib/wp/wp-admin/images/list-2x.png +0 -0
- data/lib/wp/wp-admin/images/list.png +0 -0
- data/lib/wp/wp-admin/images/loading.gif +0 -0
- data/lib/wp/wp-admin/images/marker.png +0 -0
- data/lib/wp/wp-admin/images/mask.png +0 -0
- data/lib/wp/wp-admin/images/media-button-2x.png +0 -0
- data/lib/wp/wp-admin/images/media-button-image.gif +0 -0
- data/lib/wp/wp-admin/images/media-button-music.gif +0 -0
- data/lib/wp/wp-admin/images/media-button-other.gif +0 -0
- data/lib/wp/wp-admin/images/media-button-video.gif +0 -0
- data/lib/wp/wp-admin/images/media-button.png +0 -0
- data/lib/wp/wp-admin/images/menu-2x.png +0 -0
- data/lib/wp/wp-admin/images/menu-vs-2x.png +0 -0
- data/lib/wp/wp-admin/images/menu-vs.png +0 -0
- data/lib/wp/wp-admin/images/menu.png +0 -0
- data/lib/wp/wp-admin/images/no.png +0 -0
- data/lib/wp/wp-admin/images/post-formats-vs.png +0 -0
- data/lib/wp/wp-admin/images/post-formats.png +0 -0
- data/lib/wp/wp-admin/images/post-formats32-vs.png +0 -0
- data/lib/wp/wp-admin/images/post-formats32.png +0 -0
- data/lib/wp/wp-admin/images/resize-2x.gif +0 -0
- data/lib/wp/wp-admin/images/resize-rtl-2x.gif +0 -0
- data/lib/wp/wp-admin/images/resize-rtl.gif +0 -0
- data/lib/wp/wp-admin/images/resize.gif +0 -0
- data/lib/wp/wp-admin/images/se.png +0 -0
- data/lib/wp/wp-admin/images/sort-2x.gif +0 -0
- data/lib/wp/wp-admin/images/sort.gif +0 -0
- data/lib/wp/wp-admin/images/spinner-2x.gif +0 -0
- data/lib/wp/wp-admin/images/spinner.gif +0 -0
- data/lib/wp/wp-admin/images/stars-2x.png +0 -0
- data/lib/wp/wp-admin/images/stars.png +0 -0
- data/lib/wp/wp-admin/images/w-logo-blue.png +0 -0
- data/lib/wp/wp-admin/images/w-logo-white.png +0 -0
- data/lib/wp/wp-admin/images/wheel.png +0 -0
- data/lib/wp/wp-admin/images/wordpress-logo-white.svg +1 -0
- data/lib/wp/wp-admin/images/wordpress-logo.png +0 -0
- data/lib/wp/wp-admin/images/wordpress-logo.svg +1 -0
- data/lib/wp/wp-admin/images/wpspin_light-2x.gif +0 -0
- data/lib/wp/wp-admin/images/wpspin_light.gif +0 -0
- data/lib/wp/wp-admin/images/xit-2x.gif +0 -0
- data/lib/wp/wp-admin/images/xit.gif +0 -0
- data/lib/wp/wp-admin/images/yes.png +0 -0
- data/lib/wp/wp-admin/import.php +132 -0
- data/lib/wp/wp-admin/includes/admin.php +74 -0
- data/lib/wp/wp-admin/includes/ajax-actions.php +2762 -0
- data/lib/wp/wp-admin/includes/bookmark.php +305 -0
- data/lib/wp/wp-admin/includes/class-ftp-pure.php +190 -0
- data/lib/wp/wp-admin/includes/class-ftp-sockets.php +250 -0
- data/lib/wp/wp-admin/includes/class-ftp.php +907 -0
- data/lib/wp/wp-admin/includes/class-pclzip.php +5687 -0
- data/lib/wp/wp-admin/includes/class-wp-comments-list-table.php +637 -0
- data/lib/wp/wp-admin/includes/class-wp-filesystem-base.php +815 -0
- data/lib/wp/wp-admin/includes/class-wp-filesystem-direct.php +384 -0
- data/lib/wp/wp-admin/includes/class-wp-filesystem-ftpext.php +415 -0
- data/lib/wp/wp-admin/includes/class-wp-filesystem-ftpsockets.php +352 -0
- data/lib/wp/wp-admin/includes/class-wp-filesystem-ssh2.php +392 -0
- data/lib/wp/wp-admin/includes/class-wp-importer.php +302 -0
- data/lib/wp/wp-admin/includes/class-wp-links-list-table.php +207 -0
- data/lib/wp/wp-admin/includes/class-wp-list-table.php +1080 -0
- data/lib/wp/wp-admin/includes/class-wp-media-list-table.php +574 -0
- data/lib/wp/wp-admin/includes/class-wp-ms-sites-list-table.php +402 -0
- data/lib/wp/wp-admin/includes/class-wp-ms-themes-list-table.php +459 -0
- data/lib/wp/wp-admin/includes/class-wp-ms-users-list-table.php +303 -0
- data/lib/wp/wp-admin/includes/class-wp-plugin-install-list-table.php +490 -0
- data/lib/wp/wp-admin/includes/class-wp-plugins-list-table.php +605 -0
- data/lib/wp/wp-admin/includes/class-wp-posts-list-table.php +1306 -0
- data/lib/wp/wp-admin/includes/class-wp-terms-list-table.php +466 -0
- data/lib/wp/wp-admin/includes/class-wp-theme-install-list-table.php +431 -0
- data/lib/wp/wp-admin/includes/class-wp-themes-list-table.php +279 -0
- data/lib/wp/wp-admin/includes/class-wp-upgrader-skins.php +767 -0
- data/lib/wp/wp-admin/includes/class-wp-upgrader.php +2676 -0
- data/lib/wp/wp-admin/includes/class-wp-users-list-table.php +459 -0
- data/lib/wp/wp-admin/includes/comment.php +171 -0
- data/lib/wp/wp-admin/includes/continents-cities.php +493 -0
- data/lib/wp/wp-admin/includes/dashboard.php +1333 -0
- data/lib/wp/wp-admin/includes/deprecated.php +1190 -0
- data/lib/wp/wp-admin/includes/export.php +508 -0
- data/lib/wp/wp-admin/includes/file.php +1152 -0
- data/lib/wp/wp-admin/includes/image-edit.php +828 -0
- data/lib/wp/wp-admin/includes/image.php +598 -0
- data/lib/wp/wp-admin/includes/import.php +206 -0
- data/lib/wp/wp-admin/includes/list-table.php +113 -0
- data/lib/wp/wp-admin/includes/media.php +3012 -0
- data/lib/wp/wp-admin/includes/menu.php +322 -0
- data/lib/wp/wp-admin/includes/meta-boxes.php +1119 -0
- data/lib/wp/wp-admin/includes/misc.php +845 -0
- data/lib/wp/wp-admin/includes/ms-deprecated.php +78 -0
- data/lib/wp/wp-admin/includes/ms.php +814 -0
- data/lib/wp/wp-admin/includes/nav-menu.php +1328 -0
- data/lib/wp/wp-admin/includes/plugin-install.php +550 -0
- data/lib/wp/wp-admin/includes/plugin.php +1899 -0
- data/lib/wp/wp-admin/includes/post.php +1661 -0
- data/lib/wp/wp-admin/includes/revision.php +228 -0
- data/lib/wp/wp-admin/includes/schema.php +1038 -0
- data/lib/wp/wp-admin/includes/screen.php +1179 -0
- data/lib/wp/wp-admin/includes/taxonomy.php +284 -0
- data/lib/wp/wp-admin/includes/template.php +2157 -0
- data/lib/wp/wp-admin/includes/theme-install.php +205 -0
- data/lib/wp/wp-admin/includes/theme.php +474 -0
- data/lib/wp/wp-admin/includes/translation-install.php +240 -0
- data/lib/wp/wp-admin/includes/update-core.php +1186 -0
- data/lib/wp/wp-admin/includes/update.php +432 -0
- data/lib/wp/wp-admin/includes/upgrade.php +2218 -0
- data/lib/wp/wp-admin/includes/user.php +442 -0
- data/lib/wp/wp-admin/includes/widgets.php +245 -0
- data/lib/wp/wp-admin/index.php +131 -0
- data/lib/wp/wp-admin/install-helper.php +199 -0
- data/lib/wp/wp-admin/install.php +305 -0
- data/lib/wp/wp-admin/js/accordion.js +143 -0
- data/lib/wp/wp-admin/js/accordion.min.js +1 -0
- data/lib/wp/wp-admin/js/color-picker.js +155 -0
- data/lib/wp/wp-admin/js/color-picker.min.js +1 -0
- data/lib/wp/wp-admin/js/comment.js +50 -0
- data/lib/wp/wp-admin/js/comment.min.js +1 -0
- data/lib/wp/wp-admin/js/common.js +804 -0
- data/lib/wp/wp-admin/js/common.min.js +1 -0
- data/lib/wp/wp-admin/js/custom-background.js +75 -0
- data/lib/wp/wp-admin/js/custom-background.min.js +1 -0
- data/lib/wp/wp-admin/js/custom-header.js +61 -0
- data/lib/wp/wp-admin/js/customize-controls.js +1305 -0
- data/lib/wp/wp-admin/js/customize-controls.min.js +1 -0
- data/lib/wp/wp-admin/js/customize-widgets.js +1882 -0
- data/lib/wp/wp-admin/js/customize-widgets.min.js +1 -0
- data/lib/wp/wp-admin/js/dashboard.js +190 -0
- data/lib/wp/wp-admin/js/dashboard.min.js +1 -0
- data/lib/wp/wp-admin/js/edit-comments.js +625 -0
- data/lib/wp/wp-admin/js/edit-comments.min.js +1 -0
- data/lib/wp/wp-admin/js/editor-expand.js +705 -0
- data/lib/wp/wp-admin/js/editor-expand.min.js +1 -0
- data/lib/wp/wp-admin/js/editor.js +324 -0
- data/lib/wp/wp-admin/js/editor.min.js +1 -0
- data/lib/wp/wp-admin/js/farbtastic.js +276 -0
- data/lib/wp/wp-admin/js/gallery.js +237 -0
- data/lib/wp/wp-admin/js/gallery.min.js +1 -0
- data/lib/wp/wp-admin/js/image-edit.js +633 -0
- data/lib/wp/wp-admin/js/image-edit.min.js +1 -0
- data/lib/wp/wp-admin/js/inline-edit-post.js +359 -0
- data/lib/wp/wp-admin/js/inline-edit-post.min.js +1 -0
- data/lib/wp/wp-admin/js/inline-edit-tax.js +142 -0
- data/lib/wp/wp-admin/js/inline-edit-tax.min.js +1 -0
- data/lib/wp/wp-admin/js/iris.min.js +4 -0
- data/lib/wp/wp-admin/js/language-chooser.js +26 -0
- data/lib/wp/wp-admin/js/language-chooser.min.js +1 -0
- data/lib/wp/wp-admin/js/link.js +69 -0
- data/lib/wp/wp-admin/js/link.min.js +1 -0
- data/lib/wp/wp-admin/js/media-gallery.js +26 -0
- data/lib/wp/wp-admin/js/media-gallery.min.js +1 -0
- data/lib/wp/wp-admin/js/media-upload.js +69 -0
- data/lib/wp/wp-admin/js/media-upload.min.js +1 -0
- data/lib/wp/wp-admin/js/media.js +111 -0
- data/lib/wp/wp-admin/js/media.min.js +1 -0
- data/lib/wp/wp-admin/js/nav-menu.js +1205 -0
- data/lib/wp/wp-admin/js/nav-menu.min.js +1 -0
- data/lib/wp/wp-admin/js/password-strength-meter.js +75 -0
- data/lib/wp/wp-admin/js/password-strength-meter.min.js +1 -0
- data/lib/wp/wp-admin/js/plugin-install.js +76 -0
- data/lib/wp/wp-admin/js/plugin-install.min.js +1 -0
- data/lib/wp/wp-admin/js/post.js +1094 -0
- data/lib/wp/wp-admin/js/post.min.js +1 -0
- data/lib/wp/wp-admin/js/postbox.js +199 -0
- data/lib/wp/wp-admin/js/postbox.min.js +1 -0
- data/lib/wp/wp-admin/js/revisions.js +1110 -0
- data/lib/wp/wp-admin/js/revisions.min.js +1 -0
- data/lib/wp/wp-admin/js/set-post-thumbnail.js +24 -0
- data/lib/wp/wp-admin/js/set-post-thumbnail.min.js +1 -0
- data/lib/wp/wp-admin/js/svg-painter.js +240 -0
- data/lib/wp/wp-admin/js/svg-painter.min.js +1 -0
- data/lib/wp/wp-admin/js/tags.js +72 -0
- data/lib/wp/wp-admin/js/tags.min.js +1 -0
- data/lib/wp/wp-admin/js/theme.js +1691 -0
- data/lib/wp/wp-admin/js/theme.min.js +1 -0
- data/lib/wp/wp-admin/js/updates.js +65 -0
- data/lib/wp/wp-admin/js/updates.min.js +1 -0
- data/lib/wp/wp-admin/js/user-profile.js +127 -0
- data/lib/wp/wp-admin/js/user-profile.min.js +1 -0
- data/lib/wp/wp-admin/js/user-suggest.js +30 -0
- data/lib/wp/wp-admin/js/user-suggest.min.js +1 -0
- data/lib/wp/wp-admin/js/widgets.js +494 -0
- data/lib/wp/wp-admin/js/widgets.min.js +1 -0
- data/lib/wp/wp-admin/js/word-count.js +44 -0
- data/lib/wp/wp-admin/js/word-count.min.js +1 -0
- data/lib/wp/wp-admin/js/wp-fullscreen.js +704 -0
- data/lib/wp/wp-admin/js/wp-fullscreen.min.js +1 -0
- data/lib/wp/wp-admin/js/xfn.js +17 -0
- data/lib/wp/wp-admin/js/xfn.min.js +1 -0
- data/lib/wp/wp-admin/link-add.php +29 -0
- data/lib/wp/wp-admin/link-manager.php +99 -0
- data/lib/wp/wp-admin/link-parse-opml.php +84 -0
- data/lib/wp/wp-admin/link.php +117 -0
- data/lib/wp/wp-admin/load-scripts.php +162 -0
- data/lib/wp/wp-admin/load-styles.php +153 -0
- data/lib/wp/wp-admin/maint/repair.php +124 -0
- data/lib/wp/wp-admin/media-new.php +84 -0
- data/lib/wp/wp-admin/media-upload.php +100 -0
- data/lib/wp/wp-admin/media.php +146 -0
- data/lib/wp/wp-admin/menu-header.php +227 -0
- data/lib/wp/wp-admin/menu.php +255 -0
- data/lib/wp/wp-admin/moderation.php +12 -0
- data/lib/wp/wp-admin/ms-admin.php +13 -0
- data/lib/wp/wp-admin/ms-delete-site.php +91 -0
- data/lib/wp/wp-admin/ms-edit.php +13 -0
- data/lib/wp/wp-admin/ms-options.php +12 -0
- data/lib/wp/wp-admin/ms-sites.php +13 -0
- data/lib/wp/wp-admin/ms-themes.php +13 -0
- data/lib/wp/wp-admin/ms-upgrade-network.php +13 -0
- data/lib/wp/wp-admin/ms-users.php +13 -0
- data/lib/wp/wp-admin/my-sites.php +145 -0
- data/lib/wp/wp-admin/nav-menus.php +798 -0
- data/lib/wp/wp-admin/network.php +561 -0
- data/lib/wp/wp-admin/network/about.php +16 -0
- data/lib/wp/wp-admin/network/admin.php +32 -0
- data/lib/wp/wp-admin/network/credits.php +16 -0
- data/lib/wp/wp-admin/network/edit.php +42 -0
- data/lib/wp/wp-admin/network/freedoms.php +16 -0
- data/lib/wp/wp-admin/network/index.php +79 -0
- data/lib/wp/wp-admin/network/menu.php +63 -0
- data/lib/wp/wp-admin/network/plugin-editor.php +16 -0
- data/lib/wp/wp-admin/network/plugin-install.php +19 -0
- data/lib/wp/wp-admin/network/plugins.php +16 -0
- data/lib/wp/wp-admin/network/profile.php +16 -0
- data/lib/wp/wp-admin/network/settings.php +347 -0
- data/lib/wp/wp-admin/network/setup.php +16 -0
- data/lib/wp/wp-admin/network/site-info.php +178 -0
- data/lib/wp/wp-admin/network/site-new.php +153 -0
- data/lib/wp/wp-admin/network/site-settings.php +173 -0
- data/lib/wp/wp-admin/network/site-themes.php +185 -0
- data/lib/wp/wp-admin/network/site-users.php +319 -0
- data/lib/wp/wp-admin/network/sites.php +275 -0
- data/lib/wp/wp-admin/network/theme-editor.php +16 -0
- data/lib/wp/wp-admin/network/theme-install.php +19 -0
- data/lib/wp/wp-admin/network/themes.php +291 -0
- data/lib/wp/wp-admin/network/update-core.php +16 -0
- data/lib/wp/wp-admin/network/update.php +19 -0
- data/lib/wp/wp-admin/network/upgrade.php +120 -0
- data/lib/wp/wp-admin/network/user-edit.php +16 -0
- data/lib/wp/wp-admin/network/user-new.php +106 -0
- data/lib/wp/wp-admin/network/users.php +296 -0
- data/lib/wp/wp-admin/options-discussion.php +273 -0
- data/lib/wp/wp-admin/options-general.php +355 -0
- data/lib/wp/wp-admin/options-head.php +18 -0
- data/lib/wp/wp-admin/options-media.php +136 -0
- data/lib/wp/wp-admin/options-permalink.php +289 -0
- data/lib/wp/wp-admin/options-reading.php +184 -0
- data/lib/wp/wp-admin/options-writing.php +194 -0
- data/lib/wp/wp-admin/options.php +265 -0
- data/lib/wp/wp-admin/plugin-editor.php +279 -0
- data/lib/wp/wp-admin/plugin-install.php +134 -0
- data/lib/wp/wp-admin/plugins.php +474 -0
- data/lib/wp/wp-admin/post-new.php +74 -0
- data/lib/wp/wp-admin/post.php +318 -0
- data/lib/wp/wp-admin/press-this.php +691 -0
- data/lib/wp/wp-admin/profile.php +18 -0
- data/lib/wp/wp-admin/revision.php +221 -0
- data/lib/wp/wp-admin/setup-config.php +345 -0
- data/lib/wp/wp-admin/theme-editor.php +243 -0
- data/lib/wp/wp-admin/theme-install.php +278 -0
- data/lib/wp/wp-admin/themes.php +374 -0
- data/lib/wp/wp-admin/tools.php +75 -0
- data/lib/wp/wp-admin/update-core.php +653 -0
- data/lib/wp/wp-admin/update.php +272 -0
- data/lib/wp/wp-admin/upgrade-functions.php +12 -0
- data/lib/wp/wp-admin/upgrade.php +116 -0
- data/lib/wp/wp-admin/upload.php +292 -0
- data/lib/wp/wp-admin/user-edit.php +557 -0
- data/lib/wp/wp-admin/user-new.php +439 -0
- data/lib/wp/wp-admin/user/about.php +13 -0
- data/lib/wp/wp-admin/user/admin.php +32 -0
- data/lib/wp/wp-admin/user/credits.php +13 -0
- data/lib/wp/wp-admin/user/freedoms.php +13 -0
- data/lib/wp/wp-admin/user/index.php +12 -0
- data/lib/wp/wp-admin/user/menu.php +22 -0
- data/lib/wp/wp-admin/user/profile.php +12 -0
- data/lib/wp/wp-admin/user/user-edit.php +12 -0
- data/lib/wp/wp-admin/users.php +460 -0
- data/lib/wp/wp-admin/widgets.php +442 -0
- data/lib/wp/wp-blog-header.php +18 -0
- data/lib/wp/wp-comments-post.php +164 -0
- data/lib/wp/wp-config-sample.php +80 -0
- data/lib/wp/wp-content/index.php +2 -0
- data/lib/wp/wp-content/plugins/hello.php +82 -0
- data/lib/wp/wp-content/plugins/index.php +2 -0
- data/lib/wp/wp-content/themes/index.php +2 -0
- data/lib/wp/wp-content/themes/stump/.editorconfig +11 -0
- data/lib/wp/wp-content/themes/stump/.jshintrc +16 -0
- data/lib/wp/wp-content/themes/stump/404.php +13 -0
- data/lib/wp/wp-content/themes/stump/CHANGELOG.md +333 -0
- data/lib/wp/wp-content/themes/stump/CONTRIBUTING.md +121 -0
- data/lib/wp/wp-content/themes/stump/Gruntfile.js +151 -0
- data/lib/wp/wp-content/themes/stump/LICENSE.md +19 -0
- data/lib/wp/wp-content/themes/stump/assets/coffee/build/.gitkeep +0 -0
- data/lib/wp/wp-content/themes/stump/assets/coffee/build/site.js +6 -0
- data/lib/wp/wp-content/themes/stump/assets/css/editor-style.css +548 -0
- data/lib/wp/wp-content/themes/stump/assets/css/main.min.css +4 -0
- data/lib/wp/wp-content/themes/stump/assets/css/main.min.css.map +7 -0
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/lib/wp/wp-content/themes/stump/assets/img/.gitignore +0 -0
- data/lib/wp/wp-content/themes/stump/assets/js/_main.js +63 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/affix.js +137 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/alert.js +88 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/button.js +107 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/carousel.js +205 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/collapse.js +170 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/dropdown.js +147 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/modal.js +243 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/popover.js +110 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/scrollspy.js +153 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/tab.js +125 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/tooltip.js +399 -0
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/transition.js +48 -0
- data/lib/wp/wp-content/themes/stump/assets/js/scripts.min.js +1 -0
- data/lib/wp/wp-content/themes/stump/assets/js/vendor/jquery-1.11.0.min.js +4 -0
- data/lib/wp/wp-content/themes/stump/assets/js/vendor/modernizr-2.7.0.min.js +4 -0
- data/lib/wp/wp-content/themes/stump/assets/sass/app.scss +9 -0
- data/lib/wp/wp-content/themes/stump/assets/sass/core/_variables.scss +1 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_alerts.scss +67 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_badges.scss +55 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_bootstrap.scss +49 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_breadcrumbs.scss +26 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_button-groups.scss +226 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_buttons.scss +159 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_carousel.scss +232 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_close.scss +35 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_code.scss +63 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_component-animations.scss +29 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_dropdowns.scss +213 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_forms.scss +436 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_glyphicons.scss +233 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_grid.scss +84 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_input-groups.scss +162 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_jumbotron.scss +44 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_labels.scss +64 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_list-group.scss +110 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_media.scss +56 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_mixins.scss +947 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_modals.scss +139 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_navbar.scss +620 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_navs.scss +242 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_normalize.scss +423 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_pager.scss +55 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_pagination.scss +88 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_panels.scss +241 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_popovers.scss +133 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_print.scss +101 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_progress-bars.scss +80 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_responsive-utilities.scss +74 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_scaffolding.scss +134 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_tables.scss +233 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_theme.scss +247 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_thumbnails.scss +38 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_tooltip.scss +95 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_type.scss +284 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_utilities.scss +56 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_variables.scss +833 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_wells.scss +29 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/_bourbon.scss +59 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_button.scss +273 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_clearfix.scss +29 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_font-family.scss +5 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_hide-text.scss +5 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_html5-input-types.scss +56 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_position.scss +42 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_prefixer.scss +49 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_retina-image.scss +32 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_size.scss +44 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_timing-functions.scss +32 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_triangle.scss +45 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_animation.scss +52 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_appearance.scss +3 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_backface-visibility.scss +6 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_background-image.scss +48 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_background.scss +103 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_border-image.scss +55 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_border-radius.scss +22 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_box-sizing.scss +4 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_columns.scss +47 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_flex-box.scss +52 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_font-face.scss +23 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_hidpi-media-query.scss +10 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_image-rendering.scss +13 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_inline-block.scss +8 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_keyframes.scss +43 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_linear-gradient.scss +41 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_perspective.scss +8 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_placeholder.scss +29 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_radial-gradient.scss +44 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_transform.scss +15 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_transition.scss +34 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_user-select.scss +3 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_compact.scss +11 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_flex-grid.scss +39 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_grid-width.scss +13 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_linear-gradient.scss +13 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_modular-scale.scss +40 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_px-to-em.scss +8 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_radial-gradient.scss +23 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_tint-shade.scss +9 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_transition-property-name.scss +22 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_gradient-positions-parser.scss +13 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_linear-positions-parser.scss +61 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_radial-arg-parser.scss +69 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_radial-positions-parser.scss +18 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_render-gradients.scss +26 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_shape-size-stripper.scss +10 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan.sass +11 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_grid.sass +161 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_mixins.sass +63 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_utilities.sass +24 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_variables.sass +42 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/_neat-helpers.scss +8 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/_neat.scss +21 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_new-breakpoint.scss +16 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_private.scss +107 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_px-to-em.scss +3 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_fill-parent.scss +7 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_grid.scss +5 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_media.scss +51 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_omega.scss +79 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_outer-container.scss +8 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_pad.scss +8 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_private.scss +50 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_reset.scss +12 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_row.scss +17 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_shift.scss +9 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_span-columns.scss +38 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_to-deprecate.scss +57 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_visual-grid.scss +41 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/settings/_grid.scss +7 -0
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/settings/_visual-grid.scss +5 -0
- data/lib/wp/wp-content/themes/stump/base.php +36 -0
- data/lib/wp/wp-content/themes/stump/functions.php +19 -0
- data/lib/wp/wp-content/themes/stump/index.php +21 -0
- data/lib/wp/wp-content/themes/stump/lang/ar.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ar.po +270 -0
- data/lib/wp/wp-content/themes/stump/lang/bg_BG.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/bg_BG.po +338 -0
- data/lib/wp/wp-content/themes/stump/lang/ca.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ca.po +517 -0
- data/lib/wp/wp-content/themes/stump/lang/da_DK.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/da_DK.po +305 -0
- data/lib/wp/wp-content/themes/stump/lang/de_DE.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/de_DE.po +271 -0
- data/lib/wp/wp-content/themes/stump/lang/el.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/el.po +319 -0
- data/lib/wp/wp-content/themes/stump/lang/es_ES.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/es_ES.po +270 -0
- data/lib/wp/wp-content/themes/stump/lang/et.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/et.po +262 -0
- data/lib/wp/wp-content/themes/stump/lang/fa_IR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/fa_IR.po +273 -0
- data/lib/wp/wp-content/themes/stump/lang/fi_FI.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/fi_FI.po +367 -0
- data/lib/wp/wp-content/themes/stump/lang/fr_FR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/fr_FR.po +336 -0
- data/lib/wp/wp-content/themes/stump/lang/he_IL.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/he_IL.po +336 -0
- data/lib/wp/wp-content/themes/stump/lang/hu_HU.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/hu_HU.po +271 -0
- data/lib/wp/wp-content/themes/stump/lang/id_ID.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/id_ID.po +278 -0
- data/lib/wp/wp-content/themes/stump/lang/it_IT.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/it_IT.po +269 -0
- data/lib/wp/wp-content/themes/stump/lang/ja.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ja.po +267 -0
- data/lib/wp/wp-content/themes/stump/lang/ko_KR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ko_KR.po +282 -0
- data/lib/wp/wp-content/themes/stump/lang/mk_MK.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/mk_MK.po +297 -0
- data/lib/wp/wp-content/themes/stump/lang/ms_MY.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ms_MY.po +342 -0
- data/lib/wp/wp-content/themes/stump/lang/nb_NO.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/nb_NO.po +517 -0
- data/lib/wp/wp-content/themes/stump/lang/nl_NL.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/nl_NL.po +261 -0
- data/lib/wp/wp-content/themes/stump/lang/nn_NO.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/nn_NO.po +517 -0
- data/lib/wp/wp-content/themes/stump/lang/pl_PL.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/pl_PL.po +283 -0
- data/lib/wp/wp-content/themes/stump/lang/pt_BR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/pt_BR.po +394 -0
- data/lib/wp/wp-content/themes/stump/lang/ro_RO.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ro_RO.po +271 -0
- data/lib/wp/wp-content/themes/stump/lang/roots.pot +244 -0
- data/lib/wp/wp-content/themes/stump/lang/ru_RU.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ru_RU.po +255 -0
- data/lib/wp/wp-content/themes/stump/lang/sk_SK.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/sk_SK.po +267 -0
- data/lib/wp/wp-content/themes/stump/lang/sr_RS.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/sr_RS.pot +261 -0
- data/lib/wp/wp-content/themes/stump/lang/sv_SE.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/sv_SE.po +323 -0
- data/lib/wp/wp-content/themes/stump/lang/tr_TR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/tr_TR.po +405 -0
- data/lib/wp/wp-content/themes/stump/lang/vi_VN.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/vi_VN.po +516 -0
- data/lib/wp/wp-content/themes/stump/lang/zh_CN.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/zh_CN.po +329 -0
- data/lib/wp/wp-content/themes/stump/lang/zh_TW.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/zh_TW.po +261 -0
- data/lib/wp/wp-content/themes/stump/lib/activation.php +215 -0
- data/lib/wp/wp-content/themes/stump/lib/cleanup.php +261 -0
- data/lib/wp/wp-content/themes/stump/lib/comments.php +52 -0
- data/lib/wp/wp-content/themes/stump/lib/config.php +79 -0
- data/lib/wp/wp-content/themes/stump/lib/custom.php +4 -0
- data/lib/wp/wp-content/themes/stump/lib/gallery.php +130 -0
- data/lib/wp/wp-content/themes/stump/lib/init.php +25 -0
- data/lib/wp/wp-content/themes/stump/lib/nav.php +93 -0
- data/lib/wp/wp-content/themes/stump/lib/relative-urls.php +50 -0
- data/lib/wp/wp-content/themes/stump/lib/scripts.php +67 -0
- data/lib/wp/wp-content/themes/stump/lib/sidebar.php +43 -0
- data/lib/wp/wp-content/themes/stump/lib/titles.php +37 -0
- data/lib/wp/wp-content/themes/stump/lib/utils.php +14 -0
- data/lib/wp/wp-content/themes/stump/lib/widgets.php +133 -0
- data/lib/wp/wp-content/themes/stump/lib/wrapper.php +49 -0
- data/lib/wp/wp-content/themes/stump/package.json +32 -0
- data/lib/wp/wp-content/themes/stump/page.php +2 -0
- data/lib/wp/wp-content/themes/stump/screenshot.png +0 -0
- data/lib/wp/wp-content/themes/stump/single.php +1 -0
- data/lib/wp/wp-content/themes/stump/style.css +11 -0
- data/lib/wp/wp-content/themes/stump/template-custom.php +8 -0
- data/lib/wp/wp-content/themes/stump/templates/comment.php +14 -0
- data/lib/wp/wp-content/themes/stump/templates/comments.php +80 -0
- data/lib/wp/wp-content/themes/stump/templates/content-page.php +4 -0
- data/lib/wp/wp-content/themes/stump/templates/content-single.php +15 -0
- data/lib/wp/wp-content/themes/stump/templates/content.php +9 -0
- data/lib/wp/wp-content/themes/stump/templates/entry-meta.php +2 -0
- data/lib/wp/wp-content/themes/stump/templates/footer.php +8 -0
- data/lib/wp/wp-content/themes/stump/templates/head.php +12 -0
- data/lib/wp/wp-content/themes/stump/templates/header-top-navbar.php +21 -0
- data/lib/wp/wp-content/themes/stump/templates/header.php +14 -0
- data/lib/wp/wp-content/themes/stump/templates/page-header.php +5 -0
- data/lib/wp/wp-content/themes/stump/templates/searchform.php +9 -0
- data/lib/wp/wp-content/themes/stump/templates/sidebar.php +1 -0
- data/lib/wp/wp-content/themes/twentyfourteen/404.php +32 -0
- data/lib/wp/wp-content/themes/twentyfourteen/archive.php +74 -0
- data/lib/wp/wp-content/themes/twentyfourteen/author.php +74 -0
- data/lib/wp/wp-content/themes/twentyfourteen/category.php +58 -0
- data/lib/wp/wp-content/themes/twentyfourteen/comments.php +66 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-aside.php +57 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-audio.php +57 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-featured-post.php +34 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-gallery.php +57 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-image.php +57 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-link.php +57 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-none.php +31 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-page.php +31 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-quote.php +57 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content-video.php +57 -0
- data/lib/wp/wp-content/themes/twentyfourteen/content.php +66 -0
- data/lib/wp/wp-content/themes/twentyfourteen/css/editor-style.css +717 -0
- data/lib/wp/wp-content/themes/twentyfourteen/css/ie.css +1335 -0
- data/lib/wp/wp-content/themes/twentyfourteen/featured-content.php +39 -0
- data/lib/wp/wp-content/themes/twentyfourteen/footer.php +28 -0
- data/lib/wp/wp-content/themes/twentyfourteen/functions.php +519 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/COPYING.txt +9 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/Genericons-Regular.otf +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/LICENSE.txt +339 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/README.txt +123 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/example.html +464 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.eot +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.svg +135 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.ttf +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.woff +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/genericons.css +197 -0
- data/lib/wp/wp-content/themes/twentyfourteen/header.php +65 -0
- data/lib/wp/wp-content/themes/twentyfourteen/image.php +79 -0
- data/lib/wp/wp-content/themes/twentyfourteen/images/pattern-dark.svg +16 -0
- data/lib/wp/wp-content/themes/twentyfourteen/images/pattern-light.svg +6 -0
- data/lib/wp/wp-content/themes/twentyfourteen/inc/back-compat.php +63 -0
- data/lib/wp/wp-content/themes/twentyfourteen/inc/custom-header.php +147 -0
- data/lib/wp/wp-content/themes/twentyfourteen/inc/customizer.php +114 -0
- data/lib/wp/wp-content/themes/twentyfourteen/inc/featured-content.php +531 -0
- data/lib/wp/wp-content/themes/twentyfourteen/inc/template-tags.php +203 -0
- data/lib/wp/wp-content/themes/twentyfourteen/inc/widgets.php +269 -0
- data/lib/wp/wp-content/themes/twentyfourteen/index.php +61 -0
- data/lib/wp/wp-content/themes/twentyfourteen/js/customizer.js +38 -0
- data/lib/wp/wp-content/themes/twentyfourteen/js/featured-content-admin.js +9 -0
- data/lib/wp/wp-content/themes/twentyfourteen/js/functions.js +134 -0
- data/lib/wp/wp-content/themes/twentyfourteen/js/html5.js +8 -0
- data/lib/wp/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js +21 -0
- data/lib/wp/wp-content/themes/twentyfourteen/js/slider.js +598 -0
- data/lib/wp/wp-content/themes/twentyfourteen/languages/twentyfourteen.pot +467 -0
- data/lib/wp/wp-content/themes/twentyfourteen/page-templates/contributors.php +52 -0
- data/lib/wp/wp-content/themes/twentyfourteen/page-templates/full-width.php +42 -0
- data/lib/wp/wp-content/themes/twentyfourteen/page.php +48 -0
- data/lib/wp/wp-content/themes/twentyfourteen/rtl.css +854 -0
- data/lib/wp/wp-content/themes/twentyfourteen/screenshot.png +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/search.php +49 -0
- data/lib/wp/wp-content/themes/twentyfourteen/sidebar-content.php +16 -0
- data/lib/wp/wp-content/themes/twentyfourteen/sidebar-footer.php +19 -0
- data/lib/wp/wp-content/themes/twentyfourteen/sidebar.php +29 -0
- data/lib/wp/wp-content/themes/twentyfourteen/single.php +40 -0
- data/lib/wp/wp-content/themes/twentyfourteen/style.css +4321 -0
- data/lib/wp/wp-content/themes/twentyfourteen/tag.php +60 -0
- data/lib/wp/wp-content/themes/twentyfourteen/taxonomy-post_format.php +85 -0
- data/lib/wp/wp-cron.php +115 -0
- data/lib/wp/wp-includes/ID3/getid3.lib.php +1376 -0
- data/lib/wp/wp-includes/ID3/getid3.php +1796 -0
- data/lib/wp/wp-includes/ID3/license.commercial.txt +27 -0
- data/lib/wp/wp-includes/ID3/license.txt +29 -0
- data/lib/wp/wp-includes/ID3/module.audio-video.asf.php +2013 -0
- data/lib/wp/wp-includes/ID3/module.audio-video.flv.php +745 -0
- data/lib/wp/wp-includes/ID3/module.audio-video.matroska.php +1751 -0
- data/lib/wp/wp-includes/ID3/module.audio-video.quicktime.php +2246 -0
- data/lib/wp/wp-includes/ID3/module.audio-video.riff.php +2586 -0
- data/lib/wp/wp-includes/ID3/module.audio.ac3.php +474 -0
- data/lib/wp/wp-includes/ID3/module.audio.dts.php +291 -0
- data/lib/wp/wp-includes/ID3/module.audio.flac.php +443 -0
- data/lib/wp/wp-includes/ID3/module.audio.mp3.php +2012 -0
- data/lib/wp/wp-includes/ID3/module.audio.ogg.php +756 -0
- data/lib/wp/wp-includes/ID3/module.tag.apetag.php +371 -0
- data/lib/wp/wp-includes/ID3/module.tag.id3v1.php +360 -0
- data/lib/wp/wp-includes/ID3/module.tag.id3v2.php +3424 -0
- data/lib/wp/wp-includes/ID3/module.tag.lyrics3.php +294 -0
- data/lib/wp/wp-includes/ID3/readme.txt +604 -0
- data/lib/wp/wp-includes/SimplePie/Author.php +157 -0
- data/lib/wp/wp-includes/SimplePie/Cache.php +133 -0
- data/lib/wp/wp-includes/SimplePie/Cache/Base.php +114 -0
- data/lib/wp/wp-includes/SimplePie/Cache/DB.php +137 -0
- data/lib/wp/wp-includes/SimplePie/Cache/File.php +173 -0
- data/lib/wp/wp-includes/SimplePie/Cache/Memcache.php +183 -0
- data/lib/wp/wp-includes/SimplePie/Cache/MySQL.php +438 -0
- data/lib/wp/wp-includes/SimplePie/Caption.php +210 -0
- data/lib/wp/wp-includes/SimplePie/Category.php +157 -0
- data/lib/wp/wp-includes/SimplePie/Content/Type/Sniffer.php +332 -0
- data/lib/wp/wp-includes/SimplePie/Copyright.php +130 -0
- data/lib/wp/wp-includes/SimplePie/Core.php +57 -0
- data/lib/wp/wp-includes/SimplePie/Credit.php +156 -0
- data/lib/wp/wp-includes/SimplePie/Decode/HTML/Entities.php +617 -0
- data/lib/wp/wp-includes/SimplePie/Enclosure.php +1380 -0
- data/lib/wp/wp-includes/SimplePie/Exception.php +52 -0
- data/lib/wp/wp-includes/SimplePie/File.php +292 -0
- data/lib/wp/wp-includes/SimplePie/HTTP/Parser.php +500 -0
- data/lib/wp/wp-includes/SimplePie/IRI.php +1238 -0
- data/lib/wp/wp-includes/SimplePie/Item.php +2964 -0
- data/lib/wp/wp-includes/SimplePie/Locator.php +372 -0
- data/lib/wp/wp-includes/SimplePie/Misc.php +2247 -0
- data/lib/wp/wp-includes/SimplePie/Net/IPv6.php +276 -0
- data/lib/wp/wp-includes/SimplePie/Parse/Date.php +983 -0
- data/lib/wp/wp-includes/SimplePie/Parser.php +407 -0
- data/lib/wp/wp-includes/SimplePie/Rating.php +129 -0
- data/lib/wp/wp-includes/SimplePie/Registry.php +225 -0
- data/lib/wp/wp-includes/SimplePie/Restriction.php +155 -0
- data/lib/wp/wp-includes/SimplePie/Sanitize.php +554 -0
- data/lib/wp/wp-includes/SimplePie/Source.php +611 -0
- data/lib/wp/wp-includes/SimplePie/XML/Declaration/Parser.php +362 -0
- data/lib/wp/wp-includes/SimplePie/gzdecode.php +371 -0
- data/lib/wp/wp-includes/Text/Diff.php +450 -0
- data/lib/wp/wp-includes/Text/Diff/Engine/native.php +436 -0
- data/lib/wp/wp-includes/Text/Diff/Engine/shell.php +162 -0
- data/lib/wp/wp-includes/Text/Diff/Engine/string.php +248 -0
- data/lib/wp/wp-includes/Text/Diff/Engine/xdiff.php +64 -0
- data/lib/wp/wp-includes/Text/Diff/Renderer.php +235 -0
- data/lib/wp/wp-includes/Text/Diff/Renderer/inline.php +206 -0
- data/lib/wp/wp-includes/admin-bar.php +870 -0
- data/lib/wp/wp-includes/atomlib.php +352 -0
- data/lib/wp/wp-includes/author-template.php +471 -0
- data/lib/wp/wp-includes/bookmark-template.php +298 -0
- data/lib/wp/wp-includes/bookmark.php +416 -0
- data/lib/wp/wp-includes/cache.php +704 -0
- data/lib/wp/wp-includes/canonical.php +586 -0
- data/lib/wp/wp-includes/capabilities.php +1539 -0
- data/lib/wp/wp-includes/category-template.php +1407 -0
- data/lib/wp/wp-includes/category.php +343 -0
- data/lib/wp/wp-includes/certificates/ca-bundle.crt +3785 -0
- data/lib/wp/wp-includes/class-IXR.php +1100 -0
- data/lib/wp/wp-includes/class-feed.php +140 -0
- data/lib/wp/wp-includes/class-http.php +2245 -0
- data/lib/wp/wp-includes/class-json.php +936 -0
- data/lib/wp/wp-includes/class-oembed.php +579 -0
- data/lib/wp/wp-includes/class-phpass.php +260 -0
- data/lib/wp/wp-includes/class-phpmailer.php +3265 -0
- data/lib/wp/wp-includes/class-pop3.php +652 -0
- data/lib/wp/wp-includes/class-simplepie.php +3119 -0
- data/lib/wp/wp-includes/class-smtp.php +943 -0
- data/lib/wp/wp-includes/class-snoopy.php +1256 -0
- data/lib/wp/wp-includes/class-wp-admin-bar.php +517 -0
- data/lib/wp/wp-includes/class-wp-ajax-response.php +199 -0
- data/lib/wp/wp-includes/class-wp-customize-control.php +1124 -0
- data/lib/wp/wp-includes/class-wp-customize-manager.php +1272 -0
- data/lib/wp/wp-includes/class-wp-customize-panel.php +200 -0
- data/lib/wp/wp-includes/class-wp-customize-section.php +196 -0
- data/lib/wp/wp-includes/class-wp-customize-setting.php +554 -0
- data/lib/wp/wp-includes/class-wp-customize-widgets.php +1556 -0
- data/lib/wp/wp-includes/class-wp-editor.php +1435 -0
- data/lib/wp/wp-includes/class-wp-embed.php +373 -0
- data/lib/wp/wp-includes/class-wp-error.php +276 -0
- data/lib/wp/wp-includes/class-wp-http-ixr-client.php +97 -0
- data/lib/wp/wp-includes/class-wp-image-editor-gd.php +459 -0
- data/lib/wp/wp-includes/class-wp-image-editor-imagick.php +512 -0
- data/lib/wp/wp-includes/class-wp-image-editor.php +475 -0
- data/lib/wp/wp-includes/class-wp-theme.php +1235 -0
- data/lib/wp/wp-includes/class-wp-walker.php +471 -0
- data/lib/wp/wp-includes/class-wp-xmlrpc-server.php +5984 -0
- data/lib/wp/wp-includes/class-wp.php +782 -0
- data/lib/wp/wp-includes/class.wp-dependencies.php +509 -0
- data/lib/wp/wp-includes/class.wp-scripts.php +247 -0
- data/lib/wp/wp-includes/class.wp-styles.php +210 -0
- data/lib/wp/wp-includes/comment-template.php +2286 -0
- data/lib/wp/wp-includes/comment.php +2606 -0
- data/lib/wp/wp-includes/compat.php +125 -0
- data/lib/wp/wp-includes/cron.php +469 -0
- data/lib/wp/wp-includes/css/admin-bar-rtl.css +1099 -0
- data/lib/wp/wp-includes/css/admin-bar-rtl.min.css +1 -0
- data/lib/wp/wp-includes/css/admin-bar.css +1099 -0
- data/lib/wp/wp-includes/css/admin-bar.min.css +1 -0
- data/lib/wp/wp-includes/css/buttons-rtl.css +364 -0
- data/lib/wp/wp-includes/css/buttons-rtl.min.css +1 -0
- data/lib/wp/wp-includes/css/buttons.css +364 -0
- data/lib/wp/wp-includes/css/buttons.min.css +1 -0
- data/lib/wp/wp-includes/css/dashicons.css +893 -0
- data/lib/wp/wp-includes/css/dashicons.min.css +1 -0
- data/lib/wp/wp-includes/css/editor-rtl.css +1993 -0
- data/lib/wp/wp-includes/css/editor-rtl.min.css +1 -0
- data/lib/wp/wp-includes/css/editor.css +1993 -0
- data/lib/wp/wp-includes/css/editor.min.css +1 -0
- data/lib/wp/wp-includes/css/jquery-ui-dialog-rtl.css +343 -0
- data/lib/wp/wp-includes/css/jquery-ui-dialog-rtl.min.css +19 -0
- data/lib/wp/wp-includes/css/jquery-ui-dialog.css +343 -0
- data/lib/wp/wp-includes/css/jquery-ui-dialog.min.css +19 -0
- data/lib/wp/wp-includes/css/media-views-rtl.css +2568 -0
- data/lib/wp/wp-includes/css/media-views-rtl.min.css +1 -0
- data/lib/wp/wp-includes/css/media-views.css +2568 -0
- data/lib/wp/wp-includes/css/media-views.min.css +1 -0
- data/lib/wp/wp-includes/css/wp-auth-check-rtl.css +100 -0
- data/lib/wp/wp-includes/css/wp-auth-check-rtl.min.css +1 -0
- data/lib/wp/wp-includes/css/wp-auth-check.css +100 -0
- data/lib/wp/wp-includes/css/wp-auth-check.min.css +1 -0
- data/lib/wp/wp-includes/css/wp-pointer-rtl.css +212 -0
- data/lib/wp/wp-includes/css/wp-pointer-rtl.min.css +1 -0
- data/lib/wp/wp-includes/css/wp-pointer.css +212 -0
- data/lib/wp/wp-includes/css/wp-pointer.min.css +1 -0
- data/lib/wp/wp-includes/date.php +475 -0
- data/lib/wp/wp-includes/default-constants.php +323 -0
- data/lib/wp/wp-includes/default-filters.php +307 -0
- data/lib/wp/wp-includes/default-widgets.php +1423 -0
- data/lib/wp/wp-includes/deprecated.php +3501 -0
- data/lib/wp/wp-includes/feed-atom-comments.php +115 -0
- data/lib/wp/wp-includes/feed-atom.php +87 -0
- data/lib/wp/wp-includes/feed-rdf.php +81 -0
- data/lib/wp/wp-includes/feed-rss.php +46 -0
- data/lib/wp/wp-includes/feed-rss2-comments.php +97 -0
- data/lib/wp/wp-includes/feed-rss2.php +115 -0
- data/lib/wp/wp-includes/feed.php +659 -0
- data/lib/wp/wp-includes/fonts/dashicons.eot +0 -0
- data/lib/wp/wp-includes/fonts/dashicons.svg +250 -0
- data/lib/wp/wp-includes/fonts/dashicons.ttf +0 -0
- data/lib/wp/wp-includes/fonts/dashicons.woff +0 -0
- data/lib/wp/wp-includes/formatting.php +4006 -0
- data/lib/wp/wp-includes/functions.php +4631 -0
- data/lib/wp/wp-includes/functions.wp-scripts.php +258 -0
- data/lib/wp/wp-includes/functions.wp-styles.php +245 -0
- data/lib/wp/wp-includes/general-template.php +2982 -0
- data/lib/wp/wp-includes/http.php +551 -0
- data/lib/wp/wp-includes/images/admin-bar-sprite-2x.png +0 -0
- data/lib/wp/wp-includes/images/admin-bar-sprite.png +0 -0
- data/lib/wp/wp-includes/images/arrow-pointer-blue-2x.png +0 -0
- data/lib/wp/wp-includes/images/arrow-pointer-blue.png +0 -0
- data/lib/wp/wp-includes/images/blank.gif +0 -0
- data/lib/wp/wp-includes/images/crystal/archive.png +0 -0
- data/lib/wp/wp-includes/images/crystal/audio.png +0 -0
- data/lib/wp/wp-includes/images/crystal/code.png +0 -0
- data/lib/wp/wp-includes/images/crystal/default.png +0 -0
- data/lib/wp/wp-includes/images/crystal/document.png +0 -0
- data/lib/wp/wp-includes/images/crystal/interactive.png +0 -0
- data/lib/wp/wp-includes/images/crystal/license.txt +9 -0
- data/lib/wp/wp-includes/images/crystal/spreadsheet.png +0 -0
- data/lib/wp/wp-includes/images/crystal/text.png +0 -0
- data/lib/wp/wp-includes/images/crystal/video.png +0 -0
- data/lib/wp/wp-includes/images/down_arrow-2x.gif +0 -0
- data/lib/wp/wp-includes/images/down_arrow.gif +0 -0
- data/lib/wp/wp-includes/images/icon-pointer-flag-2x.png +0 -0
- data/lib/wp/wp-includes/images/icon-pointer-flag.png +0 -0
- data/lib/wp/wp-includes/images/media/archive.png +0 -0
- data/lib/wp/wp-includes/images/media/audio.png +0 -0
- data/lib/wp/wp-includes/images/media/code.png +0 -0
- data/lib/wp/wp-includes/images/media/default.png +0 -0
- data/lib/wp/wp-includes/images/media/document.png +0 -0
- data/lib/wp/wp-includes/images/media/interactive.png +0 -0
- data/lib/wp/wp-includes/images/media/spreadsheet.png +0 -0
- data/lib/wp/wp-includes/images/media/text.png +0 -0
- data/lib/wp/wp-includes/images/media/video.png +0 -0
- data/lib/wp/wp-includes/images/rss-2x.png +0 -0
- data/lib/wp/wp-includes/images/rss.png +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_arrow.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_biggrin.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_confused.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_cool.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_cry.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_eek.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_evil.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_exclaim.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_idea.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_lol.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_mad.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_mrgreen.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_neutral.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_question.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_razz.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_redface.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_rolleyes.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_sad.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_smile.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_surprised.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_twisted.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_wink.gif +0 -0
- data/lib/wp/wp-includes/images/spinner-2x.gif +0 -0
- data/lib/wp/wp-includes/images/spinner.gif +0 -0
- data/lib/wp/wp-includes/images/toggle-arrow-2x.png +0 -0
- data/lib/wp/wp-includes/images/toggle-arrow.png +0 -0
- data/lib/wp/wp-includes/images/uploader-icons-2x.png +0 -0
- data/lib/wp/wp-includes/images/uploader-icons.png +0 -0
- data/lib/wp/wp-includes/images/wlw/wp-comments.png +0 -0
- data/lib/wp/wp-includes/images/wlw/wp-icon.png +0 -0
- data/lib/wp/wp-includes/images/wlw/wp-watermark.png +0 -0
- data/lib/wp/wp-includes/images/wpicons-2x.png +0 -0
- data/lib/wp/wp-includes/images/wpicons.png +0 -0
- data/lib/wp/wp-includes/images/wpspin-2x.gif +0 -0
- data/lib/wp/wp-includes/images/wpspin.gif +0 -0
- data/lib/wp/wp-includes/images/xit-2x.gif +0 -0
- data/lib/wp/wp-includes/images/xit.gif +0 -0
- data/lib/wp/wp-includes/js/admin-bar.js +365 -0
- data/lib/wp/wp-includes/js/admin-bar.min.js +1 -0
- data/lib/wp/wp-includes/js/autosave.js +589 -0
- data/lib/wp/wp-includes/js/autosave.min.js +1 -0
- data/lib/wp/wp-includes/js/backbone.min.js +1 -0
- data/lib/wp/wp-includes/js/colorpicker.js +707 -0
- data/lib/wp/wp-includes/js/colorpicker.min.js +1 -0
- data/lib/wp/wp-includes/js/comment-reply.js +47 -0
- data/lib/wp/wp-includes/js/comment-reply.min.js +1 -0
- data/lib/wp/wp-includes/js/crop/cropper.css +165 -0
- data/lib/wp/wp-includes/js/crop/cropper.js +516 -0
- data/lib/wp/wp-includes/js/crop/marqueeHoriz.gif +0 -0
- data/lib/wp/wp-includes/js/crop/marqueeVert.gif +0 -0
- data/lib/wp/wp-includes/js/customize-base.js +617 -0
- data/lib/wp/wp-includes/js/customize-base.min.js +1 -0
- data/lib/wp/wp-includes/js/customize-loader.js +246 -0
- data/lib/wp/wp-includes/js/customize-loader.min.js +1 -0
- data/lib/wp/wp-includes/js/customize-models.js +247 -0
- data/lib/wp/wp-includes/js/customize-models.min.js +1 -0
- data/lib/wp/wp-includes/js/customize-preview-widgets.js +129 -0
- data/lib/wp/wp-includes/js/customize-preview-widgets.min.js +1 -0
- data/lib/wp/wp-includes/js/customize-preview.js +154 -0
- data/lib/wp/wp-includes/js/customize-preview.min.js +1 -0
- data/lib/wp/wp-includes/js/customize-views.js +231 -0
- data/lib/wp/wp-includes/js/customize-views.min.js +1 -0
- data/lib/wp/wp-includes/js/heartbeat.js +738 -0
- data/lib/wp/wp-includes/js/heartbeat.min.js +1 -0
- data/lib/wp/wp-includes/js/hoverIntent.js +115 -0
- data/lib/wp/wp-includes/js/hoverIntent.min.js +1 -0
- data/lib/wp/wp-includes/js/imgareaselect/border-anim-h.gif +0 -0
- data/lib/wp/wp-includes/js/imgareaselect/border-anim-v.gif +0 -0
- data/lib/wp/wp-includes/js/imgareaselect/imgareaselect.css +41 -0
- data/lib/wp/wp-includes/js/imgareaselect/jquery.imgareaselect.js +1205 -0
- data/lib/wp/wp-includes/js/imgareaselect/jquery.imgareaselect.min.js +1 -0
- data/lib/wp/wp-includes/js/jcrop/Jcrop.gif +0 -0
- data/lib/wp/wp-includes/js/jcrop/jquery.Jcrop.min.css +29 -0
- data/lib/wp/wp-includes/js/jcrop/jquery.Jcrop.min.js +22 -0
- data/lib/wp/wp-includes/js/jquery/jquery-migrate.js +521 -0
- data/lib/wp/wp-includes/js/jquery/jquery-migrate.min.js +2 -0
- data/lib/wp/wp-includes/js/jquery/jquery.color.min.js +2 -0
- data/lib/wp/wp-includes/js/jquery/jquery.form.js +1193 -0
- data/lib/wp/wp-includes/js/jquery/jquery.form.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/jquery.hotkeys.js +134 -0
- data/lib/wp/wp-includes/js/jquery/jquery.hotkeys.min.js +1 -0
- data/lib/wp/wp-includes/js/jquery/jquery.js +5 -0
- data/lib/wp/wp-includes/js/jquery/jquery.masonry.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/jquery.query.js +11 -0
- data/lib/wp/wp-includes/js/jquery/jquery.schedule.js +36 -0
- data/lib/wp/wp-includes/js/jquery/jquery.serialize-object.js +31 -0
- data/lib/wp/wp-includes/js/jquery/jquery.table-hotkeys.js +99 -0
- data/lib/wp/wp-includes/js/jquery/jquery.table-hotkeys.min.js +1 -0
- data/lib/wp/wp-includes/js/jquery/jquery.ui.touch-punch.js +11 -0
- data/lib/wp/wp-includes/js/jquery/suggest.js +316 -0
- data/lib/wp/wp-includes/js/jquery/suggest.min.js +1 -0
- data/lib/wp/wp-includes/js/jquery/ui/accordion.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/autocomplete.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/button.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/core.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/datepicker.min.js +12 -0
- data/lib/wp/wp-includes/js/jquery/ui/dialog.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/draggable.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/droppable.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-blind.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-bounce.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-clip.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-drop.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-explode.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-fade.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-fold.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-highlight.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-puff.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-pulsate.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-scale.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-shake.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-size.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-slide.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect-transfer.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/effect.min.js +21 -0
- data/lib/wp/wp-includes/js/jquery/ui/menu.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/mouse.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/position.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/progressbar.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/resizable.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/selectable.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/selectmenu.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/slider.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/sortable.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/spinner.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/tabs.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/tooltip.min.js +11 -0
- data/lib/wp/wp-includes/js/jquery/ui/widget.min.js +11 -0
- data/lib/wp/wp-includes/js/json2.js +480 -0
- data/lib/wp/wp-includes/js/json2.min.js +1 -0
- data/lib/wp/wp-includes/js/masonry.min.js +1 -0
- data/lib/wp/wp-includes/js/mce-view.js +829 -0
- data/lib/wp/wp-includes/js/mce-view.min.js +1 -0
- data/lib/wp/wp-includes/js/media-audiovideo.js +831 -0
- data/lib/wp/wp-includes/js/media-audiovideo.min.js +1 -0
- data/lib/wp/wp-includes/js/media-editor.js +1114 -0
- data/lib/wp/wp-includes/js/media-editor.min.js +1 -0
- data/lib/wp/wp-includes/js/media-grid.js +732 -0
- data/lib/wp/wp-includes/js/media-grid.min.js +1 -0
- data/lib/wp/wp-includes/js/media-models.js +1362 -0
- data/lib/wp/wp-includes/js/media-models.min.js +1 -0
- data/lib/wp/wp-includes/js/media-views.js +7484 -0
- data/lib/wp/wp-includes/js/media-views.min.js +3 -0
- data/lib/wp/wp-includes/js/mediaelement/background.png +0 -0
- data/lib/wp/wp-includes/js/mediaelement/bigplay.png +0 -0
- data/lib/wp/wp-includes/js/mediaelement/bigplay.svg +1 -0
- data/lib/wp/wp-includes/js/mediaelement/controls.png +0 -0
- data/lib/wp/wp-includes/js/mediaelement/controls.svg +1 -0
- data/lib/wp/wp-includes/js/mediaelement/flashmediaelement.swf +0 -0
- data/lib/wp/wp-includes/js/mediaelement/loading.gif +0 -0
- data/lib/wp/wp-includes/js/mediaelement/mediaelement-and-player.min.js +181 -0
- data/lib/wp/wp-includes/js/mediaelement/mediaelementplayer.min.css +1 -0
- data/lib/wp/wp-includes/js/mediaelement/silverlightmediaelement.xap +0 -0
- data/lib/wp/wp-includes/js/mediaelement/wp-mediaelement.css +274 -0
- data/lib/wp/wp-includes/js/mediaelement/wp-mediaelement.js +34 -0
- data/lib/wp/wp-includes/js/mediaelement/wp-playlist.js +175 -0
- data/lib/wp/wp-includes/js/plupload/handlers.js +488 -0
- data/lib/wp/wp-includes/js/plupload/handlers.min.js +1 -0
- data/lib/wp/wp-includes/js/plupload/license.txt +339 -0
- data/lib/wp/wp-includes/js/plupload/plupload.flash.swf +0 -0
- data/lib/wp/wp-includes/js/plupload/plupload.full.min.js +28 -0
- data/lib/wp/wp-includes/js/plupload/plupload.silverlight.xap +0 -0
- data/lib/wp/wp-includes/js/plupload/wp-plupload.js +376 -0
- data/lib/wp/wp-includes/js/plupload/wp-plupload.min.js +1 -0
- data/lib/wp/wp-includes/js/quicktags.js +652 -0
- data/lib/wp/wp-includes/js/quicktags.min.js +1 -0
- data/lib/wp/wp-includes/js/shortcode.js +356 -0
- data/lib/wp/wp-includes/js/shortcode.min.js +1 -0
- data/lib/wp/wp-includes/js/swfobject.js +4 -0
- data/lib/wp/wp-includes/js/swfupload/handlers.js +376 -0
- data/lib/wp/wp-includes/js/swfupload/handlers.min.js +1 -0
- data/lib/wp/wp-includes/js/swfupload/license.txt +32 -0
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.cookies.js +53 -0
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.queue.js +98 -0
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.speed.js +342 -0
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.swfobject.js +105 -0
- data/lib/wp/wp-includes/js/swfupload/swfupload.js +980 -0
- data/lib/wp/wp-includes/js/swfupload/swfupload.swf +0 -0
- data/lib/wp/wp-includes/js/thickbox/loadingAnimation.gif +0 -0
- data/lib/wp/wp-includes/js/thickbox/macFFBgHack.png +0 -0
- data/lib/wp/wp-includes/js/thickbox/thickbox.css +138 -0
- data/lib/wp/wp-includes/js/thickbox/thickbox.js +314 -0
- data/lib/wp/wp-includes/js/tinymce/langs/wp-langs-en.js +519 -0
- data/lib/wp/wp-includes/js/tinymce/license.txt +504 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/charmap/plugin.js +370 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/charmap/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/colorpicker/plugin.js +112 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/colorpicker/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/css/dialog.css +212 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/plugin.js +304 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/directionality/plugin.js +64 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/directionality/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/fullscreen/plugin.js +136 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/hr/plugin.js +30 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/hr/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/image/plugin.js +450 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/image/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/lists/plugin.js +786 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/lists/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/media/plugin.js +774 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/media/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/paste/plugin.js +1553 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/paste/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/tabfocus/plugin.js +125 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/tabfocus/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/textcolor/plugin.js +272 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/textcolor/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wordpress/plugin.js +513 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wordpress/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js +207 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpautoresize/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpdialogs/plugin.js +92 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpdialogs/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js +1035 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpeditimage/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpfullscreen/plugin.js +78 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpfullscreen/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.js +130 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wplink/plugin.js +63 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wplink/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpview/plugin.js +694 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/wpview/plugin.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/content.inline.min.css +1 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/content.min.css +1 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/readme.md +1 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.svg +62 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.svg +63 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/object.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/trans.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/skin.ie7.min.css +1 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/skin.min.css +1 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/audio.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/dashicon-edit.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/embedded.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/gallery-2x.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/gallery.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/more-2x.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/more.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/pagebreak-2x.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/pagebreak.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/playlist-audio.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/playlist-video.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/video.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/wp-content.css +618 -0
- data/lib/wp/wp-includes/js/tinymce/themes/modern/theme.js +617 -0
- data/lib/wp/wp-includes/js/tinymce/themes/modern/theme.min.js +1 -0
- data/lib/wp/wp-includes/js/tinymce/tiny_mce_popup.js +539 -0
- data/lib/wp/wp-includes/js/tinymce/tinymce.min.js +11 -0
- data/lib/wp/wp-includes/js/tinymce/utils/editable_selects.js +70 -0
- data/lib/wp/wp-includes/js/tinymce/utils/form_utils.js +210 -0
- data/lib/wp/wp-includes/js/tinymce/utils/mctabs.js +164 -0
- data/lib/wp/wp-includes/js/tinymce/utils/validate.js +252 -0
- data/lib/wp/wp-includes/js/tinymce/wp-mce-help.php +145 -0
- data/lib/wp/wp-includes/js/tinymce/wp-tinymce.js.gz +0 -0
- data/lib/wp/wp-includes/js/tinymce/wp-tinymce.php +39 -0
- data/lib/wp/wp-includes/js/tw-sack.js +193 -0
- data/lib/wp/wp-includes/js/tw-sack.min.js +1 -0
- data/lib/wp/wp-includes/js/underscore.min.js +1 -0
- data/lib/wp/wp-includes/js/utils.js +197 -0
- data/lib/wp/wp-includes/js/utils.min.js +1 -0
- data/lib/wp/wp-includes/js/wp-ajax-response.js +64 -0
- data/lib/wp/wp-includes/js/wp-ajax-response.min.js +1 -0
- data/lib/wp/wp-includes/js/wp-auth-check.js +112 -0
- data/lib/wp/wp-includes/js/wp-auth-check.min.js +1 -0
- data/lib/wp/wp-includes/js/wp-backbone.js +386 -0
- data/lib/wp/wp-includes/js/wp-backbone.min.js +1 -0
- data/lib/wp/wp-includes/js/wp-list-revisions.js +24 -0
- data/lib/wp/wp-includes/js/wp-list-revisions.min.js +1 -0
- data/lib/wp/wp-includes/js/wp-lists.js +469 -0
- data/lib/wp/wp-includes/js/wp-lists.min.js +1 -0
- data/lib/wp/wp-includes/js/wp-pointer.js +282 -0
- data/lib/wp/wp-includes/js/wp-pointer.min.js +1 -0
- data/lib/wp/wp-includes/js/wp-util.js +106 -0
- data/lib/wp/wp-includes/js/wp-util.min.js +1 -0
- data/lib/wp/wp-includes/js/wpdialog.js +19 -0
- data/lib/wp/wp-includes/js/wpdialog.min.js +1 -0
- data/lib/wp/wp-includes/js/wplink.js +615 -0
- data/lib/wp/wp-includes/js/wplink.min.js +1 -0
- data/lib/wp/wp-includes/js/zxcvbn-async.js +18 -0
- data/lib/wp/wp-includes/js/zxcvbn-async.min.js +1 -0
- data/lib/wp/wp-includes/js/zxcvbn.min.js +47 -0
- data/lib/wp/wp-includes/kses.php +1526 -0
- data/lib/wp/wp-includes/l10n.php +908 -0
- data/lib/wp/wp-includes/link-template.php +3141 -0
- data/lib/wp/wp-includes/load.php +828 -0
- data/lib/wp/wp-includes/locale.php +368 -0
- data/lib/wp/wp-includes/media-template.php +1235 -0
- data/lib/wp/wp-includes/media.php +3329 -0
- data/lib/wp/wp-includes/meta.php +1221 -0
- data/lib/wp/wp-includes/ms-blogs.php +939 -0
- data/lib/wp/wp-includes/ms-default-constants.php +153 -0
- data/lib/wp/wp-includes/ms-default-filters.php +82 -0
- data/lib/wp/wp-includes/ms-deprecated.php +347 -0
- data/lib/wp/wp-includes/ms-files.php +82 -0
- data/lib/wp/wp-includes/ms-functions.php +2476 -0
- data/lib/wp/wp-includes/ms-load.php +458 -0
- data/lib/wp/wp-includes/ms-settings.php +213 -0
- data/lib/wp/wp-includes/nav-menu-template.php +678 -0
- data/lib/wp/wp-includes/nav-menu.php +895 -0
- data/lib/wp/wp-includes/option.php +1440 -0
- data/lib/wp/wp-includes/pluggable-deprecated.php +192 -0
- data/lib/wp/wp-includes/pluggable.php +2283 -0
- data/lib/wp/wp-includes/plugin.php +920 -0
- data/lib/wp/wp-includes/pomo/entry.php +78 -0
- data/lib/wp/wp-includes/pomo/mo.php +262 -0
- data/lib/wp/wp-includes/pomo/po.php +384 -0
- data/lib/wp/wp-includes/pomo/streams.php +209 -0
- data/lib/wp/wp-includes/pomo/translations.php +275 -0
- data/lib/wp/wp-includes/post-formats.php +243 -0
- data/lib/wp/wp-includes/post-template.php +1766 -0
- data/lib/wp/wp-includes/post-thumbnail-template.php +142 -0
- data/lib/wp/wp-includes/post.php +5842 -0
- data/lib/wp/wp-includes/query.php +4666 -0
- data/lib/wp/wp-includes/registration-functions.php +7 -0
- data/lib/wp/wp-includes/registration.php +7 -0
- data/lib/wp/wp-includes/revision.php +657 -0
- data/lib/wp/wp-includes/rewrite.php +2180 -0
- data/lib/wp/wp-includes/rss-functions.php +9 -0
- data/lib/wp/wp-includes/rss.php +936 -0
- data/lib/wp/wp-includes/script-loader.php +1045 -0
- data/lib/wp/wp-includes/session.php +430 -0
- data/lib/wp/wp-includes/shortcodes.php +410 -0
- data/lib/wp/wp-includes/taxonomy.php +4006 -0
- data/lib/wp/wp-includes/template-loader.php +76 -0
- data/lib/wp/wp-includes/template.php +505 -0
- data/lib/wp/wp-includes/theme-compat/comments-popup.php +128 -0
- data/lib/wp/wp-includes/theme-compat/comments.php +101 -0
- data/lib/wp/wp-includes/theme-compat/footer.php +30 -0
- data/lib/wp/wp-includes/theme-compat/header.php +49 -0
- data/lib/wp/wp-includes/theme-compat/sidebar.php +83 -0
- data/lib/wp/wp-includes/theme.php +2014 -0
- data/lib/wp/wp-includes/update.php +674 -0
- data/lib/wp/wp-includes/user.php +2292 -0
- data/lib/wp/wp-includes/vars.php +144 -0
- data/lib/wp/wp-includes/version.php +35 -0
- data/lib/wp/wp-includes/widgets.php +1514 -0
- data/lib/wp/wp-includes/wlwmanifest.xml +43 -0
- data/lib/wp/wp-includes/wp-db.php +2190 -0
- data/lib/wp/wp-includes/wp-diff.php +523 -0
- data/lib/wp/wp-links-opml.php +80 -0
- data/lib/wp/wp-load.php +73 -0
- data/lib/wp/wp-login.php +952 -0
- data/lib/wp/wp-mail.php +260 -0
- data/lib/wp/wp-settings.php +374 -0
- data/lib/wp/wp-signup.php +749 -0
- data/lib/wp/wp-trackback.php +127 -0
- data/lib/wp/xmlrpc.php +101 -0
- data/stump-cli.gemspec +26 -0
- metadata +1332 -4
@@ -0,0 +1,1235 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* WP_Theme Class
|
4
|
+
*
|
5
|
+
* @package WordPress
|
6
|
+
* @subpackage Theme
|
7
|
+
*/
|
8
|
+
|
9
|
+
final class WP_Theme implements ArrayAccess {
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Headers for style.css files.
|
13
|
+
*
|
14
|
+
* @static
|
15
|
+
* @access private
|
16
|
+
* @var array
|
17
|
+
*/
|
18
|
+
private static $file_headers = array(
|
19
|
+
'Name' => 'Theme Name',
|
20
|
+
'ThemeURI' => 'Theme URI',
|
21
|
+
'Description' => 'Description',
|
22
|
+
'Author' => 'Author',
|
23
|
+
'AuthorURI' => 'Author URI',
|
24
|
+
'Version' => 'Version',
|
25
|
+
'Template' => 'Template',
|
26
|
+
'Status' => 'Status',
|
27
|
+
'Tags' => 'Tags',
|
28
|
+
'TextDomain' => 'Text Domain',
|
29
|
+
'DomainPath' => 'Domain Path',
|
30
|
+
);
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Default themes.
|
34
|
+
*
|
35
|
+
* @static
|
36
|
+
* @access private
|
37
|
+
* @var array
|
38
|
+
*/
|
39
|
+
private static $default_themes = array(
|
40
|
+
'classic' => 'WordPress Classic',
|
41
|
+
'default' => 'WordPress Default',
|
42
|
+
'twentyten' => 'Twenty Ten',
|
43
|
+
'twentyeleven' => 'Twenty Eleven',
|
44
|
+
'twentytwelve' => 'Twenty Twelve',
|
45
|
+
'twentythirteen' => 'Twenty Thirteen',
|
46
|
+
'twentyfourteen' => 'Twenty Fourteen',
|
47
|
+
);
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Renamed theme tags.
|
51
|
+
*/
|
52
|
+
private static $tag_map = array(
|
53
|
+
'fixed-width' => 'fixed-layout',
|
54
|
+
'flexible-width' => 'fluid-layout',
|
55
|
+
);
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Absolute path to the theme root, usually wp-content/themes
|
59
|
+
*
|
60
|
+
* @access private
|
61
|
+
* @var string
|
62
|
+
*/
|
63
|
+
private $theme_root;
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Header data from the theme's style.css file.
|
67
|
+
*
|
68
|
+
* @access private
|
69
|
+
* @var array
|
70
|
+
*/
|
71
|
+
private $headers = array();
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Header data from the theme's style.css file after being sanitized.
|
75
|
+
*
|
76
|
+
* @access private
|
77
|
+
* @var array
|
78
|
+
*/
|
79
|
+
private $headers_sanitized;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Header name from the theme's style.css after being translated.
|
83
|
+
*
|
84
|
+
* Cached due to sorting functions running over the translated name.
|
85
|
+
*/
|
86
|
+
private $name_translated;
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Errors encountered when initializing the theme.
|
90
|
+
*
|
91
|
+
* @access private
|
92
|
+
* @var WP_Error
|
93
|
+
*/
|
94
|
+
private $errors;
|
95
|
+
|
96
|
+
/**
|
97
|
+
* The directory name of the theme's files, inside the theme root.
|
98
|
+
*
|
99
|
+
* In the case of a child theme, this is directory name of the child theme.
|
100
|
+
* Otherwise, 'stylesheet' is the same as 'template'.
|
101
|
+
*
|
102
|
+
* @access private
|
103
|
+
* @var string
|
104
|
+
*/
|
105
|
+
private $stylesheet;
|
106
|
+
|
107
|
+
/**
|
108
|
+
* The directory name of the theme's files, inside the theme root.
|
109
|
+
*
|
110
|
+
* In the case of a child theme, this is the directory name of the parent theme.
|
111
|
+
* Otherwise, 'template' is the same as 'stylesheet'.
|
112
|
+
*
|
113
|
+
* @access private
|
114
|
+
* @var string
|
115
|
+
*/
|
116
|
+
private $template;
|
117
|
+
|
118
|
+
/**
|
119
|
+
* A reference to the parent theme, in the case of a child theme.
|
120
|
+
*
|
121
|
+
* @access private
|
122
|
+
* @var WP_Theme
|
123
|
+
*/
|
124
|
+
private $parent;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* URL to the theme root, usually an absolute URL to wp-content/themes
|
128
|
+
*
|
129
|
+
* @access private
|
130
|
+
* var string
|
131
|
+
*/
|
132
|
+
private $theme_root_uri;
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Flag for whether the theme's textdomain is loaded.
|
136
|
+
*
|
137
|
+
* @access private
|
138
|
+
* @var bool
|
139
|
+
*/
|
140
|
+
private $textdomain_loaded;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Stores an md5 hash of the theme root, to function as the cache key.
|
144
|
+
*
|
145
|
+
* @access private
|
146
|
+
* @var string
|
147
|
+
*/
|
148
|
+
private $cache_hash;
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Flag for whether the themes cache bucket should be persistently cached.
|
152
|
+
*
|
153
|
+
* Default is false. Can be set with the wp_cache_themes_persistently filter.
|
154
|
+
*
|
155
|
+
* @access private
|
156
|
+
* @var bool
|
157
|
+
*/
|
158
|
+
private static $persistently_cache;
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Expiration time for the themes cache bucket.
|
162
|
+
*
|
163
|
+
* By default the bucket is not cached, so this value is useless.
|
164
|
+
*
|
165
|
+
* @access private
|
166
|
+
* @var bool
|
167
|
+
*/
|
168
|
+
private static $cache_expiration = 1800;
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Constructor for WP_Theme.
|
172
|
+
*
|
173
|
+
* @param string $theme_dir Directory of the theme within the theme_root.
|
174
|
+
* @param string $theme_root Theme root.
|
175
|
+
* @param WP_Error|null $_child If this theme is a parent theme, the child may be passed for validation purposes.
|
176
|
+
*/
|
177
|
+
public function __construct( $theme_dir, $theme_root, $_child = null ) {
|
178
|
+
global $wp_theme_directories;
|
179
|
+
|
180
|
+
// Initialize caching on first run.
|
181
|
+
if ( ! isset( self::$persistently_cache ) ) {
|
182
|
+
/** This action is documented in wp-includes/theme.php */
|
183
|
+
self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' );
|
184
|
+
if ( self::$persistently_cache ) {
|
185
|
+
wp_cache_add_global_groups( 'themes' );
|
186
|
+
if ( is_int( self::$persistently_cache ) )
|
187
|
+
self::$cache_expiration = self::$persistently_cache;
|
188
|
+
} else {
|
189
|
+
wp_cache_add_non_persistent_groups( 'themes' );
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
$this->theme_root = $theme_root;
|
194
|
+
$this->stylesheet = $theme_dir;
|
195
|
+
|
196
|
+
// Correct a situation where the theme is 'some-directory/some-theme' but 'some-directory' was passed in as part of the theme root instead.
|
197
|
+
if ( ! in_array( $theme_root, (array) $wp_theme_directories ) && in_array( dirname( $theme_root ), (array) $wp_theme_directories ) ) {
|
198
|
+
$this->stylesheet = basename( $this->theme_root ) . '/' . $this->stylesheet;
|
199
|
+
$this->theme_root = dirname( $theme_root );
|
200
|
+
}
|
201
|
+
|
202
|
+
$this->cache_hash = md5( $this->theme_root . '/' . $this->stylesheet );
|
203
|
+
$theme_file = $this->stylesheet . '/style.css';
|
204
|
+
|
205
|
+
$cache = $this->cache_get( 'theme' );
|
206
|
+
|
207
|
+
if ( is_array( $cache ) ) {
|
208
|
+
foreach ( array( 'errors', 'headers', 'template' ) as $key ) {
|
209
|
+
if ( isset( $cache[ $key ] ) )
|
210
|
+
$this->$key = $cache[ $key ];
|
211
|
+
}
|
212
|
+
if ( $this->errors )
|
213
|
+
return;
|
214
|
+
if ( isset( $cache['theme_root_template'] ) )
|
215
|
+
$theme_root_template = $cache['theme_root_template'];
|
216
|
+
} elseif ( ! file_exists( $this->theme_root . '/' . $theme_file ) ) {
|
217
|
+
$this->headers['Name'] = $this->stylesheet;
|
218
|
+
if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet ) )
|
219
|
+
$this->errors = new WP_Error( 'theme_not_found', sprintf( __( 'The theme directory "%s" does not exist.' ), $this->stylesheet ) );
|
220
|
+
else
|
221
|
+
$this->errors = new WP_Error( 'theme_no_stylesheet', __( 'Stylesheet is missing.' ) );
|
222
|
+
$this->template = $this->stylesheet;
|
223
|
+
$this->cache_add( 'theme', array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template ) );
|
224
|
+
if ( ! file_exists( $this->theme_root ) ) // Don't cache this one.
|
225
|
+
$this->errors->add( 'theme_root_missing', __( 'ERROR: The themes directory is either empty or doesn’t exist. Please check your installation.' ) );
|
226
|
+
return;
|
227
|
+
} elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) {
|
228
|
+
$this->headers['Name'] = $this->stylesheet;
|
229
|
+
$this->errors = new WP_Error( 'theme_stylesheet_not_readable', __( 'Stylesheet is not readable.' ) );
|
230
|
+
$this->template = $this->stylesheet;
|
231
|
+
$this->cache_add( 'theme', array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template ) );
|
232
|
+
return;
|
233
|
+
} else {
|
234
|
+
$this->headers = get_file_data( $this->theme_root . '/' . $theme_file, self::$file_headers, 'theme' );
|
235
|
+
// Default themes always trump their pretenders.
|
236
|
+
// Properly identify default themes that are inside a directory within wp-content/themes.
|
237
|
+
if ( $default_theme_slug = array_search( $this->headers['Name'], self::$default_themes ) ) {
|
238
|
+
if ( basename( $this->stylesheet ) != $default_theme_slug )
|
239
|
+
$this->headers['Name'] .= '/' . $this->stylesheet;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
// (If template is set from cache [and there are no errors], we know it's good.)
|
244
|
+
if ( ! $this->template && ! ( $this->template = $this->headers['Template'] ) ) {
|
245
|
+
$this->template = $this->stylesheet;
|
246
|
+
if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) {
|
247
|
+
$this->errors = new WP_Error( 'theme_no_index', __( 'Template is missing.' ) );
|
248
|
+
$this->cache_add( 'theme', array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template ) );
|
249
|
+
return;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
// If we got our data from cache, we can assume that 'template' is pointing to the right place.
|
254
|
+
if ( ! is_array( $cache ) && $this->template != $this->stylesheet && ! file_exists( $this->theme_root . '/' . $this->template . '/index.php' ) ) {
|
255
|
+
// If we're in a directory of themes inside /themes, look for the parent nearby.
|
256
|
+
// wp-content/themes/directory-of-themes/*
|
257
|
+
$parent_dir = dirname( $this->stylesheet );
|
258
|
+
if ( '.' != $parent_dir && file_exists( $this->theme_root . '/' . $parent_dir . '/' . $this->template . '/index.php' ) ) {
|
259
|
+
$this->template = $parent_dir . '/' . $this->template;
|
260
|
+
} elseif ( ( $directories = search_theme_directories() ) && isset( $directories[ $this->template ] ) ) {
|
261
|
+
// Look for the template in the search_theme_directories() results, in case it is in another theme root.
|
262
|
+
// We don't look into directories of themes, just the theme root.
|
263
|
+
$theme_root_template = $directories[ $this->template ]['theme_root'];
|
264
|
+
} else {
|
265
|
+
// Parent theme is missing.
|
266
|
+
$this->errors = new WP_Error( 'theme_no_parent', sprintf( __( 'The parent theme is missing. Please install the "%s" parent theme.' ), $this->template ) );
|
267
|
+
$this->cache_add( 'theme', array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template ) );
|
268
|
+
$this->parent = new WP_Theme( $this->template, $this->theme_root, $this );
|
269
|
+
return;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
// Set the parent, if we're a child theme.
|
274
|
+
if ( $this->template != $this->stylesheet ) {
|
275
|
+
// If we are a parent, then there is a problem. Only two generations allowed! Cancel things out.
|
276
|
+
if ( is_a( $_child, 'WP_Theme' ) && $_child->template == $this->stylesheet ) {
|
277
|
+
$_child->parent = null;
|
278
|
+
$_child->errors = new WP_Error( 'theme_parent_invalid', sprintf( __( 'The "%s" theme is not a valid parent theme.' ), $_child->template ) );
|
279
|
+
$_child->cache_add( 'theme', array( 'headers' => $_child->headers, 'errors' => $_child->errors, 'stylesheet' => $_child->stylesheet, 'template' => $_child->template ) );
|
280
|
+
// The two themes actually reference each other with the Template header.
|
281
|
+
if ( $_child->stylesheet == $this->template ) {
|
282
|
+
$this->errors = new WP_Error( 'theme_parent_invalid', sprintf( __( 'The "%s" theme is not a valid parent theme.' ), $this->template ) );
|
283
|
+
$this->cache_add( 'theme', array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template ) );
|
284
|
+
}
|
285
|
+
return;
|
286
|
+
}
|
287
|
+
// Set the parent. Pass the current instance so we can do the crazy checks above and assess errors.
|
288
|
+
$this->parent = new WP_Theme( $this->template, isset( $theme_root_template ) ? $theme_root_template : $this->theme_root, $this );
|
289
|
+
}
|
290
|
+
|
291
|
+
// We're good. If we didn't retrieve from cache, set it.
|
292
|
+
if ( ! is_array( $cache ) ) {
|
293
|
+
$cache = array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template );
|
294
|
+
// If the parent theme is in another root, we'll want to cache this. Avoids an entire branch of filesystem calls above.
|
295
|
+
if ( isset( $theme_root_template ) )
|
296
|
+
$cache['theme_root_template'] = $theme_root_template;
|
297
|
+
$this->cache_add( 'theme', $cache );
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
/**
|
302
|
+
* When converting the object to a string, the theme name is returned.
|
303
|
+
*
|
304
|
+
* @return string Theme name, ready for display (translated)
|
305
|
+
*/
|
306
|
+
public function __toString() {
|
307
|
+
return (string) $this->display('Name');
|
308
|
+
}
|
309
|
+
|
310
|
+
/**
|
311
|
+
* __isset() magic method for properties formerly returned by current_theme_info()
|
312
|
+
*/
|
313
|
+
public function __isset( $offset ) {
|
314
|
+
static $properties = array(
|
315
|
+
'name', 'title', 'version', 'parent_theme', 'template_dir', 'stylesheet_dir', 'template', 'stylesheet',
|
316
|
+
'screenshot', 'description', 'author', 'tags', 'theme_root', 'theme_root_uri',
|
317
|
+
);
|
318
|
+
|
319
|
+
return in_array( $offset, $properties );
|
320
|
+
}
|
321
|
+
|
322
|
+
/**
|
323
|
+
* __get() magic method for properties formerly returned by current_theme_info()
|
324
|
+
*/
|
325
|
+
public function __get( $offset ) {
|
326
|
+
switch ( $offset ) {
|
327
|
+
case 'name' :
|
328
|
+
case 'title' :
|
329
|
+
return $this->get('Name');
|
330
|
+
case 'version' :
|
331
|
+
return $this->get('Version');
|
332
|
+
case 'parent_theme' :
|
333
|
+
return $this->parent() ? $this->parent()->get('Name') : '';
|
334
|
+
case 'template_dir' :
|
335
|
+
return $this->get_template_directory();
|
336
|
+
case 'stylesheet_dir' :
|
337
|
+
return $this->get_stylesheet_directory();
|
338
|
+
case 'template' :
|
339
|
+
return $this->get_template();
|
340
|
+
case 'stylesheet' :
|
341
|
+
return $this->get_stylesheet();
|
342
|
+
case 'screenshot' :
|
343
|
+
return $this->get_screenshot( 'relative' );
|
344
|
+
// 'author' and 'description' did not previously return translated data.
|
345
|
+
case 'description' :
|
346
|
+
return $this->display('Description');
|
347
|
+
case 'author' :
|
348
|
+
return $this->display('Author');
|
349
|
+
case 'tags' :
|
350
|
+
return $this->get( 'Tags' );
|
351
|
+
case 'theme_root' :
|
352
|
+
return $this->get_theme_root();
|
353
|
+
case 'theme_root_uri' :
|
354
|
+
return $this->get_theme_root_uri();
|
355
|
+
// For cases where the array was converted to an object.
|
356
|
+
default :
|
357
|
+
return $this->offsetGet( $offset );
|
358
|
+
}
|
359
|
+
}
|
360
|
+
|
361
|
+
/**
|
362
|
+
* Method to implement ArrayAccess for keys formerly returned by get_themes()
|
363
|
+
*/
|
364
|
+
public function offsetSet( $offset, $value ) {}
|
365
|
+
|
366
|
+
/**
|
367
|
+
* Method to implement ArrayAccess for keys formerly returned by get_themes()
|
368
|
+
*/
|
369
|
+
public function offsetUnset( $offset ) {}
|
370
|
+
|
371
|
+
/**
|
372
|
+
* Method to implement ArrayAccess for keys formerly returned by get_themes()
|
373
|
+
*/
|
374
|
+
public function offsetExists( $offset ) {
|
375
|
+
static $keys = array(
|
376
|
+
'Name', 'Version', 'Status', 'Title', 'Author', 'Author Name', 'Author URI', 'Description',
|
377
|
+
'Template', 'Stylesheet', 'Template Files', 'Stylesheet Files', 'Template Dir', 'Stylesheet Dir',
|
378
|
+
'Screenshot', 'Tags', 'Theme Root', 'Theme Root URI', 'Parent Theme',
|
379
|
+
);
|
380
|
+
|
381
|
+
return in_array( $offset, $keys );
|
382
|
+
}
|
383
|
+
|
384
|
+
/**
|
385
|
+
* Method to implement ArrayAccess for keys formerly returned by get_themes().
|
386
|
+
*
|
387
|
+
* Author, Author Name, Author URI, and Description did not previously return
|
388
|
+
* translated data. We are doing so now as it is safe to do. However, as
|
389
|
+
* Name and Title could have been used as the key for get_themes(), both remain
|
390
|
+
* untranslated for back compatibility. This means that ['Name'] is not ideal,
|
391
|
+
* and care should be taken to use $theme->display('Name') to get a properly
|
392
|
+
* translated header.
|
393
|
+
*/
|
394
|
+
public function offsetGet( $offset ) {
|
395
|
+
switch ( $offset ) {
|
396
|
+
case 'Name' :
|
397
|
+
case 'Title' :
|
398
|
+
// See note above about using translated data. get() is not ideal.
|
399
|
+
// It is only for backwards compatibility. Use display().
|
400
|
+
return $this->get('Name');
|
401
|
+
case 'Author' :
|
402
|
+
return $this->display( 'Author');
|
403
|
+
case 'Author Name' :
|
404
|
+
return $this->display( 'Author', false);
|
405
|
+
case 'Author URI' :
|
406
|
+
return $this->display('AuthorURI');
|
407
|
+
case 'Description' :
|
408
|
+
return $this->display( 'Description');
|
409
|
+
case 'Version' :
|
410
|
+
case 'Status' :
|
411
|
+
return $this->get( $offset );
|
412
|
+
case 'Template' :
|
413
|
+
return $this->get_template();
|
414
|
+
case 'Stylesheet' :
|
415
|
+
return $this->get_stylesheet();
|
416
|
+
case 'Template Files' :
|
417
|
+
return $this->get_files( 'php', 1, true );
|
418
|
+
case 'Stylesheet Files' :
|
419
|
+
return $this->get_files( 'css', 0, false );
|
420
|
+
case 'Template Dir' :
|
421
|
+
return $this->get_template_directory();
|
422
|
+
case 'Stylesheet Dir' :
|
423
|
+
return $this->get_stylesheet_directory();
|
424
|
+
case 'Screenshot' :
|
425
|
+
return $this->get_screenshot( 'relative' );
|
426
|
+
case 'Tags' :
|
427
|
+
return $this->get('Tags');
|
428
|
+
case 'Theme Root' :
|
429
|
+
return $this->get_theme_root();
|
430
|
+
case 'Theme Root URI' :
|
431
|
+
return $this->get_theme_root_uri();
|
432
|
+
case 'Parent Theme' :
|
433
|
+
return $this->parent() ? $this->parent()->get('Name') : '';
|
434
|
+
default :
|
435
|
+
return null;
|
436
|
+
}
|
437
|
+
}
|
438
|
+
|
439
|
+
/**
|
440
|
+
* Returns errors property.
|
441
|
+
*
|
442
|
+
* @since 3.4.0
|
443
|
+
* @access public
|
444
|
+
*
|
445
|
+
* @return WP_Error|bool WP_Error if there are errors, or false.
|
446
|
+
*/
|
447
|
+
public function errors() {
|
448
|
+
return is_wp_error( $this->errors ) ? $this->errors : false;
|
449
|
+
}
|
450
|
+
|
451
|
+
/**
|
452
|
+
* Whether the theme exists.
|
453
|
+
*
|
454
|
+
* A theme with errors exists. A theme with the error of 'theme_not_found',
|
455
|
+
* meaning that the theme's directory was not found, does not exist.
|
456
|
+
*
|
457
|
+
* @since 3.4.0
|
458
|
+
* @access public
|
459
|
+
*
|
460
|
+
* @return bool Whether the theme exists.
|
461
|
+
*/
|
462
|
+
public function exists() {
|
463
|
+
return ! ( $this->errors() && in_array( 'theme_not_found', $this->errors()->get_error_codes() ) );
|
464
|
+
}
|
465
|
+
|
466
|
+
/**
|
467
|
+
* Returns reference to the parent theme.
|
468
|
+
*
|
469
|
+
* @since 3.4.0
|
470
|
+
* @access public
|
471
|
+
*
|
472
|
+
* @return WP_Theme|bool Parent theme, or false if the current theme is not a child theme.
|
473
|
+
*/
|
474
|
+
public function parent() {
|
475
|
+
return isset( $this->parent ) ? $this->parent : false;
|
476
|
+
}
|
477
|
+
|
478
|
+
/**
|
479
|
+
* Adds theme data to cache.
|
480
|
+
*
|
481
|
+
* Cache entries keyed by the theme and the type of data.
|
482
|
+
*
|
483
|
+
* @access private
|
484
|
+
* @since 3.4.0
|
485
|
+
*
|
486
|
+
* @param string $key Type of data to store (theme, screenshot, headers, page_templates)
|
487
|
+
* @param string $data Data to store
|
488
|
+
* @return bool Return value from wp_cache_add()
|
489
|
+
*/
|
490
|
+
private function cache_add( $key, $data ) {
|
491
|
+
return wp_cache_add( $key . '-' . $this->cache_hash, $data, 'themes', self::$cache_expiration );
|
492
|
+
}
|
493
|
+
|
494
|
+
/**
|
495
|
+
* Gets theme data from cache.
|
496
|
+
*
|
497
|
+
* Cache entries are keyed by the theme and the type of data.
|
498
|
+
*
|
499
|
+
* @access private
|
500
|
+
* @since 3.4.0
|
501
|
+
*
|
502
|
+
* @param string $key Type of data to retrieve (theme, screenshot, headers, page_templates)
|
503
|
+
* @return mixed Retrieved data
|
504
|
+
*/
|
505
|
+
private function cache_get( $key ) {
|
506
|
+
return wp_cache_get( $key . '-' . $this->cache_hash, 'themes' );
|
507
|
+
}
|
508
|
+
|
509
|
+
/**
|
510
|
+
* Clears the cache for the theme.
|
511
|
+
*
|
512
|
+
* @access public
|
513
|
+
* @since 3.4.0
|
514
|
+
*/
|
515
|
+
public function cache_delete() {
|
516
|
+
foreach ( array( 'theme', 'screenshot', 'headers', 'page_templates' ) as $key )
|
517
|
+
wp_cache_delete( $key . '-' . $this->cache_hash, 'themes' );
|
518
|
+
$this->template = $this->textdomain_loaded = $this->theme_root_uri = $this->parent = $this->errors = $this->headers_sanitized = $this->name_translated = null;
|
519
|
+
$this->headers = array();
|
520
|
+
$this->__construct( $this->stylesheet, $this->theme_root );
|
521
|
+
}
|
522
|
+
|
523
|
+
/**
|
524
|
+
* Get a raw, unformatted theme header.
|
525
|
+
*
|
526
|
+
* The header is sanitized, but is not translated, and is not marked up for display.
|
527
|
+
* To get a theme header for display, use the display() method.
|
528
|
+
*
|
529
|
+
* Use the get_template() method, not the 'Template' header, for finding the template.
|
530
|
+
* The 'Template' header is only good for what was written in the style.css, while
|
531
|
+
* get_template() takes into account where WordPress actually located the theme and
|
532
|
+
* whether it is actually valid.
|
533
|
+
*
|
534
|
+
* @access public
|
535
|
+
* @since 3.4.0
|
536
|
+
*
|
537
|
+
* @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
|
538
|
+
* @return string|bool String on success, false on failure.
|
539
|
+
*/
|
540
|
+
public function get( $header ) {
|
541
|
+
if ( ! isset( $this->headers[ $header ] ) )
|
542
|
+
return false;
|
543
|
+
|
544
|
+
if ( ! isset( $this->headers_sanitized ) ) {
|
545
|
+
$this->headers_sanitized = $this->cache_get( 'headers' );
|
546
|
+
if ( ! is_array( $this->headers_sanitized ) )
|
547
|
+
$this->headers_sanitized = array();
|
548
|
+
}
|
549
|
+
|
550
|
+
if ( isset( $this->headers_sanitized[ $header ] ) )
|
551
|
+
return $this->headers_sanitized[ $header ];
|
552
|
+
|
553
|
+
// If themes are a persistent group, sanitize everything and cache it. One cache add is better than many cache sets.
|
554
|
+
if ( self::$persistently_cache ) {
|
555
|
+
foreach ( array_keys( $this->headers ) as $_header )
|
556
|
+
$this->headers_sanitized[ $_header ] = $this->sanitize_header( $_header, $this->headers[ $_header ] );
|
557
|
+
$this->cache_add( 'headers', $this->headers_sanitized );
|
558
|
+
} else {
|
559
|
+
$this->headers_sanitized[ $header ] = $this->sanitize_header( $header, $this->headers[ $header ] );
|
560
|
+
}
|
561
|
+
|
562
|
+
return $this->headers_sanitized[ $header ];
|
563
|
+
}
|
564
|
+
|
565
|
+
/**
|
566
|
+
* Gets a theme header, formatted and translated for display.
|
567
|
+
*
|
568
|
+
* @access public
|
569
|
+
* @since 3.4.0
|
570
|
+
*
|
571
|
+
* @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
|
572
|
+
* @param bool $markup Optional. Whether to mark up the header. Defaults to true.
|
573
|
+
* @param bool $translate Optional. Whether to translate the header. Defaults to true.
|
574
|
+
* @return string|bool Processed header, false on failure.
|
575
|
+
*/
|
576
|
+
public function display( $header, $markup = true, $translate = true ) {
|
577
|
+
$value = $this->get( $header );
|
578
|
+
if ( false === $value ) {
|
579
|
+
return false;
|
580
|
+
}
|
581
|
+
|
582
|
+
if ( $translate && ( empty( $value ) || ! $this->load_textdomain() ) )
|
583
|
+
$translate = false;
|
584
|
+
|
585
|
+
if ( $translate )
|
586
|
+
$value = $this->translate_header( $header, $value );
|
587
|
+
|
588
|
+
if ( $markup )
|
589
|
+
$value = $this->markup_header( $header, $value, $translate );
|
590
|
+
|
591
|
+
return $value;
|
592
|
+
}
|
593
|
+
|
594
|
+
/**
|
595
|
+
* Sanitize a theme header.
|
596
|
+
*
|
597
|
+
* @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
|
598
|
+
* @param string $value Value to sanitize.
|
599
|
+
*/
|
600
|
+
private function sanitize_header( $header, $value ) {
|
601
|
+
switch ( $header ) {
|
602
|
+
case 'Status' :
|
603
|
+
if ( ! $value ) {
|
604
|
+
$value = 'publish';
|
605
|
+
break;
|
606
|
+
}
|
607
|
+
// Fall through otherwise.
|
608
|
+
case 'Name' :
|
609
|
+
static $header_tags = array(
|
610
|
+
'abbr' => array( 'title' => true ),
|
611
|
+
'acronym' => array( 'title' => true ),
|
612
|
+
'code' => true,
|
613
|
+
'em' => true,
|
614
|
+
'strong' => true,
|
615
|
+
);
|
616
|
+
$value = wp_kses( $value, $header_tags );
|
617
|
+
break;
|
618
|
+
case 'Author' :
|
619
|
+
// There shouldn't be anchor tags in Author, but some themes like to be challenging.
|
620
|
+
case 'Description' :
|
621
|
+
static $header_tags_with_a = array(
|
622
|
+
'a' => array( 'href' => true, 'title' => true ),
|
623
|
+
'abbr' => array( 'title' => true ),
|
624
|
+
'acronym' => array( 'title' => true ),
|
625
|
+
'code' => true,
|
626
|
+
'em' => true,
|
627
|
+
'strong' => true,
|
628
|
+
);
|
629
|
+
$value = wp_kses( $value, $header_tags_with_a );
|
630
|
+
break;
|
631
|
+
case 'ThemeURI' :
|
632
|
+
case 'AuthorURI' :
|
633
|
+
$value = esc_url_raw( $value );
|
634
|
+
break;
|
635
|
+
case 'Tags' :
|
636
|
+
$value = array_filter( array_map( 'trim', explode( ',', strip_tags( $value ) ) ) );
|
637
|
+
break;
|
638
|
+
}
|
639
|
+
|
640
|
+
return $value;
|
641
|
+
}
|
642
|
+
|
643
|
+
/**
|
644
|
+
* Mark up a theme header.
|
645
|
+
*
|
646
|
+
* @access private
|
647
|
+
* @since 3.4.0
|
648
|
+
*
|
649
|
+
* @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
|
650
|
+
* @param string $value Value to mark up.
|
651
|
+
* @param string $translate Whether the header has been translated.
|
652
|
+
* @return string Value, marked up.
|
653
|
+
*/
|
654
|
+
private function markup_header( $header, $value, $translate ) {
|
655
|
+
switch ( $header ) {
|
656
|
+
case 'Name' :
|
657
|
+
if ( empty( $value ) )
|
658
|
+
$value = $this->get_stylesheet();
|
659
|
+
break;
|
660
|
+
case 'Description' :
|
661
|
+
$value = wptexturize( $value );
|
662
|
+
break;
|
663
|
+
case 'Author' :
|
664
|
+
if ( $this->get('AuthorURI') ) {
|
665
|
+
$value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value );
|
666
|
+
} elseif ( ! $value ) {
|
667
|
+
$value = __( 'Anonymous' );
|
668
|
+
}
|
669
|
+
break;
|
670
|
+
case 'Tags' :
|
671
|
+
static $comma = null;
|
672
|
+
if ( ! isset( $comma ) ) {
|
673
|
+
/* translators: used between list items, there is a space after the comma */
|
674
|
+
$comma = __( ', ' );
|
675
|
+
}
|
676
|
+
$value = implode( $comma, $value );
|
677
|
+
break;
|
678
|
+
case 'ThemeURI' :
|
679
|
+
case 'AuthorURI' :
|
680
|
+
$value = esc_url( $value );
|
681
|
+
break;
|
682
|
+
}
|
683
|
+
|
684
|
+
return $value;
|
685
|
+
}
|
686
|
+
|
687
|
+
/**
|
688
|
+
* Translate a theme header.
|
689
|
+
*
|
690
|
+
* @access private
|
691
|
+
* @since 3.4.0
|
692
|
+
*
|
693
|
+
* @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
|
694
|
+
* @param string $value Value to translate.
|
695
|
+
* @return string Translated value.
|
696
|
+
*/
|
697
|
+
private function translate_header( $header, $value ) {
|
698
|
+
switch ( $header ) {
|
699
|
+
case 'Name' :
|
700
|
+
// Cached for sorting reasons.
|
701
|
+
if ( isset( $this->name_translated ) )
|
702
|
+
return $this->name_translated;
|
703
|
+
$this->name_translated = translate( $value, $this->get('TextDomain' ) );
|
704
|
+
return $this->name_translated;
|
705
|
+
case 'Tags' :
|
706
|
+
if ( empty( $value ) || ! function_exists( 'get_theme_feature_list' ) )
|
707
|
+
return $value;
|
708
|
+
|
709
|
+
static $tags_list;
|
710
|
+
if ( ! isset( $tags_list ) ) {
|
711
|
+
$tags_list = array();
|
712
|
+
$feature_list = get_theme_feature_list( false ); // No API
|
713
|
+
foreach ( $feature_list as $tags )
|
714
|
+
$tags_list += $tags;
|
715
|
+
}
|
716
|
+
|
717
|
+
foreach ( $value as &$tag ) {
|
718
|
+
if ( isset( $tags_list[ $tag ] ) ) {
|
719
|
+
$tag = $tags_list[ $tag ];
|
720
|
+
} elseif ( isset( self::$tag_map[ $tag ] ) ) {
|
721
|
+
$tag = $tags_list[ self::$tag_map[ $tag ] ];
|
722
|
+
}
|
723
|
+
}
|
724
|
+
|
725
|
+
return $value;
|
726
|
+
|
727
|
+
default :
|
728
|
+
$value = translate( $value, $this->get('TextDomain') );
|
729
|
+
}
|
730
|
+
return $value;
|
731
|
+
}
|
732
|
+
|
733
|
+
/**
|
734
|
+
* The directory name of the theme's "stylesheet" files, inside the theme root.
|
735
|
+
*
|
736
|
+
* In the case of a child theme, this is directory name of the child theme.
|
737
|
+
* Otherwise, get_stylesheet() is the same as get_template().
|
738
|
+
*
|
739
|
+
* @since 3.4.0
|
740
|
+
* @access public
|
741
|
+
*
|
742
|
+
* @return string Stylesheet
|
743
|
+
*/
|
744
|
+
public function get_stylesheet() {
|
745
|
+
return $this->stylesheet;
|
746
|
+
}
|
747
|
+
|
748
|
+
/**
|
749
|
+
* The directory name of the theme's "template" files, inside the theme root.
|
750
|
+
*
|
751
|
+
* In the case of a child theme, this is the directory name of the parent theme.
|
752
|
+
* Otherwise, the get_template() is the same as get_stylesheet().
|
753
|
+
*
|
754
|
+
* @since 3.4.0
|
755
|
+
* @access public
|
756
|
+
*
|
757
|
+
* @return string Template
|
758
|
+
*/
|
759
|
+
public function get_template() {
|
760
|
+
return $this->template;
|
761
|
+
}
|
762
|
+
|
763
|
+
/**
|
764
|
+
* Returns the absolute path to the directory of a theme's "stylesheet" files.
|
765
|
+
*
|
766
|
+
* In the case of a child theme, this is the absolute path to the directory
|
767
|
+
* of the child theme's files.
|
768
|
+
*
|
769
|
+
* @since 3.4.0
|
770
|
+
* @access public
|
771
|
+
*
|
772
|
+
* @return string Absolute path of the stylesheet directory.
|
773
|
+
*/
|
774
|
+
public function get_stylesheet_directory() {
|
775
|
+
if ( $this->errors() && in_array( 'theme_root_missing', $this->errors()->get_error_codes() ) )
|
776
|
+
return '';
|
777
|
+
|
778
|
+
return $this->theme_root . '/' . $this->stylesheet;
|
779
|
+
}
|
780
|
+
|
781
|
+
/**
|
782
|
+
* Returns the absolute path to the directory of a theme's "template" files.
|
783
|
+
*
|
784
|
+
* In the case of a child theme, this is the absolute path to the directory
|
785
|
+
* of the parent theme's files.
|
786
|
+
*
|
787
|
+
* @since 3.4.0
|
788
|
+
* @access public
|
789
|
+
*
|
790
|
+
* @return string Absolute path of the template directory.
|
791
|
+
*/
|
792
|
+
public function get_template_directory() {
|
793
|
+
if ( $this->parent() )
|
794
|
+
$theme_root = $this->parent()->theme_root;
|
795
|
+
else
|
796
|
+
$theme_root = $this->theme_root;
|
797
|
+
|
798
|
+
return $theme_root . '/' . $this->template;
|
799
|
+
}
|
800
|
+
|
801
|
+
/**
|
802
|
+
* Returns the URL to the directory of a theme's "stylesheet" files.
|
803
|
+
*
|
804
|
+
* In the case of a child theme, this is the URL to the directory of the
|
805
|
+
* child theme's files.
|
806
|
+
*
|
807
|
+
* @since 3.4.0
|
808
|
+
* @access public
|
809
|
+
*
|
810
|
+
* @return string URL to the stylesheet directory.
|
811
|
+
*/
|
812
|
+
public function get_stylesheet_directory_uri() {
|
813
|
+
return $this->get_theme_root_uri() . '/' . str_replace( '%2F', '/', rawurlencode( $this->stylesheet ) );
|
814
|
+
}
|
815
|
+
|
816
|
+
/**
|
817
|
+
* Returns the URL to the directory of a theme's "template" files.
|
818
|
+
*
|
819
|
+
* In the case of a child theme, this is the URL to the directory of the
|
820
|
+
* parent theme's files.
|
821
|
+
*
|
822
|
+
* @since 3.4.0
|
823
|
+
* @access public
|
824
|
+
*
|
825
|
+
* @return string URL to the template directory.
|
826
|
+
*/
|
827
|
+
public function get_template_directory_uri() {
|
828
|
+
if ( $this->parent() )
|
829
|
+
$theme_root_uri = $this->parent()->get_theme_root_uri();
|
830
|
+
else
|
831
|
+
$theme_root_uri = $this->get_theme_root_uri();
|
832
|
+
|
833
|
+
return $theme_root_uri . '/' . str_replace( '%2F', '/', rawurlencode( $this->template ) );
|
834
|
+
}
|
835
|
+
|
836
|
+
/**
|
837
|
+
* The absolute path to the directory of the theme root.
|
838
|
+
*
|
839
|
+
* This is typically the absolute path to wp-content/themes.
|
840
|
+
*
|
841
|
+
* @since 3.4.0
|
842
|
+
* @access public
|
843
|
+
*
|
844
|
+
* @return string Theme root.
|
845
|
+
*/
|
846
|
+
public function get_theme_root() {
|
847
|
+
return $this->theme_root;
|
848
|
+
}
|
849
|
+
|
850
|
+
/**
|
851
|
+
* Returns the URL to the directory of the theme root.
|
852
|
+
*
|
853
|
+
* This is typically the absolute URL to wp-content/themes. This forms the basis
|
854
|
+
* for all other URLs returned by WP_Theme, so we pass it to the public function
|
855
|
+
* get_theme_root_uri() and allow it to run the theme_root_uri filter.
|
856
|
+
*
|
857
|
+
* @uses get_theme_root_uri()
|
858
|
+
*
|
859
|
+
* @since 3.4.0
|
860
|
+
* @access public
|
861
|
+
*
|
862
|
+
* @return string Theme root URI.
|
863
|
+
*/
|
864
|
+
public function get_theme_root_uri() {
|
865
|
+
if ( ! isset( $this->theme_root_uri ) )
|
866
|
+
$this->theme_root_uri = get_theme_root_uri( $this->stylesheet, $this->theme_root );
|
867
|
+
return $this->theme_root_uri;
|
868
|
+
}
|
869
|
+
|
870
|
+
/**
|
871
|
+
* Returns the main screenshot file for the theme.
|
872
|
+
*
|
873
|
+
* The main screenshot is called screenshot.png. gif and jpg extensions are also allowed.
|
874
|
+
*
|
875
|
+
* Screenshots for a theme must be in the stylesheet directory. (In the case of child
|
876
|
+
* themes, parent theme screenshots are not inherited.)
|
877
|
+
*
|
878
|
+
* @since 3.4.0
|
879
|
+
* @access public
|
880
|
+
*
|
881
|
+
* @param string $uri Type of URL to return, either 'relative' or an absolute URI. Defaults to absolute URI.
|
882
|
+
* @return mixed Screenshot file. False if the theme does not have a screenshot.
|
883
|
+
*/
|
884
|
+
public function get_screenshot( $uri = 'uri' ) {
|
885
|
+
$screenshot = $this->cache_get( 'screenshot' );
|
886
|
+
if ( $screenshot ) {
|
887
|
+
if ( 'relative' == $uri )
|
888
|
+
return $screenshot;
|
889
|
+
return $this->get_stylesheet_directory_uri() . '/' . $screenshot;
|
890
|
+
} elseif ( 0 === $screenshot ) {
|
891
|
+
return false;
|
892
|
+
}
|
893
|
+
|
894
|
+
foreach ( array( 'png', 'gif', 'jpg', 'jpeg' ) as $ext ) {
|
895
|
+
if ( file_exists( $this->get_stylesheet_directory() . "/screenshot.$ext" ) ) {
|
896
|
+
$this->cache_add( 'screenshot', 'screenshot.' . $ext );
|
897
|
+
if ( 'relative' == $uri )
|
898
|
+
return 'screenshot.' . $ext;
|
899
|
+
return $this->get_stylesheet_directory_uri() . '/' . 'screenshot.' . $ext;
|
900
|
+
}
|
901
|
+
}
|
902
|
+
|
903
|
+
$this->cache_add( 'screenshot', 0 );
|
904
|
+
return false;
|
905
|
+
}
|
906
|
+
|
907
|
+
/**
|
908
|
+
* Return files in the theme's directory.
|
909
|
+
*
|
910
|
+
* @since 3.4.0
|
911
|
+
* @access public
|
912
|
+
*
|
913
|
+
* @param mixed $type Optional. Array of extensions to return. Defaults to all files (null).
|
914
|
+
* @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). -1 depth is infinite.
|
915
|
+
* @param bool $search_parent Optional. Whether to return parent files. Defaults to false.
|
916
|
+
* @return array Array of files, keyed by the path to the file relative to the theme's directory, with the values
|
917
|
+
* being absolute paths.
|
918
|
+
*/
|
919
|
+
public function get_files( $type = null, $depth = 0, $search_parent = false ) {
|
920
|
+
$files = (array) self::scandir( $this->get_stylesheet_directory(), $type, $depth );
|
921
|
+
|
922
|
+
if ( $search_parent && $this->parent() )
|
923
|
+
$files += (array) self::scandir( $this->get_template_directory(), $type, $depth );
|
924
|
+
|
925
|
+
return $files;
|
926
|
+
}
|
927
|
+
|
928
|
+
/**
|
929
|
+
* Returns the theme's page templates.
|
930
|
+
*
|
931
|
+
* @since 3.4.0
|
932
|
+
* @access public
|
933
|
+
*
|
934
|
+
* @param WP_Post|null $post Optional. The post being edited, provided for context.
|
935
|
+
* @return array Array of page templates, keyed by filename, with the value of the translated header name.
|
936
|
+
*/
|
937
|
+
public function get_page_templates( $post = null ) {
|
938
|
+
// If you screw up your current theme and we invalidate your parent, most things still work. Let it slide.
|
939
|
+
if ( $this->errors() && $this->errors()->get_error_codes() !== array( 'theme_parent_invalid' ) )
|
940
|
+
return array();
|
941
|
+
|
942
|
+
$page_templates = $this->cache_get( 'page_templates' );
|
943
|
+
|
944
|
+
if ( ! is_array( $page_templates ) ) {
|
945
|
+
$page_templates = array();
|
946
|
+
|
947
|
+
$files = (array) $this->get_files( 'php', 1 );
|
948
|
+
|
949
|
+
foreach ( $files as $file => $full_path ) {
|
950
|
+
if ( ! preg_match( '|Template Name:(.*)$|mi', file_get_contents( $full_path ), $header ) )
|
951
|
+
continue;
|
952
|
+
$page_templates[ $file ] = _cleanup_header_comment( $header[1] );
|
953
|
+
}
|
954
|
+
|
955
|
+
$this->cache_add( 'page_templates', $page_templates );
|
956
|
+
}
|
957
|
+
|
958
|
+
if ( $this->load_textdomain() ) {
|
959
|
+
foreach ( $page_templates as &$page_template ) {
|
960
|
+
$page_template = $this->translate_header( 'Template Name', $page_template );
|
961
|
+
}
|
962
|
+
}
|
963
|
+
|
964
|
+
if ( $this->parent() )
|
965
|
+
$page_templates += $this->parent()->get_page_templates( $post );
|
966
|
+
|
967
|
+
/**
|
968
|
+
* Filter list of page templates for a theme.
|
969
|
+
*
|
970
|
+
* This filter does not currently allow for page templates to be added.
|
971
|
+
*
|
972
|
+
* @since 3.9.0
|
973
|
+
*
|
974
|
+
* @param array $page_templates Array of page templates. Keys are filenames,
|
975
|
+
* values are translated names.
|
976
|
+
* @param WP_Theme $this The theme object.
|
977
|
+
* @param WP_Post|null $post The post being edited, provided for context, or null.
|
978
|
+
*/
|
979
|
+
$return = apply_filters( 'theme_page_templates', $page_templates, $this, $post );
|
980
|
+
|
981
|
+
return array_intersect_assoc( $return, $page_templates );
|
982
|
+
}
|
983
|
+
|
984
|
+
/**
|
985
|
+
* Scans a directory for files of a certain extension.
|
986
|
+
*
|
987
|
+
* @since 3.4.0
|
988
|
+
* @access private
|
989
|
+
*
|
990
|
+
* @param string $path Absolute path to search.
|
991
|
+
* @param mixed Array of extensions to find, string of a single extension, or null for all extensions.
|
992
|
+
* @param int $depth How deep to search for files. Optional, defaults to a flat scan (0 depth). -1 depth is infinite.
|
993
|
+
* @param string $relative_path The basename of the absolute path. Used to control the returned path
|
994
|
+
* for the found files, particularly when this function recurses to lower depths.
|
995
|
+
*/
|
996
|
+
private static function scandir( $path, $extensions = null, $depth = 0, $relative_path = '' ) {
|
997
|
+
if ( ! is_dir( $path ) )
|
998
|
+
return false;
|
999
|
+
|
1000
|
+
if ( $extensions ) {
|
1001
|
+
$extensions = (array) $extensions;
|
1002
|
+
$_extensions = implode( '|', $extensions );
|
1003
|
+
}
|
1004
|
+
|
1005
|
+
$relative_path = trailingslashit( $relative_path );
|
1006
|
+
if ( '/' == $relative_path )
|
1007
|
+
$relative_path = '';
|
1008
|
+
|
1009
|
+
$results = scandir( $path );
|
1010
|
+
$files = array();
|
1011
|
+
|
1012
|
+
foreach ( $results as $result ) {
|
1013
|
+
if ( '.' == $result[0] )
|
1014
|
+
continue;
|
1015
|
+
if ( is_dir( $path . '/' . $result ) ) {
|
1016
|
+
if ( ! $depth || 'CVS' == $result )
|
1017
|
+
continue;
|
1018
|
+
$found = self::scandir( $path . '/' . $result, $extensions, $depth - 1 , $relative_path . $result );
|
1019
|
+
$files = array_merge_recursive( $files, $found );
|
1020
|
+
} elseif ( ! $extensions || preg_match( '~\.(' . $_extensions . ')$~', $result ) ) {
|
1021
|
+
$files[ $relative_path . $result ] = $path . '/' . $result;
|
1022
|
+
}
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
return $files;
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
/**
|
1029
|
+
* Loads the theme's textdomain.
|
1030
|
+
*
|
1031
|
+
* Translation files are not inherited from the parent theme. Todo: if this fails for the
|
1032
|
+
* child theme, it should probably try to load the parent theme's translations.
|
1033
|
+
*
|
1034
|
+
* @since 3.4.0
|
1035
|
+
* @access public
|
1036
|
+
*
|
1037
|
+
* @return True if the textdomain was successfully loaded or has already been loaded. False if
|
1038
|
+
* no textdomain was specified in the file headers, or if the domain could not be loaded.
|
1039
|
+
*/
|
1040
|
+
public function load_textdomain() {
|
1041
|
+
if ( isset( $this->textdomain_loaded ) )
|
1042
|
+
return $this->textdomain_loaded;
|
1043
|
+
|
1044
|
+
$textdomain = $this->get('TextDomain');
|
1045
|
+
if ( ! $textdomain ) {
|
1046
|
+
$this->textdomain_loaded = false;
|
1047
|
+
return false;
|
1048
|
+
}
|
1049
|
+
|
1050
|
+
if ( is_textdomain_loaded( $textdomain ) ) {
|
1051
|
+
$this->textdomain_loaded = true;
|
1052
|
+
return true;
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
$path = $this->get_stylesheet_directory();
|
1056
|
+
if ( $domainpath = $this->get('DomainPath') )
|
1057
|
+
$path .= $domainpath;
|
1058
|
+
else
|
1059
|
+
$path .= '/languages';
|
1060
|
+
|
1061
|
+
$this->textdomain_loaded = load_theme_textdomain( $textdomain, $path );
|
1062
|
+
return $this->textdomain_loaded;
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
/**
|
1066
|
+
* Whether the theme is allowed (multisite only).
|
1067
|
+
*
|
1068
|
+
* @since 3.4.0
|
1069
|
+
* @access public
|
1070
|
+
*
|
1071
|
+
* @param string $check Optional. Whether to check only the 'network'-wide settings, the 'site'
|
1072
|
+
* settings, or 'both'. Defaults to 'both'.
|
1073
|
+
* @param int $blog_id Optional. Ignored if only network-wide settings are checked. Defaults to current blog.
|
1074
|
+
* @return bool Whether the theme is allowed for the network. Returns true in single-site.
|
1075
|
+
*/
|
1076
|
+
public function is_allowed( $check = 'both', $blog_id = null ) {
|
1077
|
+
if ( ! is_multisite() )
|
1078
|
+
return true;
|
1079
|
+
|
1080
|
+
if ( 'both' == $check || 'network' == $check ) {
|
1081
|
+
$allowed = self::get_allowed_on_network();
|
1082
|
+
if ( ! empty( $allowed[ $this->get_stylesheet() ] ) )
|
1083
|
+
return true;
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
if ( 'both' == $check || 'site' == $check ) {
|
1087
|
+
$allowed = self::get_allowed_on_site( $blog_id );
|
1088
|
+
if ( ! empty( $allowed[ $this->get_stylesheet() ] ) )
|
1089
|
+
return true;
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
return false;
|
1093
|
+
}
|
1094
|
+
|
1095
|
+
/**
|
1096
|
+
* Returns array of stylesheet names of themes allowed on the site or network.
|
1097
|
+
*
|
1098
|
+
* @since 3.4.0
|
1099
|
+
* @access public
|
1100
|
+
*
|
1101
|
+
* @param int $blog_id Optional. Defaults to current blog.
|
1102
|
+
* @return array Array of stylesheet names.
|
1103
|
+
*/
|
1104
|
+
public static function get_allowed( $blog_id = null ) {
|
1105
|
+
/**
|
1106
|
+
* Filter the array of themes allowed on the site or network.
|
1107
|
+
*
|
1108
|
+
* @since MU
|
1109
|
+
*
|
1110
|
+
* @param array $allowed_themes An array of theme stylesheet names.
|
1111
|
+
*/
|
1112
|
+
$network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() );
|
1113
|
+
return $network + self::get_allowed_on_site( $blog_id );
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
/**
|
1117
|
+
* Returns array of stylesheet names of themes allowed on the network.
|
1118
|
+
*
|
1119
|
+
* @since 3.4.0
|
1120
|
+
* @access public
|
1121
|
+
*
|
1122
|
+
* @return array Array of stylesheet names.
|
1123
|
+
*/
|
1124
|
+
public static function get_allowed_on_network() {
|
1125
|
+
static $allowed_themes;
|
1126
|
+
if ( ! isset( $allowed_themes ) )
|
1127
|
+
$allowed_themes = (array) get_site_option( 'allowedthemes' );
|
1128
|
+
return $allowed_themes;
|
1129
|
+
}
|
1130
|
+
|
1131
|
+
/**
|
1132
|
+
* Returns array of stylesheet names of themes allowed on the site.
|
1133
|
+
*
|
1134
|
+
* @since 3.4.0
|
1135
|
+
* @access public
|
1136
|
+
*
|
1137
|
+
* @param int $blog_id Optional. Defaults to current blog.
|
1138
|
+
* @return array Array of stylesheet names.
|
1139
|
+
*/
|
1140
|
+
public static function get_allowed_on_site( $blog_id = null ) {
|
1141
|
+
static $allowed_themes = array();
|
1142
|
+
|
1143
|
+
if ( ! $blog_id || ! is_multisite() )
|
1144
|
+
$blog_id = get_current_blog_id();
|
1145
|
+
|
1146
|
+
if ( isset( $allowed_themes[ $blog_id ] ) )
|
1147
|
+
return $allowed_themes[ $blog_id ];
|
1148
|
+
|
1149
|
+
$current = $blog_id == get_current_blog_id();
|
1150
|
+
|
1151
|
+
if ( $current ) {
|
1152
|
+
$allowed_themes[ $blog_id ] = get_option( 'allowedthemes' );
|
1153
|
+
} else {
|
1154
|
+
switch_to_blog( $blog_id );
|
1155
|
+
$allowed_themes[ $blog_id ] = get_option( 'allowedthemes' );
|
1156
|
+
restore_current_blog();
|
1157
|
+
}
|
1158
|
+
|
1159
|
+
// This is all super old MU back compat joy.
|
1160
|
+
// 'allowedthemes' keys things by stylesheet. 'allowed_themes' keyed things by name.
|
1161
|
+
if ( false === $allowed_themes[ $blog_id ] ) {
|
1162
|
+
if ( $current ) {
|
1163
|
+
$allowed_themes[ $blog_id ] = get_option( 'allowed_themes' );
|
1164
|
+
} else {
|
1165
|
+
switch_to_blog( $blog_id );
|
1166
|
+
$allowed_themes[ $blog_id ] = get_option( 'allowed_themes' );
|
1167
|
+
restore_current_blog();
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
if ( ! is_array( $allowed_themes[ $blog_id ] ) || empty( $allowed_themes[ $blog_id ] ) ) {
|
1171
|
+
$allowed_themes[ $blog_id ] = array();
|
1172
|
+
} else {
|
1173
|
+
$converted = array();
|
1174
|
+
$themes = wp_get_themes();
|
1175
|
+
foreach ( $themes as $stylesheet => $theme_data ) {
|
1176
|
+
if ( isset( $allowed_themes[ $blog_id ][ $theme_data->get('Name') ] ) )
|
1177
|
+
$converted[ $stylesheet ] = true;
|
1178
|
+
}
|
1179
|
+
$allowed_themes[ $blog_id ] = $converted;
|
1180
|
+
}
|
1181
|
+
// Set the option so we never have to go through this pain again.
|
1182
|
+
if ( is_admin() && $allowed_themes[ $blog_id ] ) {
|
1183
|
+
if ( $current ) {
|
1184
|
+
update_option( 'allowedthemes', $allowed_themes[ $blog_id ] );
|
1185
|
+
delete_option( 'allowed_themes' );
|
1186
|
+
} else {
|
1187
|
+
switch_to_blog( $blog_id );
|
1188
|
+
update_option( 'allowedthemes', $allowed_themes[ $blog_id ] );
|
1189
|
+
delete_option( 'allowed_themes' );
|
1190
|
+
restore_current_blog();
|
1191
|
+
}
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
|
1195
|
+
return (array) $allowed_themes[ $blog_id ];
|
1196
|
+
}
|
1197
|
+
|
1198
|
+
/**
|
1199
|
+
* Sort themes by name.
|
1200
|
+
*
|
1201
|
+
* @since 3.4.0
|
1202
|
+
* @access public
|
1203
|
+
*/
|
1204
|
+
public static function sort_by_name( &$themes ) {
|
1205
|
+
if ( 0 === strpos( get_locale(), 'en_' ) ) {
|
1206
|
+
uasort( $themes, array( 'WP_Theme', '_name_sort' ) );
|
1207
|
+
} else {
|
1208
|
+
uasort( $themes, array( 'WP_Theme', '_name_sort_i18n' ) );
|
1209
|
+
}
|
1210
|
+
}
|
1211
|
+
|
1212
|
+
/**
|
1213
|
+
* Callback function for usort() to naturally sort themes by name.
|
1214
|
+
*
|
1215
|
+
* Accesses the Name header directly from the class for maximum speed.
|
1216
|
+
* Would choke on HTML but we don't care enough to slow it down with strip_tags().
|
1217
|
+
*
|
1218
|
+
* @since 3.4.0
|
1219
|
+
* @access private
|
1220
|
+
*/
|
1221
|
+
private static function _name_sort( $a, $b ) {
|
1222
|
+
return strnatcasecmp( $a->headers['Name'], $b->headers['Name'] );
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
/**
|
1226
|
+
* Name sort (with translation).
|
1227
|
+
*
|
1228
|
+
* @since 3.4.0
|
1229
|
+
* @access private
|
1230
|
+
*/
|
1231
|
+
private static function _name_sort_i18n( $a, $b ) {
|
1232
|
+
// Don't mark up; Do translate.
|
1233
|
+
return strnatcasecmp( $a->display( 'Name', false, true ), $b->display( 'Name', false, true ) );
|
1234
|
+
}
|
1235
|
+
}
|