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