summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-05-22 01:01:36 -0400
committerYury German <blueknight@gentoo.org>2019-05-22 01:01:36 -0400
commit0914c92da22824025992c368c745546e41fbeb84 (patch)
tree965f6adf3b725e56d559fe4a93eff02281499dcc
parentDeleting plugins for update (diff)
downloadblogs-gentoo-0914c92da22824025992c368c745546e41fbeb84.tar.gz
blogs-gentoo-0914c92da22824025992c368c745546e41fbeb84.tar.bz2
blogs-gentoo-0914c92da22824025992c368c745546e41fbeb84.zip
Adding Plugins
Updating the following akismet.4.1.2, google-authenticator.0.52, jetpack.7.3.1 Signed-off-by: Yury German <blueknight@gentoo.org>
-rw-r--r--plugins/akismet/.htaccess34
-rw-r--r--plugins/akismet/LICENSE.txt339
-rw-r--r--plugins/akismet/_inc/akismet.css625
-rw-r--r--plugins/akismet/_inc/akismet.js308
-rw-r--r--plugins/akismet/_inc/form.js30
-rw-r--r--plugins/akismet/_inc/img/logo-full-2x.pngbin0 -> 5052 bytes
-rw-r--r--plugins/akismet/akismet.php66
-rw-r--r--plugins/akismet/class.akismet-admin.php1244
-rw-r--r--plugins/akismet/class.akismet-cli.php185
-rw-r--r--plugins/akismet/class.akismet-rest-api.php366
-rw-r--r--plugins/akismet/class.akismet-widget.php114
-rw-r--r--plugins/akismet/class.akismet.php1423
-rw-r--r--plugins/akismet/index.php2
-rw-r--r--plugins/akismet/readme.txt466
-rw-r--r--plugins/akismet/views/config.php242
-rw-r--r--plugins/akismet/views/get.php12
-rw-r--r--plugins/akismet/views/notice.php141
-rw-r--r--plugins/akismet/views/start.php102
-rw-r--r--plugins/akismet/views/stats.php11
-rw-r--r--plugins/akismet/wrapper.php214
-rw-r--r--plugins/google-authenticator/LICENSE339
-rw-r--r--plugins/google-authenticator/base32.php82
-rw-r--r--plugins/google-authenticator/google-authenticator.php1007
-rw-r--r--plugins/google-authenticator/jquery.qrcode.min.js28
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-da_DK.mobin0 -> 2736 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-da_DK.po113
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-de_DE.mobin0 -> 2565 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-de_DE.po119
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-es_ES.mobin0 -> 2749 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-es_ES.po131
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-fr_FR.mobin0 -> 2635 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-fr_FR.po133
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-it_IT.mobin0 -> 3324 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-it_IT.po143
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-nl_NL.mobin0 -> 7309 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-nl_NL.po317
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-pt_BR.mobin0 -> 2971 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-pt_BR.po123
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-zh_CN.mobin0 -> 3026 bytes
-rw-r--r--plugins/google-authenticator/lang/google-authenticator-zh_CN.po126
-rw-r--r--plugins/google-authenticator/lang/google-authenticator.pot260
-rw-r--r--plugins/google-authenticator/readme.txt194
-rw-r--r--plugins/google-authenticator/screenshot-1.jpgbin0 -> 28821 bytes
-rw-r--r--plugins/google-authenticator/screenshot-2.jpgbin0 -> 101559 bytes
-rw-r--r--plugins/google-authenticator/screenshot-3.jpgbin0 -> 148800 bytes
-rw-r--r--plugins/google-authenticator/screenshot-4.jpgbin0 -> 64993 bytes
-rw-r--r--plugins/google-authenticator/screenshot-5.jpgbin0 -> 24141 bytes
-rw-r--r--plugins/jetpack/.svnignore8
-rw-r--r--plugins/jetpack/3rd-party/3rd-party.php31
-rw-r--r--plugins/jetpack/3rd-party/bbpress.php50
-rw-r--r--plugins/jetpack/3rd-party/beaverbuilder.php20
-rw-r--r--plugins/jetpack/3rd-party/bitly.php34
-rw-r--r--plugins/jetpack/3rd-party/buddypress.php9
-rw-r--r--plugins/jetpack/3rd-party/class.jetpack-amp-support.php348
-rw-r--r--plugins/jetpack/3rd-party/class.jetpack-modules-overrides.php143
-rw-r--r--plugins/jetpack/3rd-party/debug-bar.php19
-rw-r--r--plugins/jetpack/3rd-party/debug-bar/class.jetpack-search-debug-bar.php173
-rw-r--r--plugins/jetpack/3rd-party/debug-bar/debug-bar.css56
-rw-r--r--plugins/jetpack/3rd-party/debug-bar/debug-bar.js22
-rw-r--r--plugins/jetpack/3rd-party/domain-mapping.php113
-rw-r--r--plugins/jetpack/3rd-party/polldaddy.php7
-rw-r--r--plugins/jetpack/3rd-party/qtranslate-x.php19
-rw-r--r--plugins/jetpack/3rd-party/vaultpress.php42
-rw-r--r--plugins/jetpack/3rd-party/woocommerce-services.php133
-rw-r--r--plugins/jetpack/3rd-party/woocommerce.php105
-rw-r--r--plugins/jetpack/3rd-party/wpml.php62
-rw-r--r--plugins/jetpack/CODE-OF-CONDUCT.md28
-rw-r--r--plugins/jetpack/_inc/accessible-focus.js19
-rw-r--r--plugins/jetpack/_inc/blocks/contact-info/view.css1
-rw-r--r--plugins/jetpack/_inc/blocks/contact-info/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/contact-info/view.js1
-rw-r--r--plugins/jetpack/_inc/blocks/contact-info/view.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/editor-beta.css1
-rw-r--r--plugins/jetpack/_inc/blocks/editor-beta.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/editor-beta.js24
-rw-r--r--plugins/jetpack/_inc/blocks/editor-beta.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/editor.css1
-rw-r--r--plugins/jetpack/_inc/blocks/editor.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/editor.js12
-rw-r--r--plugins/jetpack/_inc/blocks/editor.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/gif/view.css1
-rw-r--r--plugins/jetpack/_inc/blocks/gif/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/gif/view.js1
-rw-r--r--plugins/jetpack/_inc/blocks/gif/view.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/images/map-theme_black_and_white-1ead5946ca104d83676d6e3410e1d733.jpgbin0 -> 85291 bytes
-rw-r--r--plugins/jetpack/_inc/blocks/images/map-theme_default-2ceb449b599dbcbe2a90fead5a5f3824.jpgbin0 -> 113462 bytes
-rw-r--r--plugins/jetpack/_inc/blocks/images/map-theme_satellite-c74dc129bda9502fb0fb362bb627577e.jpgbin0 -> 160272 bytes
-rw-r--r--plugins/jetpack/_inc/blocks/images/map-theme_terrain-2b6e6c1c8d09cbdc58a4c0653be1a6e3.jpgbin0 -> 108702 bytes
-rw-r--r--plugins/jetpack/_inc/blocks/images/oval-3cc7669d571aef4e12f34b349e42d390.svg19
-rw-r--r--plugins/jetpack/_inc/blocks/images/paypal-button-1e53882e702881f8dfd958c141e65383.pngbin0 -> 7496 bytes
-rw-r--r--plugins/jetpack/_inc/blocks/images/paypal-button-2x-fe4d34770a47484f401cecbb892f8456.pngbin0 -> 8186 bytes
-rw-r--r--plugins/jetpack/_inc/blocks/index.json24
-rw-r--r--plugins/jetpack/_inc/blocks/mailchimp/view.css1
-rw-r--r--plugins/jetpack/_inc/blocks/mailchimp/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/mailchimp/view.js1
-rw-r--r--plugins/jetpack/_inc/blocks/mailchimp/view.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/map/view.css1
-rw-r--r--plugins/jetpack/_inc/blocks/map/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/map/view.js1
-rw-r--r--plugins/jetpack/_inc/blocks/map/view.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/membership-button/view.css1
-rw-r--r--plugins/jetpack/_inc/blocks/membership-button/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/membership-button/view.js1
-rw-r--r--plugins/jetpack/_inc/blocks/membership-button/view.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/repeat-visitor/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/repeat-visitor/view.js7
-rw-r--r--plugins/jetpack/_inc/blocks/slideshow/view.css1
-rw-r--r--plugins/jetpack/_inc/blocks/slideshow/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/slideshow/view.js1
-rw-r--r--plugins/jetpack/_inc/blocks/slideshow/view.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/tiled-gallery/view.css1
-rw-r--r--plugins/jetpack/_inc/blocks/tiled-gallery/view.deps.json1
-rw-r--r--plugins/jetpack/_inc/blocks/tiled-gallery/view.js1
-rw-r--r--plugins/jetpack/_inc/blocks/tiled-gallery/view.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/vendors~map/mapbox-gl.f81f5e1d3c950198407d.css1
-rw-r--r--plugins/jetpack/_inc/blocks/vendors~map/mapbox-gl.f81f5e1d3c950198407d.js1
-rw-r--r--plugins/jetpack/_inc/blocks/vendors~map/mapbox-gl.f81f5e1d3c950198407d.rtl.css1
-rw-r--r--plugins/jetpack/_inc/blocks/vendors~swiper.59b62a96313990494c44.css1
-rw-r--r--plugins/jetpack/_inc/blocks/vendors~swiper.59b62a96313990494c44.js1
-rw-r--r--plugins/jetpack/_inc/blocks/vendors~swiper.59b62a96313990494c44.rtl.css1
-rw-r--r--plugins/jetpack/_inc/build/accessible-focus.min.js2
-rw-r--r--plugins/jetpack/_inc/build/admin.deps.json1
-rw-r--r--plugins/jetpack/_inc/build/admin.dops-style.css2681
-rw-r--r--plugins/jetpack/_inc/build/admin.dops-style.rtl.css2682
-rw-r--r--plugins/jetpack/_inc/build/admin.js1
-rw-r--r--plugins/jetpack/_inc/build/carousel/jetpack-carousel.min.js4
-rw-r--r--plugins/jetpack/_inc/build/comment-likes/comment-like-count.min.js2
-rw-r--r--plugins/jetpack/_inc/build/contact-form/js/editor-view.min.js3
-rw-r--r--plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js3
-rw-r--r--plugins/jetpack/_inc/build/contact-form/js/grunion-frontend.min.js2
-rw-r--r--plugins/jetpack/_inc/build/contact-form/js/grunion.min.js4
-rw-r--r--plugins/jetpack/_inc/build/contact-form/js/tinymce-plugin-form-button.min.js3
-rw-r--r--plugins/jetpack/_inc/build/custom-css/custom-css/js/core-customizer-css-preview.min.js4
-rw-r--r--plugins/jetpack/_inc/build/custom-css/custom-css/js/core-customizer-css.core-4.9.min.js2
-rw-r--r--plugins/jetpack/_inc/build/custom-css/custom-css/js/core-customizer-css.min.js2
-rw-r--r--plugins/jetpack/_inc/build/custom-css/custom-css/js/css-editor.min.js4
-rw-r--r--plugins/jetpack/_inc/build/custom-css/custom-css/js/use-codemirror.min.js3
-rw-r--r--plugins/jetpack/_inc/build/custom-post-types/comics/comics.min.js4
-rw-r--r--plugins/jetpack/_inc/build/custom-post-types/js/many-items.min.js3
-rw-r--r--plugins/jetpack/_inc/build/custom-post-types/js/menu-checkboxes.min.js3
-rw-r--r--plugins/jetpack/_inc/build/custom-post-types/js/nova-drag-drop.min.js4
-rw-r--r--plugins/jetpack/_inc/build/facebook-embed.min.js3
-rw-r--r--plugins/jetpack/_inc/build/gallery-settings.min.js5
-rw-r--r--plugins/jetpack/_inc/build/idc-notice.min.js3
-rw-r--r--plugins/jetpack/_inc/build/infinite-scroll/infinity.min.js2
-rw-r--r--plugins/jetpack/_inc/build/jetpack-admin.min.js2
-rw-r--r--plugins/jetpack/_inc/build/jetpack-connection-banner.min.js3
-rw-r--r--plugins/jetpack/_inc/build/jetpack-jitm.min.js2
-rw-r--r--plugins/jetpack/_inc/build/jetpack-modules.min.js2
-rw-r--r--plugins/jetpack/_inc/build/jetpack-modules.models.min.js2
-rw-r--r--plugins/jetpack/_inc/build/jetpack-modules.views.min.js2
-rw-r--r--plugins/jetpack/_inc/build/jetpack-strings.pot2968
-rw-r--r--plugins/jetpack/_inc/build/jquery.jetpack-resize.min.js24
-rw-r--r--plugins/jetpack/_inc/build/jquery.spin.min.js6
-rw-r--r--plugins/jetpack/_inc/build/lazy-images/js/lazy-images.min.js30
-rw-r--r--plugins/jetpack/_inc/build/likes/post-count-jetpack.min.js2
-rw-r--r--plugins/jetpack/_inc/build/likes/post-count.min.js3
-rw-r--r--plugins/jetpack/_inc/build/likes/queuehandler.min.js3
-rw-r--r--plugins/jetpack/_inc/build/masterbar/tracks-events.min.js3
-rw-r--r--plugins/jetpack/_inc/build/minileven/theme/pub/minileven/js/small-menu.min.js7
-rw-r--r--plugins/jetpack/_inc/build/photon/photon.min.js3
-rw-r--r--plugins/jetpack/_inc/build/postmessage.min.js25
-rw-r--r--plugins/jetpack/_inc/build/related-posts/related-posts-customizer.min.js5
-rw-r--r--plugins/jetpack/_inc/build/related-posts/related-posts.min.js4
-rw-r--r--plugins/jetpack/_inc/build/sharedaddy/admin-sharing.min.js4
-rw-r--r--plugins/jetpack/_inc/build/sharedaddy/sharing.min.js4
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.js3
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/gist.min.js2
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/instagram.min.js3
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js22
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/main.min.js2
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js2
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js42
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/recipes.min.js3
-rw-r--r--plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.js4
-rw-r--r--plugins/jetpack/_inc/build/spin.min.js7
-rw-r--r--plugins/jetpack/_inc/build/static-noscript-notice.html1
-rw-r--r--plugins/jetpack/_inc/build/static-version-notice.html1
-rw-r--r--plugins/jetpack/_inc/build/static.html1
-rw-r--r--plugins/jetpack/_inc/build/style.min.css2
-rw-r--r--plugins/jetpack/_inc/build/style.min.rtl.css4
-rw-r--r--plugins/jetpack/_inc/build/tiled-gallery/tiled-gallery/tiled-gallery.min.js3
-rw-r--r--plugins/jetpack/_inc/build/twitter-timeline.min.js3
-rw-r--r--plugins/jetpack/_inc/build/videopress/js/editor-view.min.js3
-rw-r--r--plugins/jetpack/_inc/build/videopress/js/media-video-widget-extensions.min.js2
-rw-r--r--plugins/jetpack/_inc/build/videopress/js/videopress-plupload.min.js3
-rw-r--r--plugins/jetpack/_inc/build/videopress/js/videopress-uploader.min.js3
-rw-r--r--plugins/jetpack/_inc/build/widget-visibility/widget-conditions/widget-conditions.min.js7
-rw-r--r--plugins/jetpack/_inc/build/widgets/contact-info/contact-info-admin.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/customizer-utils.min.js3
-rw-r--r--plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js3
-rw-r--r--plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/gallery/js/admin.min.js4
-rw-r--r--plugins/jetpack/_inc/build/widgets/gallery/js/gallery.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/google-translate/google-translate.min.js5
-rw-r--r--plugins/jetpack/_inc/build/widgets/milestone/admin.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/milestone/milestone.min.js3
-rw-r--r--plugins/jetpack/_inc/build/widgets/search/js/search-widget-admin.min.js3
-rw-r--r--plugins/jetpack/_inc/build/widgets/search/js/search-widget.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/simple-payments/customizer.min.js4
-rw-r--r--plugins/jetpack/_inc/build/widgets/social-icons/social-icons-admin.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/twitter-timeline-admin.min.js2
-rw-r--r--plugins/jetpack/_inc/class.jetpack-provision.php284
-rw-r--r--plugins/jetpack/_inc/facebook-embed.js36
-rw-r--r--plugins/jetpack/_inc/fonts/automatticons/automatticons.eotbin0 -> 8292 bytes
-rw-r--r--plugins/jetpack/_inc/fonts/automatticons/automatticons.svg44
-rw-r--r--plugins/jetpack/_inc/fonts/automatticons/automatticons.ttfbin0 -> 12012 bytes
-rw-r--r--plugins/jetpack/_inc/fonts/automatticons/automatticons.woffbin0 -> 8944 bytes
-rw-r--r--plugins/jetpack/_inc/fonts/jetpack/jetpack.eotbin0 -> 1654 bytes
-rw-r--r--plugins/jetpack/_inc/fonts/jetpack/jetpack.svg33
-rw-r--r--plugins/jetpack/_inc/fonts/jetpack/jetpack.ttfbin0 -> 1480 bytes
-rw-r--r--plugins/jetpack/_inc/fonts/jetpack/jetpack.woffbin0 -> 1056 bytes
-rw-r--r--plugins/jetpack/_inc/footer.php6
-rw-r--r--plugins/jetpack/_inc/gallery-settings.js36
-rw-r--r--plugins/jetpack/_inc/genericons.php13
-rw-r--r--plugins/jetpack/_inc/genericons/COPYING.txt9
-rw-r--r--plugins/jetpack/_inc/genericons/LICENSE.txt339
-rw-r--r--plugins/jetpack/_inc/genericons/README.md218
-rw-r--r--plugins/jetpack/_inc/genericons/genericons.css11
-rw-r--r--plugins/jetpack/_inc/genericons/genericons/Genericons.eotbin0 -> 22374 bytes
-rw-r--r--plugins/jetpack/_inc/genericons/genericons/Genericons.svg537
-rw-r--r--plugins/jetpack/_inc/genericons/genericons/Genericons.ttfbin0 -> 22188 bytes
-rw-r--r--plugins/jetpack/_inc/genericons/genericons/Genericons.woffbin0 -> 13988 bytes
-rw-r--r--plugins/jetpack/_inc/genericons/genericons/genericons.css263
-rw-r--r--plugins/jetpack/_inc/genericons/genericons/rtl/genericons-rtl.css265
-rw-r--r--plugins/jetpack/_inc/header.php2
-rw-r--r--plugins/jetpack/_inc/idc-notice.js241
-rw-r--r--plugins/jetpack/_inc/jetpack-admin.js58
-rw-r--r--plugins/jetpack/_inc/jetpack-connection-banner.js85
-rw-r--r--plugins/jetpack/_inc/jetpack-jitm.js229
-rw-r--r--plugins/jetpack/_inc/jetpack-modules.js95
-rw-r--r--plugins/jetpack/_inc/jetpack-modules.models.js82
-rw-r--r--plugins/jetpack/_inc/jetpack-modules.views.js62
-rw-r--r--plugins/jetpack/_inc/jetpack-server-sandbox.php63
-rw-r--r--plugins/jetpack/_inc/jetpack-strings.php621
-rw-r--r--plugins/jetpack/_inc/jquery.jetpack-resize.js292
-rw-r--r--plugins/jetpack/_inc/jquery.spin.js104
-rw-r--r--plugins/jetpack/_inc/lib/admin-pages/class-jetpack-about-page.php679
-rw-r--r--plugins/jetpack/_inc/lib/admin-pages/class.jetpack-admin-page.php353
-rw-r--r--plugins/jetpack/_inc/lib/admin-pages/class.jetpack-landing-page.php3
-rw-r--r--plugins/jetpack/_inc/lib/admin-pages/class.jetpack-react-page.php399
-rw-r--r--plugins/jetpack/_inc/lib/admin-pages/class.jetpack-settings-page.php141
-rw-r--r--plugins/jetpack/_inc/lib/class.color.php755
-rw-r--r--plugins/jetpack/_inc/lib/class.core-rest-api-endpoints.php3196
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-automatic-install-skin.php111
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-iframe-embed.php84
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-keyring-service-helper.php204
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-password-checker.php1288
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-photon-image-sizes.php182
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-photon-image.php243
-rw-r--r--plugins/jetpack/_inc/lib/class.jetpack-search-performance-logger.php83
-rw-r--r--plugins/jetpack/_inc/lib/class.media-extractor.php436
-rw-r--r--plugins/jetpack/_inc/lib/class.media-summary.php369
-rw-r--r--plugins/jetpack/_inc/lib/class.media.php505
-rw-r--r--plugins/jetpack/_inc/lib/core-api/class-wpcom-rest-field-controller.php333
-rw-r--r--plugins/jetpack/_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php1708
-rw-r--r--plugins/jetpack/_inc/lib/core-api/class.jetpack-core-api-site-endpoints.php60
-rw-r--r--plugins/jetpack/_inc/lib/core-api/class.jetpack-core-api-widgets-endpoints.php56
-rw-r--r--plugins/jetpack/_inc/lib/core-api/class.jetpack-core-api-xmlrpc-consumer-endpoint.php39
-rw-r--r--plugins/jetpack/_inc/lib/core-api/load-wpcom-endpoints.php40
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/business-hours.php49
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-mailchimp.php79
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/gutenberg-available-extensions.php71
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/hello.php22
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/memberships.php187
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/publicize-connection-test-results.php121
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/publicize-connections.php194
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/publicize-services.php167
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/service-api-keys.php281
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/sites-posts-featured-media-url.php37
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-endpoints/subscribers.php62
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-fields/attachment-fields-videopress.php171
-rw-r--r--plugins/jetpack/_inc/lib/core-api/wpcom-fields/post-fields-publicize-connections.php353
-rw-r--r--plugins/jetpack/_inc/lib/debugger/0-load.php24
-rw-r--r--plugins/jetpack/_inc/lib/debugger/class-jetpack-cxn-test-base.php471
-rw-r--r--plugins/jetpack/_inc/lib/debugger/class-jetpack-cxn-tests.php340
-rw-r--r--plugins/jetpack/_inc/lib/debugger/class-jetpack-debug-data.php400
-rw-r--r--plugins/jetpack/_inc/lib/debugger/class-jetpack-debugger.php440
-rw-r--r--plugins/jetpack/_inc/lib/debugger/debug-functions-for-php53.php92
-rw-r--r--plugins/jetpack/_inc/lib/functions.wp-notify.php353
-rw-r--r--plugins/jetpack/_inc/lib/icalendar-reader.php913
-rw-r--r--plugins/jetpack/_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-builder.php341
-rw-r--r--plugins/jetpack/_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-parser.php683
-rw-r--r--plugins/jetpack/_inc/lib/markdown/0-load.php6
-rw-r--r--plugins/jetpack/_inc/lib/markdown/README.md19
-rw-r--r--plugins/jetpack/_inc/lib/markdown/extra.php3207
-rw-r--r--plugins/jetpack/_inc/lib/markdown/gfm.php400
-rw-r--r--plugins/jetpack/_inc/lib/plugins.php132
-rw-r--r--plugins/jetpack/_inc/lib/tonesque.php237
-rw-r--r--plugins/jetpack/_inc/lib/tracks/class.tracks-client.php191
-rw-r--r--plugins/jetpack/_inc/lib/tracks/class.tracks-event.php149
-rw-r--r--plugins/jetpack/_inc/lib/tracks/client.php130
-rw-r--r--plugins/jetpack/_inc/lib/tracks/tracks-ajax.js62
-rw-r--r--plugins/jetpack/_inc/lib/tracks/tracks-callables.js76
-rw-r--r--plugins/jetpack/_inc/lib/widgets.php776
-rw-r--r--plugins/jetpack/_inc/postmessage.js438
-rw-r--r--plugins/jetpack/_inc/social-logos.php14
-rw-r--r--plugins/jetpack/_inc/social-logos/social-logos.css257
-rw-r--r--plugins/jetpack/_inc/social-logos/social-logos.eotbin0 -> 9982 bytes
-rw-r--r--plugins/jetpack/_inc/social-logos/social-logos.html428
-rw-r--r--plugins/jetpack/_inc/social-logos/social-logos.min.css1
-rw-r--r--plugins/jetpack/_inc/social-logos/social-logos.ttfbin0 -> 9792 bytes
-rw-r--r--plugins/jetpack/_inc/social-logos/social-logos.woffbin0 -> 17984 bytes
-rw-r--r--plugins/jetpack/_inc/social-logos/social-logos.woff2bin0 -> 5628 bytes
-rw-r--r--plugins/jetpack/_inc/spin.js349
-rw-r--r--plugins/jetpack/_inc/twitter-timeline.js13
-rw-r--r--plugins/jetpack/bin/build-asset-cdn-json.php48
-rwxr-xr-xplugins/jetpack/bin/partner-cancel.sh68
-rwxr-xr-xplugins/jetpack/bin/partner-provision.sh228
-rw-r--r--plugins/jetpack/bin/phpcs-whitelist.js22
-rw-r--r--plugins/jetpack/changelog.txt4311
-rw-r--r--plugins/jetpack/class.frame-nonce-preview.php119
-rw-r--r--plugins/jetpack/class.jetpack-admin.php284
-rw-r--r--plugins/jetpack/class.jetpack-affiliate.php78
-rw-r--r--plugins/jetpack/class.jetpack-autoupdate.php305
-rw-r--r--plugins/jetpack/class.jetpack-bbpress-json-api-compat.php98
-rw-r--r--plugins/jetpack/class.jetpack-cli.php1843
-rw-r--r--plugins/jetpack/class.jetpack-client-server.php290
-rw-r--r--plugins/jetpack/class.jetpack-client.php388
-rw-r--r--plugins/jetpack/class.jetpack-connection-banner.php353
-rw-r--r--plugins/jetpack/class.jetpack-constants.php94
-rw-r--r--plugins/jetpack/class.jetpack-data.php128
-rw-r--r--plugins/jetpack/class.jetpack-debugger.php6
-rw-r--r--plugins/jetpack/class.jetpack-error.php3
-rw-r--r--plugins/jetpack/class.jetpack-gutenberg.php645
-rw-r--r--plugins/jetpack/class.jetpack-heartbeat.php165
-rw-r--r--plugins/jetpack/class.jetpack-idc.php700
-rw-r--r--plugins/jetpack/class.jetpack-ixr-client.php135
-rw-r--r--plugins/jetpack/class.jetpack-jitm.php409
-rw-r--r--plugins/jetpack/class.jetpack-modules-list-table.php342
-rw-r--r--plugins/jetpack/class.jetpack-network-sites-list-table.php148
-rw-r--r--plugins/jetpack/class.jetpack-network.php776
-rw-r--r--plugins/jetpack/class.jetpack-options.php604
-rw-r--r--plugins/jetpack/class.jetpack-plan.php230
-rw-r--r--plugins/jetpack/class.jetpack-post-images.php789
-rw-r--r--plugins/jetpack/class.jetpack-signature.php266
-rw-r--r--plugins/jetpack/class.jetpack-tracks.php92
-rw-r--r--plugins/jetpack/class.jetpack-twitter-cards.php270
-rw-r--r--plugins/jetpack/class.jetpack-user-agent.php1475
-rw-r--r--plugins/jetpack/class.jetpack-xmlrpc-server.php809
-rw-r--r--plugins/jetpack/class.jetpack.php7095
-rw-r--r--plugins/jetpack/class.json-api-endpoints.php2091
-rw-r--r--plugins/jetpack/class.json-api.php784
-rw-r--r--plugins/jetpack/class.photon.php1265
-rw-r--r--plugins/jetpack/composer.json26
-rw-r--r--plugins/jetpack/css/dashboard-widget-rtl.css186
-rw-r--r--plugins/jetpack/css/dashboard-widget-rtl.css.map1
-rw-r--r--plugins/jetpack/css/dashboard-widget-rtl.css.min.map0
-rw-r--r--plugins/jetpack/css/dashboard-widget-rtl.min.css3
-rw-r--r--plugins/jetpack/css/dashboard-widget.css186
-rw-r--r--plugins/jetpack/css/dashboard-widget.css.map1
-rw-r--r--plugins/jetpack/css/dashboard-widget.css.min.map0
-rw-r--r--plugins/jetpack/css/dashboard-widget.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm-rtl.css478
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm-rtl.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm-rtl.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm-rtl.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm.css478
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-admin-jitm.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-admin-rtl.css1487
-rw-r--r--plugins/jetpack/css/jetpack-admin-rtl.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-admin-rtl.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-admin-rtl.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-admin.css1487
-rw-r--r--plugins/jetpack/css/jetpack-admin.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-admin.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-admin.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-banners-rtl.css477
-rw-r--r--plugins/jetpack/css/jetpack-banners-rtl.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-banners-rtl.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-banners-rtl.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-banners.css477
-rw-r--r--plugins/jetpack/css/jetpack-banners.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-banners.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-banners.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-icons-rtl.css24
-rw-r--r--plugins/jetpack/css/jetpack-icons-rtl.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-icons-rtl.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-icons-rtl.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-icons.css24
-rw-r--r--plugins/jetpack/css/jetpack-icons.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-icons.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-icons.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar-rtl.css33
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar-rtl.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar-rtl.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar-rtl.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar.css33
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-idc-admin-bar.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-idc-rtl.css217
-rw-r--r--plugins/jetpack/css/jetpack-idc-rtl.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-idc-rtl.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-idc-rtl.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-idc.css217
-rw-r--r--plugins/jetpack/css/jetpack-idc.css.map1
-rw-r--r--plugins/jetpack/css/jetpack-idc.css.min.map0
-rw-r--r--plugins/jetpack/css/jetpack-idc.min.css3
-rw-r--r--plugins/jetpack/css/jetpack-rtl.css30
-rw-r--r--plugins/jetpack/css/jetpack.css30
-rw-r--r--plugins/jetpack/extensions/README.md225
-rw-r--r--plugins/jetpack/extensions/blocks/business-hours/business-hours.php147
-rw-r--r--plugins/jetpack/extensions/blocks/business-hours/components/day-edit.js200
-rw-r--r--plugins/jetpack/extensions/blocks/business-hours/components/day-preview.js53
-rw-r--r--plugins/jetpack/extensions/blocks/business-hours/edit.js104
-rw-r--r--plugins/jetpack/extensions/blocks/business-hours/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/business-hours/editor.scss128
-rw-r--r--plugins/jetpack/extensions/blocks/business-hours/index.js101
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/components/jetpack-contact-form.js266
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/components/jetpack-field-checkbox.js62
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/components/jetpack-field-label.js35
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/components/jetpack-field-multiple.js122
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/components/jetpack-field-textarea.js59
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/components/jetpack-field.js62
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/components/jetpack-option.js80
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/editor.scss696
-rw-r--r--plugins/jetpack/extensions/blocks/contact-form/index.js462
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/address/edit.js125
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/address/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/address/index.js71
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/address/save.js85
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/class-jetpack-contact-info-block.php114
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/contact-info.php40
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/edit.js51
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/editor.scss18
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/email/edit.js15
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/email/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/email/index.js42
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/email/save.js36
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/index.js57
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/phone/edit.js19
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/phone/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/phone/index.js42
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/phone/save.js47
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/style.scss3
-rw-r--r--plugins/jetpack/extensions/blocks/contact-info/view.js5
-rw-r--r--plugins/jetpack/extensions/blocks/gif/edit.js217
-rw-r--r--plugins/jetpack/extensions/blocks/gif/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/gif/editor.scss86
-rw-r--r--plugins/jetpack/extensions/blocks/gif/gif.php67
-rw-r--r--plugins/jetpack/extensions/blocks/gif/index.js61
-rw-r--r--plugins/jetpack/extensions/blocks/gif/style.scss40
-rw-r--r--plugins/jetpack/extensions/blocks/gif/view.js4
-rw-r--r--plugins/jetpack/extensions/blocks/likes/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/likes/index.js8
-rw-r--r--plugins/jetpack/extensions/blocks/likes/likes-checkbox.js45
-rw-r--r--plugins/jetpack/extensions/blocks/mailchimp/edit.js235
-rw-r--r--plugins/jetpack/extensions/blocks/mailchimp/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/mailchimp/editor.scss29
-rw-r--r--plugins/jetpack/extensions/blocks/mailchimp/index.js72
-rw-r--r--plugins/jetpack/extensions/blocks/mailchimp/mailchimp.php137
-rw-r--r--plugins/jetpack/extensions/blocks/mailchimp/view.js91
-rw-r--r--plugins/jetpack/extensions/blocks/mailchimp/view.scss34
-rw-r--r--plugins/jetpack/extensions/blocks/map/add-point/index.js42
-rw-r--r--plugins/jetpack/extensions/blocks/map/add-point/oval.svg19
-rw-r--r--plugins/jetpack/extensions/blocks/map/add-point/style.scss46
-rw-r--r--plugins/jetpack/extensions/blocks/map/component.js332
-rw-r--r--plugins/jetpack/extensions/blocks/map/edit.js283
-rw-r--r--plugins/jetpack/extensions/blocks/map/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/map/editor.scss28
-rw-r--r--plugins/jetpack/extensions/blocks/map/index.js28
-rw-r--r--plugins/jetpack/extensions/blocks/map/info-window/index.js52
-rw-r--r--plugins/jetpack/extensions/blocks/map/location-search/index.js108
-rw-r--r--plugins/jetpack/extensions/blocks/map/locations/index.js81
-rw-r--r--plugins/jetpack/extensions/blocks/map/locations/style.scss27
-rw-r--r--plugins/jetpack/extensions/blocks/map/lookup/index.js230
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-marker/index.js65
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-marker/style.scss6
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-theme-picker/index.js50
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-theme-picker/map-theme_black_and_white.jpgbin0 -> 85291 bytes
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-theme-picker/map-theme_default.jpgbin0 -> 113462 bytes
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-theme-picker/map-theme_satellite.jpgbin0 -> 160272 bytes
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-theme-picker/map-theme_terrain.jpgbin0 -> 108702 bytes
-rw-r--r--plugins/jetpack/extensions/blocks/map/map-theme-picker/style.scss36
-rw-r--r--plugins/jetpack/extensions/blocks/map/map.php31
-rw-r--r--plugins/jetpack/extensions/blocks/map/mapbox-map-formatter/index.js22
-rw-r--r--plugins/jetpack/extensions/blocks/map/save.js38
-rw-r--r--plugins/jetpack/extensions/blocks/map/settings.js104
-rw-r--r--plugins/jetpack/extensions/blocks/map/style.scss22
-rw-r--r--plugins/jetpack/extensions/blocks/map/view.js33
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/edit.js127
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/editor.scss144
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/index.js70
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/markdown.php20
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/renderer.js28
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/save.js8
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/test/__snapshots__/markdown-renderer.js.snap63
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/test/fixtures/source.js63
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/test/markdown-renderer.js17
-rw-r--r--plugins/jetpack/extensions/blocks/membership-button/edit.jsx392
-rw-r--r--plugins/jetpack/extensions/blocks/membership-button/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/membership-button/editor.scss38
-rw-r--r--plugins/jetpack/extensions/blocks/membership-button/index.js69
-rw-r--r--plugins/jetpack/extensions/blocks/membership-button/membership-button.php19
-rw-r--r--plugins/jetpack/extensions/blocks/membership-button/view.js79
-rw-r--r--plugins/jetpack/extensions/blocks/membership-button/view.scss49
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/connection-verify.js112
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/connection.js100
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/editor.scss100
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/form-unwrapped.js118
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/form.js72
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/index.js50
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/panel.js51
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/service-icon.js64
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/settings-button.js73
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/store/actions.js41
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/store/controls.js19
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/store/effects.js32
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/store/index.js24
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/store/middlewares.js40
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/store/reducer.js18
-rw-r--r--plugins/jetpack/extensions/blocks/publicize/store/selectors.js24
-rw-r--r--plugins/jetpack/extensions/blocks/related-posts/edit.js252
-rw-r--r--plugins/jetpack/extensions/blocks/related-posts/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/related-posts/index.js75
-rw-r--r--plugins/jetpack/extensions/blocks/related-posts/style.scss85
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/components/edit.js114
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/components/save.js12
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/constants.js5
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/editor.scss55
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/index.js46
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/repeat-visitor.php41
-rw-r--r--plugins/jetpack/extensions/blocks/repeat-visitor/view.js35
-rw-r--r--plugins/jetpack/extensions/blocks/seo/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/seo/editor.scss15
-rw-r--r--plugins/jetpack/extensions/blocks/seo/index.js39
-rw-r--r--plugins/jetpack/extensions/blocks/seo/panel.js54
-rw-r--r--plugins/jetpack/extensions/blocks/sharing/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/sharing/index.js8
-rw-r--r--plugins/jetpack/extensions/blocks/sharing/sharing-checkbox.js45
-rw-r--r--plugins/jetpack/extensions/blocks/shortlinks/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/shortlinks/index.js45
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/constants.js39
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/edit.js579
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/editor.scss63
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/featured-media.js69
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/help-message.js25
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/help-message.scss23
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/index.js131
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/paypal-button-2x.pngbin0 -> 8186 bytes
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/paypal-button.pngbin0 -> 7496 bytes
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/product-placeholder.js68
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/product-placeholder.scss93
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/save.js9
-rw-r--r--plugins/jetpack/extensions/blocks/simple-payments/utils.js29
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/create-swiper.js48
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/edit.js249
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/editor.scss44
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/index.js93
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/save.js15
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/slideshow.js232
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/slideshow.php28
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/style.scss165
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/swiper-callbacks.js95
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/transforms.js78
-rw-r--r--plugins/jetpack/extensions/blocks/slideshow/view.js70
-rw-r--r--plugins/jetpack/extensions/blocks/subscriptions/edit.js81
-rw-r--r--plugins/jetpack/extensions/blocks/subscriptions/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/subscriptions/index.js85
-rw-r--r--plugins/jetpack/extensions/blocks/subscriptions/save.js17
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/constants.js28
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/css-gram.scss86
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/constants.js27
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/image.js51
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/index.js81
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/column.js3
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/gallery.js7
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/index.js144
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/mosaic/index.js104
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/mosaic/ratios.js280
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/mosaic/resize.js107
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/row.js8
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/layout/square.js33
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/save.js31
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/edit.js289
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/editor.scss148
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/filter-toolbar.js136
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/gallery-image/edit.js147
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/gallery-image/save.js46
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/index.js212
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/column.js3
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/gallery.js7
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/index.js160
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/index.js104
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/ratios.js280
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/resize.js107
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/__snapshots__/index.js.snap98
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/__snapshots__/ratios.js.snap30
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/fixtures/ratios.js16
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/index.js21
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/ratios.js11
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/row.js8
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/square.js33
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/test/fixtures/image-sets.js103
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/save.js30
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php171
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/variables.scss2
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/view.js64
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/view.scss115
-rw-r--r--plugins/jetpack/extensions/blocks/videopress/edit.js185
-rw-r--r--plugins/jetpack/extensions/blocks/videopress/editor.js119
-rw-r--r--plugins/jetpack/extensions/blocks/videopress/index.js9
-rw-r--r--plugins/jetpack/extensions/blocks/videopress/loading.js13
-rw-r--r--plugins/jetpack/extensions/blocks/videopress/save.js37
-rw-r--r--plugins/jetpack/extensions/blocks/wordads/constants.js61
-rw-r--r--plugins/jetpack/extensions/blocks/wordads/edit.js56
-rw-r--r--plugins/jetpack/extensions/blocks/wordads/editor.js7
-rw-r--r--plugins/jetpack/extensions/blocks/wordads/editor.scss52
-rw-r--r--plugins/jetpack/extensions/blocks/wordads/format-picker.js59
-rw-r--r--plugins/jetpack/extensions/blocks/wordads/index.js66
-rw-r--r--plugins/jetpack/extensions/blocks/wordads/wordads.php121
-rw-r--r--plugins/jetpack/extensions/editor.js5
-rw-r--r--plugins/jetpack/extensions/index.json24
-rw-r--r--plugins/jetpack/extensions/shared/styles/gutenberg-colors.scss93
-rw-r--r--plugins/jetpack/extensions/shared/styles/gutenberg-variables.scss22
-rw-r--r--plugins/jetpack/extensions/shared/styles/jetpack-variables.scss1
-rw-r--r--plugins/jetpack/extensions/view.js4
-rw-r--r--plugins/jetpack/functions.compat.php90
-rw-r--r--plugins/jetpack/functions.gallery.php101
-rw-r--r--plugins/jetpack/functions.global.php228
-rw-r--r--plugins/jetpack/functions.opengraph.php428
-rw-r--r--plugins/jetpack/functions.photon.php317
-rw-r--r--plugins/jetpack/images/apps.svg98
-rw-r--r--plugins/jetpack/images/apps/triple-devices.svg1
-rw-r--r--plugins/jetpack/images/block-picker.pngbin0 -> 17264 bytes
-rw-r--r--plugins/jetpack/images/cf-ss.pngbin0 -> 27513 bytes
-rw-r--r--plugins/jetpack/images/characters.svg1
-rw-r--r--plugins/jetpack/images/cloud-based.svg1
-rw-r--r--plugins/jetpack/images/connect-jetpack.svg1
-rw-r--r--plugins/jetpack/images/connect-plug.svg19
-rw-r--r--plugins/jetpack/images/customize-theme-2.svg248
-rw-r--r--plugins/jetpack/images/customize-theme.svg1
-rw-r--r--plugins/jetpack/images/generating-cash-2.svg1
-rw-r--r--plugins/jetpack/images/get-apps.svg1
-rw-r--r--plugins/jetpack/images/jetpack-design.svg1
-rw-r--r--plugins/jetpack/images/jetpack-google-analytics.svg1
-rw-r--r--plugins/jetpack/images/jetpack-gutenberg.svg1
-rw-r--r--plugins/jetpack/images/jetpack-icon.jpgbin0 -> 9872 bytes
-rw-r--r--plugins/jetpack/images/jetpack-logo-green.svg13
-rw-r--r--plugins/jetpack/images/jetpack-logo.pngbin0 -> 706 bytes
-rw-r--r--plugins/jetpack/images/jetpack-logo.svg27
-rw-r--r--plugins/jetpack/images/jetpack-marketing.svg1
-rw-r--r--plugins/jetpack/images/jetpack-performance-icon.svg1
-rw-r--r--plugins/jetpack/images/jetpack-performance.svg1
-rw-r--r--plugins/jetpack/images/jetpack-powering-up.svg229
-rw-r--r--plugins/jetpack/images/jetpack-search-icon.svg1
-rw-r--r--plugins/jetpack/images/jetpack-search.svg281
-rw-r--r--plugins/jetpack/images/jetpack-security.svg1
-rw-r--r--plugins/jetpack/images/jetpack-site-activity.svg1
-rw-r--r--plugins/jetpack/images/jetpack-spam.svg1
-rw-r--r--plugins/jetpack/images/jetpack-speed-icon.svg1
-rw-r--r--plugins/jetpack/images/jetpack-speed.svg1
-rw-r--r--plugins/jetpack/images/jetpack-support.svg1
-rw-r--r--plugins/jetpack/images/jetpack-themes.svg1
-rw-r--r--plugins/jetpack/images/jetpack-updates.svg1
-rw-r--r--plugins/jetpack/images/jetpack-video-hosting.svg1
-rw-r--r--plugins/jetpack/images/jetpack-welcome.svg205
-rw-r--r--plugins/jetpack/images/jetpack-wordads.svg1
-rw-r--r--plugins/jetpack/images/jupiter.svg1
-rw-r--r--plugins/jetpack/images/man-and-laptop.svg1
-rw-r--r--plugins/jetpack/images/people-around-page.svg1
-rw-r--r--plugins/jetpack/images/plans/plan-business.svg1
-rw-r--r--plugins/jetpack/images/plans/plan-free.svg1
-rw-r--r--plugins/jetpack/images/plans/plan-personal.svg1
-rw-r--r--plugins/jetpack/images/plans/plan-premium.svg1
-rw-r--r--plugins/jetpack/images/rss/blue-large.pngbin0 -> 1743 bytes
-rw-r--r--plugins/jetpack/images/rss/blue-medium.pngbin0 -> 1175 bytes
-rw-r--r--plugins/jetpack/images/rss/blue-small.pngbin0 -> 578 bytes
-rw-r--r--plugins/jetpack/images/rss/green-large.pngbin0 -> 1603 bytes
-rw-r--r--plugins/jetpack/images/rss/green-medium.pngbin0 -> 1011 bytes
-rw-r--r--plugins/jetpack/images/rss/green-small.pngbin0 -> 494 bytes
-rw-r--r--plugins/jetpack/images/rss/orange-large.pngbin0 -> 2495 bytes
-rw-r--r--plugins/jetpack/images/rss/orange-medium.pngbin0 -> 1582 bytes
-rw-r--r--plugins/jetpack/images/rss/orange-small.pngbin0 -> 652 bytes
-rw-r--r--plugins/jetpack/images/rss/pink-large.pngbin0 -> 3458 bytes
-rw-r--r--plugins/jetpack/images/rss/pink-medium.pngbin0 -> 1499 bytes
-rw-r--r--plugins/jetpack/images/rss/pink-small.pngbin0 -> 630 bytes
-rw-r--r--plugins/jetpack/images/rss/purple-large.pngbin0 -> 3617 bytes
-rw-r--r--plugins/jetpack/images/rss/purple-medium.pngbin0 -> 1622 bytes
-rw-r--r--plugins/jetpack/images/rss/purple-small.pngbin0 -> 630 bytes
-rw-r--r--plugins/jetpack/images/rss/red-large.pngbin0 -> 3388 bytes
-rw-r--r--plugins/jetpack/images/rss/red-medium.pngbin0 -> 1536 bytes
-rw-r--r--plugins/jetpack/images/rss/red-small.pngbin0 -> 595 bytes
-rw-r--r--plugins/jetpack/images/rss/silver-large.pngbin0 -> 1946 bytes
-rw-r--r--plugins/jetpack/images/rss/silver-medium.pngbin0 -> 806 bytes
-rw-r--r--plugins/jetpack/images/rss/silver-small.pngbin0 -> 331 bytes
-rw-r--r--plugins/jetpack/images/security.svg1
-rw-r--r--plugins/jetpack/images/stars-full.svg1
-rw-r--r--plugins/jetpack/images/stars-left.svg3
-rw-r--r--plugins/jetpack/images/stars-right.svg3
-rw-r--r--plugins/jetpack/images/stats-example-lrg.pngbin0 -> 60642 bytes
-rw-r--r--plugins/jetpack/images/stats-example-med.pngbin0 -> 31238 bytes
-rw-r--r--plugins/jetpack/images/stats-example-sm.pngbin0 -> 14556 bytes
-rw-r--r--plugins/jetpack/images/stats-people.svg1
-rw-r--r--plugins/jetpack/images/stats-smiley.gifbin0 -> 50 bytes
-rw-r--r--plugins/jetpack/images/stats.svg32
-rw-r--r--plugins/jetpack/images/themes.svg1
-rw-r--r--plugins/jetpack/images/white-clouds-reverse.svg16
-rw-r--r--plugins/jetpack/images/white-clouds.svg3
-rw-r--r--plugins/jetpack/images/wordads.svg1
-rw-r--r--plugins/jetpack/jest.config.js4
-rw-r--r--plugins/jetpack/jetpack.php164
-rw-r--r--plugins/jetpack/json-api-config.php15
-rw-r--r--plugins/jetpack/json-endpoints.php132
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-add-widget-endpoint.php103
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-autosave-post-v1-1-endpoint.php112
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-delete-post-endpoint.php68
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-restore-post-endpoint.php69
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-update-comments-endpoint.php219
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-comment-endpoint.php207
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-delete-media-endpoint.php58
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-delete-media-v1-1-endpoint.php69
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-edit-media-v1-2-endpoint.php428
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-autosave-v1-1-endpoint.php72
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-counts-endpoint.php72
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-endpoint.php38
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-history-endpoint.php53
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comments-tree-endpoint.php187
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comments-tree-v1-1-endpoint.php92
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comments-tree-v1-2-endpoint.php148
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-customcss.php58
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-media-endpoint.php49
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-media-v1-1-endpoint.php64
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-media-v1-2-endpoint.php72
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-post-counts-v1-1-endpoint.php137
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-post-endpoint.php81
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-post-v1-1-endpoint.php73
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-endpoint.php749
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-site-v1-2-endpoint.php62
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-taxonomies-endpoint.php144
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-taxonomy-endpoint.php59
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-get-term-endpoint.php54
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-comments-endpoint.php309
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-embeds-endpoint.php60
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-media-endpoint.php82
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-media-v1-1-endpoint.php288
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-media-v1-2-endpoint.php77
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-post-type-taxonomies-endpoint.php98
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-post-types-endpoint.php117
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-endpoint.php353
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php529
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-posts-v1-2-endpoint.php433
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-roles-endpoint.php135
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-shortcodes-endpoint.php48
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-terms-endpoint.php112
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-list-users-endpoint.php177
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-menus-v1-1-endpoint.php824
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php658
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-post-v1-1-endpoint.php353
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-render-embed-endpoint.php75
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-render-embed-reversal-endpoint.php108
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-render-endpoint.php145
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-render-shortcode-endpoint.php71
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-sharing-buttons-endpoint.php644
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php863
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-v1-2-endpoint.php164
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-v1-3-endpoint.php157
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-v1-4-endpoint.php127
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-site-user-endpoint.php221
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-taxonomy-endpoint.php30
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-comment-endpoint.php393
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-customcss.php86
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-media-endpoint.php80
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-media-v1-1-endpoint.php134
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-post-endpoint.php921
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php1005
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php873
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-site-homepage-endpoint.php77
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-site-logo-endpoint.php96
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-taxonomy-endpoint.php314
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-term-endpoint.php238
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-update-user-endpoint.php165
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-upload-media-endpoint.php94
-rw-r--r--plugins/jetpack/json-endpoints/class.wpcom-json-api-upload-media-v1-1-endpoint.php176
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-check-capabilities-endpoint.php26
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-core-endpoint.php20
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-core-modify-endpoint.php75
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-cron-endpoint.php252
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-endpoint.php128
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-get-comment-backup-endpoint.php52
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-get-database-object-backup-endpoint.php97
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-get-option-backup-endpoint.php35
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-get-post-backup-endpoint.php31
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-get-term-backup-endpoint.php32
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-get-user-backup-endpoint.php32
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-jps-woocommerce-connect-endpoint.php58
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-log-endpoint.php16
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-maybe-auto-update-endpoint.php32
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php125
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-get-endpoint.php6
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-list-endpoint.php13
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-modify-endpoint.php62
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-delete-endpoint.php78
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php321
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-get-endpoint.php28
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-install-endpoint.php96
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-list-endpoint.php36
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php420
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-v1-2-endpoint.php191
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-new-endpoint.php136
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php322
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-active-endpoint.php50
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-delete-endpoint.php60
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-endpoint.php178
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-get-endpoint.php6
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-install-endpoint.php173
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-list-endpoint.php13
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-modify-endpoint.php130
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-new-endpoint.php83
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-translations-endpoint.php20
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-translations-modify-endpoint.php29
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-updates-status-endpoint.php34
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-user-connect-endpoint.php30
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-user-create-endpoint.php72
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.wpcom-json-api-get-option-endpoint.php41
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.wpcom-json-api-update-option-endpoint.php31
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/json-api-jetpack-endpoints.php1234
-rw-r--r--plugins/jetpack/languages/jetpack-af.mobin0 -> 12920 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-ary.mobin0 -> 168034 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-az.mobin0 -> 125957 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-bg_BG.mobin0 -> 234980 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-bs_BA.mobin0 -> 47041 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-ca.mobin0 -> 56874 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-ckb.mobin0 -> 75531 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-cs_CZ.mobin0 -> 79810 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-cy.mobin0 -> 67666 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-da_DK.mobin0 -> 43005 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-es_MX.mobin0 -> 269203 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-fr_CA.mobin0 -> 294468 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-gd.mobin0 -> 45801 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-gl_ES.mobin0 -> 265944 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-hu_HU.mobin0 -> 158501 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-is_IS.mobin0 -> 44896 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-ka_GE.mobin0 -> 2669 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-lt_LT.mobin0 -> 18838 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-lv.mobin0 -> 5090 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-mk_MK.mobin0 -> 21138 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-ms_MY.mobin0 -> 24910 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-my_MM.mobin0 -> 18713 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-nn_NO.mobin0 -> 23836 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-pl_PL.mobin0 -> 174734 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-pt_PT.mobin0 -> 61949 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-sa_IN.mobin0 -> 1075 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-si_LK.mobin0 -> 39529 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-sl_SI.mobin0 -> 9766 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-sr_RS.mobin0 -> 46126 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-te.mobin0 -> 26461 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-th.mobin0 -> 29342 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-uk.mobin0 -> 53602 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-ur.mobin0 -> 5171 bytes
-rw-r--r--plugins/jetpack/languages/jetpack-vi.mobin0 -> 27771 bytes
-rw-r--r--plugins/jetpack/languages/json/jetpack-af-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ar-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ary-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-az-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-bg_BG-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-bs_BA-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ca-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ckb-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-cs_CZ-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-cy-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-da_DK-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-de_DE-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-de_DE_formal-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-el-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-en_AU-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-en_CA-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-en_GB-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-en_NZ-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-en_ZA-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-eo-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-es_AR-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-es_CL-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-es_CR-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-es_ES-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-es_MX-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-es_PE-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-es_VE-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-fa_IR-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-fi-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-fr_BE-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-fr_CA-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-fr_FR-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-gd-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-gl_ES-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-he_IL-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-hr-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-hu_HU-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-id_ID-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-is_IS-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-it_IT-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ja-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ka_GE-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ko_KR-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-lt_LT-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-lv-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-mk_MK-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ms_MY-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-my_MM-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-nb_NO-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-nl_NL-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-nl_NL_formal-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-nn_NO-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-pl_PL-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-pt_BR-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-pt_PT-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ro_RO-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ru_RU-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-sa_IN-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-si_LK-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-sk_SK-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-sl_SI-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-sq-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-sr_RS-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-sv_SE-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-te-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-th-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-tr_TR-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-uk-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-ur-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-vi-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-zh_CN-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-zh_HK-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/json/jetpack-zh_TW-1bac79e646a8bf4081a5011ab72d5807.json1
-rw-r--r--plugins/jetpack/languages/readme.txt15
-rw-r--r--plugins/jetpack/locales.php2396
-rw-r--r--plugins/jetpack/modules/after-the-deadline.php6
-rw-r--r--plugins/jetpack/modules/blocks.php6
-rw-r--r--plugins/jetpack/modules/calypsoify/README.md4
-rw-r--r--plugins/jetpack/modules/calypsoify/class.jetpack-calypsoify.php462
-rw-r--r--plugins/jetpack/modules/calypsoify/gutenberg-styles/button.scss143
-rw-r--r--plugins/jetpack/modules/calypsoify/mods-gutenberg.js28
-rw-r--r--plugins/jetpack/modules/calypsoify/mods.js89
-rw-r--r--plugins/jetpack/modules/calypsoify/style-gutenberg-rtl.min.css4
-rw-r--r--plugins/jetpack/modules/calypsoify/style-gutenberg.min.css2
-rw-r--r--plugins/jetpack/modules/calypsoify/style-rtl.min.css4
-rw-r--r--plugins/jetpack/modules/calypsoify/style.min.css2
-rw-r--r--plugins/jetpack/modules/carousel.php16
-rw-r--r--plugins/jetpack/modules/carousel/images/arrows-2x.pngbin0 -> 10063 bytes
-rw-r--r--plugins/jetpack/modules/carousel/images/arrows.pngbin0 -> 4529 bytes
-rw-r--r--plugins/jetpack/modules/carousel/images/carousel-likereblog-2x.pngbin0 -> 1096 bytes
-rw-r--r--plugins/jetpack/modules/carousel/images/carousel-likereblog.pngbin0 -> 547 bytes
-rw-r--r--plugins/jetpack/modules/carousel/images/carousel-link-2x.pngbin0 -> 867 bytes
-rw-r--r--plugins/jetpack/modules/carousel/images/carousel-link.pngbin0 -> 431 bytes
-rw-r--r--plugins/jetpack/modules/carousel/images/carousel-sprite-2x.pngbin0 -> 2076 bytes
-rw-r--r--plugins/jetpack/modules/carousel/images/carousel-sprite.pngbin0 -> 1318 bytes
-rw-r--r--plugins/jetpack/modules/carousel/jetpack-carousel-rtl.css1
-rw-r--r--plugins/jetpack/modules/carousel/jetpack-carousel.css1129
-rw-r--r--plugins/jetpack/modules/carousel/jetpack-carousel.js1851
-rw-r--r--plugins/jetpack/modules/carousel/jetpack-carousel.php832
-rw-r--r--plugins/jetpack/modules/carousel/rtl/jetpack-carousel-rtl.css1130
-rw-r--r--plugins/jetpack/modules/comment-likes.php205
-rw-r--r--plugins/jetpack/modules/comment-likes/admin-style.css45
-rw-r--r--plugins/jetpack/modules/comment-likes/comment-like-count.js42
-rw-r--r--plugins/jetpack/modules/comments.php36
-rw-r--r--plugins/jetpack/modules/comments/admin.php210
-rw-r--r--plugins/jetpack/modules/comments/base.php308
-rw-r--r--plugins/jetpack/modules/comments/comments.php626
-rw-r--r--plugins/jetpack/modules/contact-form.php29
-rw-r--r--plugins/jetpack/modules/contact-form/admin.php894
-rw-r--r--plugins/jetpack/modules/contact-form/class-grunion-contact-form-endpoint.php52
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-inline-editing-style-rtl.css825
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-inline-editing-style-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-inline-editing-style.css764
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-inline-editing-style.min.css2
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-style-rtl.css613
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-style-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-style.css554
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-style.min.css2
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-ui-rtl.css27
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-ui-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-ui.css26
-rw-r--r--plugins/jetpack/modules/contact-form/css/editor-ui.min.css2
-rw-r--r--plugins/jetpack/modules/contact-form/css/grunion-rtl.css1
-rw-r--r--plugins/jetpack/modules/contact-form/css/grunion.css91
-rw-r--r--plugins/jetpack/modules/contact-form/css/jquery-ui-datepicker.css160
-rw-r--r--plugins/jetpack/modules/contact-form/grunion-contact-form.php3501
-rw-r--r--plugins/jetpack/modules/contact-form/grunion-editor-view.php299
-rw-r--r--plugins/jetpack/modules/contact-form/grunion-form-view.php266
-rw-r--r--plugins/jetpack/modules/contact-form/images/blank-screen-akismet.pngbin0 -> 2270 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/blank-screen-button.pngbin0 -> 1823 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-form-2x.pngbin0 -> 153 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-form.pngbin0 -> 188 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-field-2x.pngbin0 -> 201 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-field-hover-2x.pngbin0 -> 207 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-field-hover.gifbin0 -> 144 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-field.gifbin0 -> 139 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-option-2x.pngbin0 -> 99 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-option-hover-2x.pngbin0 -> 94 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-option-hover.gifbin0 -> 73 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/images/grunion-remove-option.gifbin0 -> 73 bytes
-rw-r--r--plugins/jetpack/modules/contact-form/js/editor-view.js284
-rw-r--r--plugins/jetpack/modules/contact-form/js/grunion-admin.js30
-rw-r--r--plugins/jetpack/modules/contact-form/js/grunion-frontend.js3
-rw-r--r--plugins/jetpack/modules/contact-form/js/grunion.js1180
-rw-r--r--plugins/jetpack/modules/contact-form/js/tinymce-plugin-form-button.js37
-rw-r--r--plugins/jetpack/modules/copy-post.php338
-rw-r--r--plugins/jetpack/modules/custom-content-types.php47
-rw-r--r--plugins/jetpack/modules/custom-css.php68
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/class.csstidy.php1246
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/class.csstidy_ctype.php46
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/class.csstidy_optimise.php938
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/class.csstidy_print.php410
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparse-rtl.css119
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparse-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparse.css118
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparse.min.css2
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparsed-rtl.css30
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparsed-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparsed.css29
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/cssparsed.min.css2
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/data-wp.inc.php102
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/data.inc.php693
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/lang.inc.php308
-rw-r--r--plugins/jetpack/modules/custom-css/csstidy/wordpress-standard.tpl10
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css-4.7.php1165
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css.php1866
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/blank.css1
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/codemirror-rtl.css262
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/codemirror-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/codemirror.css262
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/codemirror.min.css2
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/css-editor-rtl.css33
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/css-editor-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/css-editor.css32
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/css-editor.min.css2
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/customizer-control.css150
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/rtl/codemirror-rtl.css260
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/use-codemirror-rtl.css7
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/use-codemirror-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/use-codemirror.css6
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/css/use-codemirror.min.css2
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/js/codemirror.min.js11
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/js/core-customizer-css-preview.js42
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/js/core-customizer-css.core-4.9.js85
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/js/core-customizer-css.js192
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/js/css-editor.js91
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/js/use-codemirror.js52
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/preprocessors.php58
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/preprocessors/lessc.inc.php3768
-rw-r--r--plugins/jetpack/modules/custom-css/custom-css/preprocessors/scss.inc.php4383
-rw-r--r--plugins/jetpack/modules/custom-css/migrate-to-core.php243
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics.php533
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/admin.css7
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/comics-rtl.css31
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/comics-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/comics.css30
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/comics.js134
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/comics.min.css2
-rw-r--r--plugins/jetpack/modules/custom-post-types/comics/rtl/comics-rtl.css32
-rw-r--r--plugins/jetpack/modules/custom-post-types/css/edit-items.css24
-rw-r--r--plugins/jetpack/modules/custom-post-types/css/many-items.css14
-rw-r--r--plugins/jetpack/modules/custom-post-types/css/nova-font.css30
-rw-r--r--plugins/jetpack/modules/custom-post-types/css/nova.css110
-rw-r--r--plugins/jetpack/modules/custom-post-types/css/portfolio-shortcode.css131
-rw-r--r--plugins/jetpack/modules/custom-post-types/css/testimonial-shortcode.css102
-rw-r--r--plugins/jetpack/modules/custom-post-types/js/many-items.js116
-rw-r--r--plugins/jetpack/modules/custom-post-types/js/menu-checkboxes.js55
-rw-r--r--plugins/jetpack/modules/custom-post-types/js/nova-drag-drop.js67
-rw-r--r--plugins/jetpack/modules/custom-post-types/nova.php1298
-rw-r--r--plugins/jetpack/modules/custom-post-types/portfolios.php929
-rw-r--r--plugins/jetpack/modules/custom-post-types/testimonial.php763
-rw-r--r--plugins/jetpack/modules/debug.php6
-rw-r--r--plugins/jetpack/modules/enhanced-distribution.php67
-rw-r--r--plugins/jetpack/modules/geo-location.php81
-rw-r--r--plugins/jetpack/modules/geo-location/class.jetpack-geo-location.php425
-rw-r--r--plugins/jetpack/modules/google-analytics.php15
-rw-r--r--plugins/jetpack/modules/google-analytics/classes/wp-google-analytics-legacy.php256
-rw-r--r--plugins/jetpack/modules/google-analytics/classes/wp-google-analytics-options.php70
-rw-r--r--plugins/jetpack/modules/google-analytics/classes/wp-google-analytics-universal.php410
-rw-r--r--plugins/jetpack/modules/google-analytics/classes/wp-google-analytics-utils.php63
-rw-r--r--plugins/jetpack/modules/google-analytics/wp-google-analytics.php76
-rw-r--r--plugins/jetpack/modules/gplus-authorship.php6
-rw-r--r--plugins/jetpack/modules/gravatar-hovercards.php300
-rw-r--r--plugins/jetpack/modules/holiday-snow.php6
-rw-r--r--plugins/jetpack/modules/infinite-scroll.php247
-rw-r--r--plugins/jetpack/modules/infinite-scroll/infinity.css164
-rw-r--r--plugins/jetpack/modules/infinite-scroll/infinity.js780
-rw-r--r--plugins/jetpack/modules/infinite-scroll/infinity.php1664
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyeleven.css45
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyeleven.php44
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyfifteen-rtl.css216
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyfifteen.css216
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyfifteen.php28
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyfourteen.css111
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyfourteen.php48
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyseventeen-rtl.css168
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyseventeen.css168
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyseventeen.php58
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentysixteen-rtl.css161
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentysixteen.css161
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentysixteen.php43
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyten.css25
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentyten.php55
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentythirteen.css90
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentythirteen.php28
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentytwelve.css33
-rw-r--r--plugins/jetpack/modules/infinite-scroll/themes/twentytwelve.php43
-rw-r--r--plugins/jetpack/modules/json-api.php12
-rw-r--r--plugins/jetpack/modules/latex.php122
-rw-r--r--plugins/jetpack/modules/lazy-images.php40
-rw-r--r--plugins/jetpack/modules/lazy-images/images/1x1.trans.gifbin0 -> 42 bytes
-rw-r--r--plugins/jetpack/modules/lazy-images/js/lazy-images.js870
-rw-r--r--plugins/jetpack/modules/lazy-images/lazy-images.php353
-rw-r--r--plugins/jetpack/modules/likes.php657
-rw-r--r--plugins/jetpack/modules/likes/jetpack-likes-master-iframe.php38
-rw-r--r--plugins/jetpack/modules/likes/jetpack-likes-settings.php729
-rw-r--r--plugins/jetpack/modules/likes/post-count-jetpack.js20
-rw-r--r--plugins/jetpack/modules/likes/post-count.js64
-rw-r--r--plugins/jetpack/modules/likes/queuehandler.js402
-rw-r--r--plugins/jetpack/modules/likes/style.css233
-rw-r--r--plugins/jetpack/modules/manage.php4
-rw-r--r--plugins/jetpack/modules/manage/activate-admin.php4
-rw-r--r--plugins/jetpack/modules/manage/confirm-admin.php4
-rw-r--r--plugins/jetpack/modules/markdown.php29
-rw-r--r--plugins/jetpack/modules/markdown/easy-markdown.php812
-rw-r--r--plugins/jetpack/modules/masterbar.php26
-rw-r--r--plugins/jetpack/modules/masterbar/masterbar.php470
-rw-r--r--plugins/jetpack/modules/masterbar/overrides.css61
-rw-r--r--plugins/jetpack/modules/masterbar/rtl-admin-bar.php55
-rw-r--r--plugins/jetpack/modules/masterbar/tracks-events.js110
-rw-r--r--plugins/jetpack/modules/memberships/class-jetpack-memberships.php272
-rw-r--r--plugins/jetpack/modules/minileven.php57
-rw-r--r--plugins/jetpack/modules/minileven/images/wp-app-devices.pngbin0 -> 1014 bytes
-rw-r--r--plugins/jetpack/modules/minileven/minileven.php344
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/comments.php52
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/content-gallery.php83
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/content.php63
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/footer.php61
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/functions.php273
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/header.php70
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/image.php108
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/inc/custom-header.php107
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/inc/fonts/genericons-regular-webfont.eotbin0 -> 7475 bytes
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/inc/fonts/genericons-regular-webfont.svg81
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/inc/fonts/genericons-regular-webfont.ttfbin0 -> 13516 bytes
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/inc/fonts/genericons-regular-webfont.woffbin0 -> 8676 bytes
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/inc/template-tags.php96
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/inc/tweaks.php103
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/index.php75
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/js/small-menu.js38
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/page.php47
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/rtl.css574
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/screenshot.pngbin0 -> 58138 bytes
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/searchform.php12
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/sidebar.php12
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/style.css1588
-rw-r--r--plugins/jetpack/modules/mobile-push.php6
-rw-r--r--plugins/jetpack/modules/module-extras.php85
-rw-r--r--plugins/jetpack/modules/module-headings.php342
-rw-r--r--plugins/jetpack/modules/module-info.php914
-rw-r--r--plugins/jetpack/modules/monitor.php148
-rw-r--r--plugins/jetpack/modules/notes.php198
-rw-r--r--plugins/jetpack/modules/omnisearch.php6
-rw-r--r--plugins/jetpack/modules/photon-cdn.php298
-rw-r--r--plugins/jetpack/modules/photon-cdn/jetpack-manifest.php418
-rw-r--r--plugins/jetpack/modules/photon.php22
-rw-r--r--plugins/jetpack/modules/photon/photon.js61
-rw-r--r--plugins/jetpack/modules/plugin-search.php602
-rw-r--r--plugins/jetpack/modules/plugin-search/plugin-search.css84
-rw-r--r--plugins/jetpack/modules/plugin-search/plugin-search.js273
-rw-r--r--plugins/jetpack/modules/plugin-search/psh-128.pngbin0 -> 12524 bytes
-rw-r--r--plugins/jetpack/modules/plugin-search/psh-256.pngbin0 -> 27512 bytes
-rw-r--r--plugins/jetpack/modules/plugin-search/psh.svg1
-rw-r--r--plugins/jetpack/modules/post-by-email.php202
-rw-r--r--plugins/jetpack/modules/post-by-email/post-by-email-rtl.css7
-rw-r--r--plugins/jetpack/modules/post-by-email/post-by-email-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/post-by-email/post-by-email.css6
-rw-r--r--plugins/jetpack/modules/post-by-email/post-by-email.js128
-rw-r--r--plugins/jetpack/modules/post-by-email/post-by-email.min.css2
-rw-r--r--plugins/jetpack/modules/protect.php882
-rw-r--r--plugins/jetpack/modules/protect/blocked-login-page.php611
-rw-r--r--plugins/jetpack/modules/protect/math-fallback.php158
-rw-r--r--plugins/jetpack/modules/protect/protect-dashboard-widget-rtl.css117
-rw-r--r--plugins/jetpack/modules/protect/protect-dashboard-widget-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/protect/protect-dashboard-widget.css116
-rw-r--r--plugins/jetpack/modules/protect/protect-dashboard-widget.min.css2
-rw-r--r--plugins/jetpack/modules/protect/protect.pngbin0 -> 14439 bytes
-rw-r--r--plugins/jetpack/modules/protect/shared-functions.php316
-rw-r--r--plugins/jetpack/modules/protect/transient-cleanup.php58
-rw-r--r--plugins/jetpack/modules/publicize.php74
-rw-r--r--plugins/jetpack/modules/publicize/enhanced-open-graph.php129
-rw-r--r--plugins/jetpack/modules/publicize/publicize-jetpack.php753
-rw-r--r--plugins/jetpack/modules/publicize/publicize.php1249
-rw-r--r--plugins/jetpack/modules/publicize/ui.php657
-rw-r--r--plugins/jetpack/modules/pwa.php42
-rw-r--r--plugins/jetpack/modules/pwa/class.jetpack-pwa-helpers.php62
-rw-r--r--plugins/jetpack/modules/pwa/class.jetpack-pwa-manifest.php95
-rw-r--r--plugins/jetpack/modules/pwa/images/wp-192.pngbin0 -> 6584 bytes
-rw-r--r--plugins/jetpack/modules/pwa/images/wp-512.pngbin0 -> 16496 bytes
-rw-r--r--plugins/jetpack/modules/random-redirect.php6
-rw-r--r--plugins/jetpack/modules/related-posts.php63
-rw-r--r--plugins/jetpack/modules/related-posts/class.related-posts-customize.php300
-rw-r--r--plugins/jetpack/modules/related-posts/jetpack-related-posts.php1804
-rw-r--r--plugins/jetpack/modules/related-posts/related-posts-customizer.js28
-rw-r--r--plugins/jetpack/modules/related-posts/related-posts-rtl.css1
-rw-r--r--plugins/jetpack/modules/related-posts/related-posts.css315
-rw-r--r--plugins/jetpack/modules/related-posts/related-posts.js331
-rw-r--r--plugins/jetpack/modules/related-posts/rtl/related-posts-rtl.css190
-rw-r--r--plugins/jetpack/modules/search.php18
-rw-r--r--plugins/jetpack/modules/search/class.jetpack-search-helpers.php699
-rw-r--r--plugins/jetpack/modules/search/class.jetpack-search-template-tags.php225
-rw-r--r--plugins/jetpack/modules/search/class.jetpack-search.php1874
-rw-r--r--plugins/jetpack/modules/seo-tools.php39
-rw-r--r--plugins/jetpack/modules/seo-tools/jetpack-seo-posts.php63
-rw-r--r--plugins/jetpack/modules/seo-tools/jetpack-seo-titles.php301
-rw-r--r--plugins/jetpack/modules/seo-tools/jetpack-seo-utils.php126
-rw-r--r--plugins/jetpack/modules/seo-tools/jetpack-seo.php206
-rw-r--r--plugins/jetpack/modules/sharedaddy.php44
-rw-r--r--plugins/jetpack/modules/sharedaddy/admin-sharing-rtl.css453
-rw-r--r--plugins/jetpack/modules/sharedaddy/admin-sharing-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/sharedaddy/admin-sharing.css452
-rw-r--r--plugins/jetpack/modules/sharedaddy/admin-sharing.js532
-rw-r--r--plugins/jetpack/modules/sharedaddy/admin-sharing.min.css2
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/after-the-deadline@2x.pngbin0 -> 1068 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/comments@2x.pngbin0 -> 763 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/contact-form@2x.pngbin0 -> 539 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/custom.pngbin0 -> 445 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/custom@2x.pngbin0 -> 1147 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/designfloat.pngbin0 -> 833 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/digg.pngbin0 -> 530 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/digg@2x.pngbin0 -> 872 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/divider.pngbin0 -> 94 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/divider@2x.pngbin0 -> 116 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/draggy.pngbin0 -> 107 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/draggy@2x.pngbin0 -> 109 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/email.pngbin0 -> 209 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/email@2x.pngbin0 -> 927 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/ember.pngbin0 -> 533 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/enhanced-distribution@2x.pngbin0 -> 757 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/facebook.pngbin0 -> 568 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/facebook@2x.pngbin0 -> 1036 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/feed.pngbin0 -> 761 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/icon-facebook-2x.pngbin0 -> 1027 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/icon-facebook.pngbin0 -> 581 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/icon-twitter-2x.pngbin0 -> 1414 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/icon-twitter.pngbin0 -> 523 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/icon-wordpress-2x.pngbin0 -> 592 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/icon-wordpress.pngbin0 -> 666 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/kindle.pngbin0 -> 750 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/kindle@2x.pngbin0 -> 1505 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-horizontal.pngbin0 -> 2115 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-horizontal@2x.pngbin0 -> 2975 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-nocount.pngbin0 -> 1564 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-nocount@2x.pngbin0 -> 1736 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-smart.pngbin0 -> 2115 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-smart@2x.pngbin0 -> 2975 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-vertical.pngbin0 -> 2274 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin-vertical@2x.pngbin0 -> 2653 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin.pngbin0 -> 360 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/linkedin@2x.pngbin0 -> 944 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/loading.gifbin0 -> 2530 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/more.pngbin0 -> 285 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/more@2x.pngbin0 -> 798 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/pinterest.pngbin0 -> 624 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/pinterest@2x.pngbin0 -> 1310 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/pocket.pngbin0 -> 367 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/pocket@2x.pngbin0 -> 504 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/print.pngbin0 -> 209 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/print@2x.pngbin0 -> 1052 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/reddit.pngbin0 -> 881 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/reddit@2x.pngbin0 -> 1500 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/rss.pngbin0 -> 870 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/rss@2x.pngbin0 -> 1775 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/share-bg.pngbin0 -> 82 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/sharing-hidden.pngbin0 -> 213 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/sharing-hidden@2x.pngbin0 -> 106 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-digg.pngbin0 -> 793 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-digg@2x.pngbin0 -> 1147 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-facebook.pngbin0 -> 1427 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-facebook@2x.pngbin0 -> 830 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-like.pngbin0 -> 1620 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-like@2x.pngbin0 -> 3800 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-pinterest.pngbin0 -> 1235 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-pinterest@2x.pngbin0 -> 2170 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-pocket.pngbin0 -> 641 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-pocket@2x.pngbin0 -> 1272 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-reddit.pngbin0 -> 1572 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-reddit@2x.pngbin0 -> 2601 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-skype.pngbin0 -> 1688 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-skype@2x.pngbin0 -> 4019 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-stumbleupon.pngbin0 -> 552 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-stumbleupon@2x.pngbin0 -> 2072 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-tumblr.pngbin0 -> 1531 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-tumblr@2x.pngbin0 -> 4179 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-twitter.pngbin0 -> 1952 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/smart-twitter@2x.pngbin0 -> 1691 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/tumblr.pngbin0 -> 742 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/tumblr@2x.pngbin0 -> 926 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/twitter.pngbin0 -> 523 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/twitter@2x.pngbin0 -> 1302 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/wordpress.pngbin0 -> 667 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/images/wordpress@2x.pngbin0 -> 1344 bytes
-rw-r--r--plugins/jetpack/modules/sharedaddy/recaptcha.php188
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharedaddy.php289
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing-service.php955
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing-sources.php1793
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing.css755
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing.js514
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing.php638
-rw-r--r--plugins/jetpack/modules/shortcodes.php196
-rw-r--r--plugins/jetpack/modules/shortcodes/archiveorg-book.php130
-rw-r--r--plugins/jetpack/modules/shortcodes/archiveorg.php160
-rw-r--r--plugins/jetpack/modules/shortcodes/archives.php82
-rw-r--r--plugins/jetpack/modules/shortcodes/bandcamp.php243
-rw-r--r--plugins/jetpack/modules/shortcodes/brightcove.php295
-rw-r--r--plugins/jetpack/modules/shortcodes/cartodb.php21
-rw-r--r--plugins/jetpack/modules/shortcodes/class.filter-embedded-html-objects.php400
-rw-r--r--plugins/jetpack/modules/shortcodes/codepen.php11
-rw-r--r--plugins/jetpack/modules/shortcodes/crowdsignal.php610
-rw-r--r--plugins/jetpack/modules/shortcodes/css/quiz.css56
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes-print-rtl.css1
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes-print-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes-print.css36
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes-print.min.css2
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes-rtl.css1
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes.css36
-rw-r--r--plugins/jetpack/modules/shortcodes/css/recipes.min.css2
-rw-r--r--plugins/jetpack/modules/shortcodes/css/slideshow-shortcode-rtl.css145
-rw-r--r--plugins/jetpack/modules/shortcodes/css/slideshow-shortcode-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/shortcodes/css/slideshow-shortcode.css157
-rw-r--r--plugins/jetpack/modules/shortcodes/css/slideshow-shortcode.min.css2
-rw-r--r--plugins/jetpack/modules/shortcodes/css/style.css188
-rw-r--r--plugins/jetpack/modules/shortcodes/dailymotion.php357
-rw-r--r--plugins/jetpack/modules/shortcodes/facebook.php106
-rw-r--r--plugins/jetpack/modules/shortcodes/flatio.php12
-rw-r--r--plugins/jetpack/modules/shortcodes/flickr.php239
-rw-r--r--plugins/jetpack/modules/shortcodes/getty.php222
-rw-r--r--plugins/jetpack/modules/shortcodes/gist.php224
-rw-r--r--plugins/jetpack/modules/shortcodes/googleapps.php255
-rw-r--r--plugins/jetpack/modules/shortcodes/googlemaps.php132
-rw-r--r--plugins/jetpack/modules/shortcodes/googleplus.php37
-rw-r--r--plugins/jetpack/modules/shortcodes/gravatar.php163
-rw-r--r--plugins/jetpack/modules/shortcodes/houzz.php34
-rw-r--r--plugins/jetpack/modules/shortcodes/hulu.php275
-rw-r--r--plugins/jetpack/modules/shortcodes/images/collapse.pngbin0 -> 2072 bytes
-rw-r--r--plugins/jetpack/modules/shortcodes/images/expand.pngbin0 -> 2039 bytes
-rw-r--r--plugins/jetpack/modules/shortcodes/images/slide-nav.pngbin0 -> 5704 bytes
-rw-r--r--plugins/jetpack/modules/shortcodes/img/slideshow-controls-2x.pngbin0 -> 1944 bytes
-rw-r--r--plugins/jetpack/modules/shortcodes/img/slideshow-controls.pngbin0 -> 1009 bytes
-rw-r--r--plugins/jetpack/modules/shortcodes/img/slideshow-loader.gifbin0 -> 13545 bytes
-rw-r--r--plugins/jetpack/modules/shortcodes/instagram.php265
-rw-r--r--plugins/jetpack/modules/shortcodes/js/brightcove.js29
-rw-r--r--plugins/jetpack/modules/shortcodes/js/gist.js27
-rw-r--r--plugins/jetpack/modules/shortcodes/js/instagram.js25
-rw-r--r--plugins/jetpack/modules/shortcodes/js/jmpress.js2897
-rw-r--r--plugins/jetpack/modules/shortcodes/js/jquery.cycle.min.js9
-rw-r--r--plugins/jetpack/modules/shortcodes/js/main.js258
-rw-r--r--plugins/jetpack/modules/shortcodes/js/quiz.js67
-rw-r--r--plugins/jetpack/modules/shortcodes/js/recipes-printthis.js294
-rw-r--r--plugins/jetpack/modules/shortcodes/js/recipes.js16
-rw-r--r--plugins/jetpack/modules/shortcodes/js/slideshow-shortcode.js205
-rw-r--r--plugins/jetpack/modules/shortcodes/kickstarter.php80
-rw-r--r--plugins/jetpack/modules/shortcodes/mailchimp.php226
-rw-r--r--plugins/jetpack/modules/shortcodes/medium.php71
-rw-r--r--plugins/jetpack/modules/shortcodes/mixcloud.php75
-rw-r--r--plugins/jetpack/modules/shortcodes/pinterest.php50
-rw-r--r--plugins/jetpack/modules/shortcodes/polldaddy.php4
-rw-r--r--plugins/jetpack/modules/shortcodes/presentations.php465
-rw-r--r--plugins/jetpack/modules/shortcodes/quiz.php309
-rw-r--r--plugins/jetpack/modules/shortcodes/recipe.php515
-rw-r--r--plugins/jetpack/modules/shortcodes/scribd.php62
-rw-r--r--plugins/jetpack/modules/shortcodes/sitemap.php30
-rw-r--r--plugins/jetpack/modules/shortcodes/slideshare.php121
-rw-r--r--plugins/jetpack/modules/shortcodes/slideshow.php316
-rw-r--r--plugins/jetpack/modules/shortcodes/soundcloud.php327
-rw-r--r--plugins/jetpack/modules/shortcodes/spotify.php99
-rw-r--r--plugins/jetpack/modules/shortcodes/ted.php78
-rw-r--r--plugins/jetpack/modules/shortcodes/tweet.php276
-rw-r--r--plugins/jetpack/modules/shortcodes/twitchtv.php74
-rw-r--r--plugins/jetpack/modules/shortcodes/twitter-timeline.php56
-rw-r--r--plugins/jetpack/modules/shortcodes/unavailable.php81
-rw-r--r--plugins/jetpack/modules/shortcodes/untappd-menu.php69
-rw-r--r--plugins/jetpack/modules/shortcodes/upcoming-events.php36
-rw-r--r--plugins/jetpack/modules/shortcodes/ustream.php135
-rw-r--r--plugins/jetpack/modules/shortcodes/videopress.php20
-rw-r--r--plugins/jetpack/modules/shortcodes/vimeo.php301
-rw-r--r--plugins/jetpack/modules/shortcodes/vine.php68
-rw-r--r--plugins/jetpack/modules/shortcodes/vr.php148
-rw-r--r--plugins/jetpack/modules/shortcodes/wordads.php64
-rw-r--r--plugins/jetpack/modules/shortcodes/wufoo.php89
-rw-r--r--plugins/jetpack/modules/shortcodes/youtube.php396
-rw-r--r--plugins/jetpack/modules/shortlinks.php140
-rw-r--r--plugins/jetpack/modules/simple-payments/paypal-express-checkout.js248
-rw-r--r--plugins/jetpack/modules/simple-payments/simple-payments.css129
-rw-r--r--plugins/jetpack/modules/simple-payments/simple-payments.php683
-rw-r--r--plugins/jetpack/modules/site-icon.php6
-rw-r--r--plugins/jetpack/modules/site-icon/site-icon-functions.php29
-rw-r--r--plugins/jetpack/modules/sitemaps.php42
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-fallback.php146
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-image-fallback.php56
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-image.php68
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-master-fallback.php38
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-master.php44
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-news-fallback.php56
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-news.php68
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-page-fallback.php55
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-page.php67
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-video-fallback.php56
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer-video.php68
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-buffer.php325
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-builder.php1468
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-constants.php216
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-finder.php116
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-librarian.php431
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-logger.php86
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-state.php144
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemap-stylist.php783
-rw-r--r--plugins/jetpack/modules/sitemaps/sitemaps.php578
-rw-r--r--plugins/jetpack/modules/social-links.php6
-rw-r--r--plugins/jetpack/modules/sso.php1138
-rw-r--r--plugins/jetpack/modules/sso/class.jetpack-sso-helpers.php325
-rw-r--r--plugins/jetpack/modules/sso/class.jetpack-sso-notices.php203
-rw-r--r--plugins/jetpack/modules/sso/jetpack-sso-login-rtl.css177
-rw-r--r--plugins/jetpack/modules/sso/jetpack-sso-login-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/sso/jetpack-sso-login.css176
-rw-r--r--plugins/jetpack/modules/sso/jetpack-sso-login.js32
-rw-r--r--plugins/jetpack/modules/sso/jetpack-sso-login.min.css2
-rw-r--r--plugins/jetpack/modules/stats.php1751
-rw-r--r--plugins/jetpack/modules/subscriptions.php781
-rw-r--r--plugins/jetpack/modules/subscriptions/readme.md12
-rw-r--r--plugins/jetpack/modules/subscriptions/subscriptions.css29
-rw-r--r--plugins/jetpack/modules/subscriptions/views.php755
-rw-r--r--plugins/jetpack/modules/theme-tools.php70
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentyfifteen-rtl.css744
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentyfifteen.css769
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentyfifteen.php35
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentyfourteen-rtl.css370
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentyfourteen.css365
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentyfourteen.php73
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentynineteen-rtl.css1
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentynineteen.css374
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentynineteen.php126
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentyseventeen.php13
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentysixteen-rtl.css832
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentysixteen.css827
-rw-r--r--plugins/jetpack/modules/theme-tools/compat/twentysixteen.php68
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options.php137
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options/author-bio.php60
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options/blog-display.php240
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options/customizer.js217
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options/customizer.php482
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options/featured-images-fallback.php161
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options/featured-images.php84
-rw-r--r--plugins/jetpack/modules/theme-tools/content-options/post-details.php150
-rw-r--r--plugins/jetpack/modules/theme-tools/featured-content.php722
-rw-r--r--plugins/jetpack/modules/theme-tools/infinite-scroll.php50
-rw-r--r--plugins/jetpack/modules/theme-tools/js/suggest.js7
-rw-r--r--plugins/jetpack/modules/theme-tools/random-redirect.php83
-rw-r--r--plugins/jetpack/modules/theme-tools/responsive-videos.php152
-rw-r--r--plugins/jetpack/modules/theme-tools/responsive-videos/responsive-videos.css10
-rw-r--r--plugins/jetpack/modules/theme-tools/responsive-videos/responsive-videos.js63
-rw-r--r--plugins/jetpack/modules/theme-tools/responsive-videos/responsive-videos.min.js1
-rw-r--r--plugins/jetpack/modules/theme-tools/site-breadcrumbs.php79
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo.php46
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/css/site-logo-control-rtl.css12
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/css/site-logo-control-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/css/site-logo-control.css49
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/css/site-logo-control.min.css1
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/inc/class-site-logo-control.php109
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/inc/class-site-logo.php377
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/inc/compat.php44
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php176
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/js/site-logo-control.js160
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/js/site-logo-control.min.js1
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/js/site-logo-header-text.js24
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/js/site-logo-header-text.min.js1
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/js/site-logo.js46
-rw-r--r--plugins/jetpack/modules/theme-tools/site-logo/js/site-logo.min.js1
-rw-r--r--plugins/jetpack/modules/theme-tools/social-links.php252
-rw-r--r--plugins/jetpack/modules/theme-tools/social-menu.php113
-rw-r--r--plugins/jetpack/modules/theme-tools/social-menu/icon-functions.php177
-rw-r--r--plugins/jetpack/modules/theme-tools/social-menu/social-menu.css197
-rw-r--r--plugins/jetpack/modules/theme-tools/social-menu/social-menu.svg137
-rw-r--r--plugins/jetpack/modules/tiled-gallery.php36
-rw-r--r--plugins/jetpack/modules/tiled-gallery/math/class-constrained-array-rounding.php77
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery.php295
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/rtl/tiled-gallery-rtl.css96
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/carousel-container.php20
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/circle-layout.php3
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/partials/carousel-image-args.php25
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/partials/item.php65
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/rectangular-layout.php31
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/square-layout.php27
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-circle.php8
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-item.php107
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php110
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-rectangular.php223
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-rtl.css1
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-shape.php209
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-square.php70
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery.css94
-rw-r--r--plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery.js191
-rw-r--r--plugins/jetpack/modules/tonesque.php6
-rw-r--r--plugins/jetpack/modules/vaultpress.php33
-rw-r--r--plugins/jetpack/modules/verification-tools.php30
-rw-r--r--plugins/jetpack/modules/verification-tools/blog-verification-tools.php84
-rw-r--r--plugins/jetpack/modules/verification-tools/verification-tools-utils.php49
-rw-r--r--plugins/jetpack/modules/videopress.php26
-rw-r--r--plugins/jetpack/modules/videopress/class.jetpack-videopress.php340
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-ajax.php103
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-cli.php167
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php388
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-gutenberg.php169
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-options.php59
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-player.php880
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-scheduler.php197
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-video.php378
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-xmlrpc.php173
-rw-r--r--plugins/jetpack/modules/videopress/css/editor-rtl.css60
-rw-r--r--plugins/jetpack/modules/videopress/css/editor-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/videopress/css/editor.css59
-rw-r--r--plugins/jetpack/modules/videopress/css/editor.min.css2
-rw-r--r--plugins/jetpack/modules/videopress/css/videopress-editor-style-rtl.css22
-rw-r--r--plugins/jetpack/modules/videopress/css/videopress-editor-style-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/videopress/css/videopress-editor-style.css21
-rw-r--r--plugins/jetpack/modules/videopress/css/videopress-editor-style.min.css2
-rw-r--r--plugins/jetpack/modules/videopress/editor-media-view.php236
-rw-r--r--plugins/jetpack/modules/videopress/js/editor-view.js303
-rw-r--r--plugins/jetpack/modules/videopress/js/media-video-widget-extensions.js52
-rw-r--r--plugins/jetpack/modules/videopress/js/videopress-plupload.js483
-rw-r--r--plugins/jetpack/modules/videopress/js/videopress-uploader.js157
-rw-r--r--plugins/jetpack/modules/videopress/shortcode.php248
-rw-r--r--plugins/jetpack/modules/videopress/utility-functions.php692
-rw-r--r--plugins/jetpack/modules/videopress/videopress-admin-rtl.css106
-rw-r--r--plugins/jetpack/modules/videopress/videopress-admin-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/videopress/videopress-admin.css105
-rw-r--r--plugins/jetpack/modules/videopress/videopress-admin.min.css2
-rw-r--r--plugins/jetpack/modules/widget-visibility.php14
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions.php852
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions/rtl/widget-conditions-rtl.css115
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions/widget-conditions-rtl.css116
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions/widget-conditions-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions/widget-conditions.css117
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions/widget-conditions.js321
-rw-r--r--plugins/jetpack/modules/widget-visibility/widget-conditions/widget-conditions.min.css2
-rw-r--r--plugins/jetpack/modules/widgets.php91
-rw-r--r--plugins/jetpack/modules/widgets/authors.php271
-rw-r--r--plugins/jetpack/modules/widgets/authors/style.css25
-rw-r--r--plugins/jetpack/modules/widgets/blog-stats.php173
-rw-r--r--plugins/jetpack/modules/widgets/contact-info.php394
-rw-r--r--plugins/jetpack/modules/widgets/contact-info/contact-info-admin.js11
-rw-r--r--plugins/jetpack/modules/widgets/contact-info/contact-info-map.css4
-rw-r--r--plugins/jetpack/modules/widgets/customizer-controls.css6
-rw-r--r--plugins/jetpack/modules/widgets/customizer-utils.js119
-rw-r--r--plugins/jetpack/modules/widgets/eu-cookie-law.php301
-rw-r--r--plugins/jetpack/modules/widgets/eu-cookie-law/eu-cookie-law-admin.js32
-rw-r--r--plugins/jetpack/modules/widgets/eu-cookie-law/eu-cookie-law.js80
-rw-r--r--plugins/jetpack/modules/widgets/eu-cookie-law/form.php277
-rw-r--r--plugins/jetpack/modules/widgets/eu-cookie-law/style.css105
-rw-r--r--plugins/jetpack/modules/widgets/eu-cookie-law/widget.php25
-rw-r--r--plugins/jetpack/modules/widgets/facebook-likebox.php309
-rw-r--r--plugins/jetpack/modules/widgets/facebook-likebox/style.css3
-rw-r--r--plugins/jetpack/modules/widgets/flickr.php218
-rw-r--r--plugins/jetpack/modules/widgets/flickr/form.php93
-rw-r--r--plugins/jetpack/modules/widgets/flickr/style.css16
-rw-r--r--plugins/jetpack/modules/widgets/flickr/widget.php13
-rw-r--r--plugins/jetpack/modules/widgets/gallery.php464
-rw-r--r--plugins/jetpack/modules/widgets/gallery/css/admin-rtl.css12
-rw-r--r--plugins/jetpack/modules/widgets/gallery/css/admin-rtl.min.css1
-rw-r--r--plugins/jetpack/modules/widgets/gallery/css/admin.css11
-rw-r--r--plugins/jetpack/modules/widgets/gallery/css/admin.min.css2
-rw-r--r--plugins/jetpack/modules/widgets/gallery/css/rtl/admin-rtl.css13
-rw-r--r--plugins/jetpack/modules/widgets/gallery/js/admin.js236
-rw-r--r--plugins/jetpack/modules/widgets/gallery/js/gallery.js10
-rw-r--r--plugins/jetpack/modules/widgets/gallery/templates/form.php89
-rw-r--r--plugins/jetpack/modules/widgets/goodreads.php157
-rw-r--r--plugins/jetpack/modules/widgets/goodreads/css/goodreads.css48
-rw-r--r--plugins/jetpack/modules/widgets/goodreads/css/rtl/goodreads-rtl.css50
-rw-r--r--plugins/jetpack/modules/widgets/google-translate.php203
-rw-r--r--plugins/jetpack/modules/widgets/google-translate/google-translate.js32
-rw-r--r--plugins/jetpack/modules/widgets/gravatar-profile.css46
-rw-r--r--plugins/jetpack/modules/widgets/gravatar-profile.php435
-rw-r--r--plugins/jetpack/modules/widgets/image-widget.php274
-rw-r--r--plugins/jetpack/modules/widgets/image-widget/style.css13
-rw-r--r--plugins/jetpack/modules/widgets/internet-defense-league.php153
-rw-r--r--plugins/jetpack/modules/widgets/mailchimp.php103
-rw-r--r--plugins/jetpack/modules/widgets/migrate-to-core/gallery-widget.php198
-rw-r--r--plugins/jetpack/modules/widgets/migrate-to-core/image-widget.php220
-rw-r--r--plugins/jetpack/modules/widgets/milestone.php5
-rw-r--r--plugins/jetpack/modules/widgets/milestone/admin.js31
-rw-r--r--plugins/jetpack/modules/widgets/milestone/milestone.js49
-rw-r--r--plugins/jetpack/modules/widgets/milestone/milestone.php683
-rw-r--r--plugins/jetpack/modules/widgets/milestone/style-admin.css50
-rw-r--r--plugins/jetpack/modules/widgets/my-community.php297
-rw-r--r--plugins/jetpack/modules/widgets/my-community/style.css35
-rw-r--r--plugins/jetpack/modules/widgets/rsslinks-widget.php242
-rw-r--r--plugins/jetpack/modules/widgets/search.php815
-rw-r--r--plugins/jetpack/modules/widgets/search/css/search-widget-admin-ui.css87
-rw-r--r--plugins/jetpack/modules/widgets/search/css/search-widget-frontend.css66
-rw-r--r--plugins/jetpack/modules/widgets/search/js/search-widget-admin.js360
-rw-r--r--plugins/jetpack/modules/widgets/search/js/search-widget.js19
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments.php544
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments/admin-warning.php16
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments/customizer.css80
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments/customizer.js455
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments/form.php205
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments/style.css8
-rw-r--r--plugins/jetpack/modules/widgets/simple-payments/widget.php33
-rw-r--r--plugins/jetpack/modules/widgets/social-icons.php680
-rw-r--r--plugins/jetpack/modules/widgets/social-icons/social-icons-admin.css94
-rw-r--r--plugins/jetpack/modules/widgets/social-icons/social-icons-admin.js144
-rw-r--r--plugins/jetpack/modules/widgets/social-icons/social-icons.css75
-rw-r--r--plugins/jetpack/modules/widgets/social-media-icons.php346
-rw-r--r--plugins/jetpack/modules/widgets/social-media-icons/style.css49
-rw-r--r--plugins/jetpack/modules/widgets/top-posts.php674
-rw-r--r--plugins/jetpack/modules/widgets/top-posts/style.css114
-rw-r--r--plugins/jetpack/modules/widgets/twitter-timeline-admin.js35
-rw-r--r--plugins/jetpack/modules/widgets/twitter-timeline.php503
-rw-r--r--plugins/jetpack/modules/widgets/upcoming-events.php131
-rw-r--r--plugins/jetpack/modules/widgets/wordpress-post-widget.php116
-rw-r--r--plugins/jetpack/modules/widgets/wordpress-post-widget/class.jetpack-display-posts-widget-base.php843
-rw-r--r--plugins/jetpack/modules/widgets/wordpress-post-widget/class.jetpack-display-posts-widget.php274
-rw-r--r--plugins/jetpack/modules/widgets/wordpress-post-widget/style.css24
-rw-r--r--plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php399
-rw-r--r--plugins/jetpack/modules/woocommerce-analytics/wp-woocommerce-analytics.php94
-rw-r--r--plugins/jetpack/modules/wordads.php19
-rw-r--r--plugins/jetpack/modules/wordads/css/style.css63
-rw-r--r--plugins/jetpack/modules/wordads/php/admin.php49
-rw-r--r--plugins/jetpack/modules/wordads/php/api.php143
-rw-r--r--plugins/jetpack/modules/wordads/php/cron.php48
-rw-r--r--plugins/jetpack/modules/wordads/php/networks/amazon.php3
-rw-r--r--plugins/jetpack/modules/wordads/php/params.php226
-rw-r--r--plugins/jetpack/modules/wordads/php/widgets.php115
-rw-r--r--plugins/jetpack/modules/wordads/wordads.php619
-rw-r--r--plugins/jetpack/modules/wpcc.php6
-rw-r--r--plugins/jetpack/modules/wpcom-block-editor/class-jetpack-wpcom-block-editor.php337
-rw-r--r--plugins/jetpack/modules/wpgroho.js43
-rw-r--r--plugins/jetpack/readme.txt187
-rw-r--r--plugins/jetpack/require-lib.php35
-rw-r--r--plugins/jetpack/sal/class.json-api-date.php88
-rw-r--r--plugins/jetpack/sal/class.json-api-links.php283
-rw-r--r--plugins/jetpack/sal/class.json-api-metadata.php39
-rw-r--r--plugins/jetpack/sal/class.json-api-platform-jetpack.php14
-rw-r--r--plugins/jetpack/sal/class.json-api-platform.php25
-rw-r--r--plugins/jetpack/sal/class.json-api-post-base.php682
-rw-r--r--plugins/jetpack/sal/class.json-api-post-jetpack.php37
-rw-r--r--plugins/jetpack/sal/class.json-api-site-base.php647
-rw-r--r--plugins/jetpack/sal/class.json-api-site-jetpack-base.php169
-rw-r--r--plugins/jetpack/sal/class.json-api-site-jetpack.php196
-rw-r--r--plugins/jetpack/sal/class.json-api-token.php60
-rw-r--r--plugins/jetpack/scss/_utilities/_accessibility.scss30
-rw-r--r--plugins/jetpack/scss/_utilities/_grid.scss75
-rw-r--r--plugins/jetpack/scss/_utilities/mixins/_breakpoint.scss46
-rw-r--r--plugins/jetpack/scss/atoms/_animations.scss18
-rw-r--r--plugins/jetpack/scss/atoms/_buttons.scss137
-rw-r--r--plugins/jetpack/scss/atoms/colors/_colors.scss16
-rw-r--r--plugins/jetpack/scss/atoms/icons/_automatticons.scss32
-rw-r--r--plugins/jetpack/scss/atoms/typography/_functions.scss12
-rw-r--r--plugins/jetpack/scss/atoms/typography/_variables.scss31
-rw-r--r--plugins/jetpack/scss/dashboard-widget.scss14
-rw-r--r--plugins/jetpack/scss/jetpack-admin-jitm.scss417
-rw-r--r--plugins/jetpack/scss/jetpack-admin.scss15
-rw-r--r--plugins/jetpack/scss/jetpack-banners.scss4
-rw-r--r--plugins/jetpack/scss/jetpack-icons.scss26
-rw-r--r--plugins/jetpack/scss/jetpack-idc-admin-bar.scss30
-rw-r--r--plugins/jetpack/scss/jetpack-idc.scss206
-rw-r--r--plugins/jetpack/scss/molecules/_nav-horizontal.scss25
-rw-r--r--plugins/jetpack/scss/organisms/_banners.scss445
-rw-r--r--plugins/jetpack/scss/pages/_manage.scss40
-rw-r--r--plugins/jetpack/scss/pages/_protect.scss90
-rw-r--r--plugins/jetpack/scss/templates/_connection-landing.scss82
-rw-r--r--plugins/jetpack/scss/templates/_main.scss634
-rw-r--r--plugins/jetpack/scss/templates/_settings.scss367
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-actions.php485
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-defaults.php637
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-functions.php403
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-json-deflate-array-codec.php84
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-listener.php329
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-attachments.php55
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-callables.php273
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-comments.php196
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-constants.php125
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-full-sync.php477
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-import.php170
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-menus.php78
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-meta.php62
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-network-options.php116
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-options.php173
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-plugins.php289
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-posts.php431
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-protect.php23
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-stats.php28
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-terms.php114
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-themes.php612
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-updates.php321
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-users.php500
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php335
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-wp-super-cache.php79
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module.php174
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-modules.php104
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-queue.php478
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-sender.php416
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-server.php106
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-settings.php215
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-simple-codec.php24
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-users.php81
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-wp-replicastore.php820
-rw-r--r--plugins/jetpack/sync/interface.jetpack-sync-codec.php14
-rw-r--r--plugins/jetpack/sync/interface.jetpack-sync-replicastore.php140
-rw-r--r--plugins/jetpack/uninstall.php36
-rw-r--r--plugins/jetpack/views/admin/must-connect-main-blog.php16
-rw-r--r--plugins/jetpack/views/admin/network-activated-notice.php5
-rw-r--r--plugins/jetpack/views/admin/network-admin-alert.php6
-rw-r--r--plugins/jetpack/views/admin/network-admin-footer.php6
-rw-r--r--plugins/jetpack/views/admin/network-admin-header.php4
-rw-r--r--plugins/jetpack/views/admin/network-settings.php87
-rw-r--r--plugins/jetpack/wp-cli-templates/block-edit-js.mustache27
-rw-r--r--plugins/jetpack/wp-cli-templates/block-editor-js.mustache7
-rw-r--r--plugins/jetpack/wp-cli-templates/block-editor-scss.mustache5
-rw-r--r--plugins/jetpack/wp-cli-templates/block-index-js.mustache67
-rw-r--r--plugins/jetpack/wp-cli-templates/block-register-php.mustache26
-rw-r--r--plugins/jetpack/wp-cli-templates/readme.md3
-rw-r--r--plugins/jetpack/wpml-config.xml10
1726 files changed, 273019 insertions, 0 deletions
diff --git a/plugins/akismet/.htaccess b/plugins/akismet/.htaccess
new file mode 100644
index 00000000..49d72d71
--- /dev/null
+++ b/plugins/akismet/.htaccess
@@ -0,0 +1,34 @@
+# Only allow direct access to specific Web-available files.
+
+# Apache 2.2
+<IfModule !mod_authz_core.c>
+ Order Deny,Allow
+ Deny from all
+</IfModule>
+
+# Apache 2.4
+<IfModule mod_authz_core.c>
+ Require all denied
+</IfModule>
+
+# Akismet CSS and JS
+<FilesMatch "^(form\.js|akismet\.js|akismet\.css)$">
+ <IfModule !mod_authz_core.c>
+ Allow from all
+ </IfModule>
+
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
+</FilesMatch>
+
+# Akismet images
+<FilesMatch "^logo-full-2x\.png$">
+ <IfModule !mod_authz_core.c>
+ Allow from all
+ </IfModule>
+
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
+</FilesMatch> \ No newline at end of file
diff --git a/plugins/akismet/LICENSE.txt b/plugins/akismet/LICENSE.txt
new file mode 100644
index 00000000..d159169d
--- /dev/null
+++ b/plugins/akismet/LICENSE.txt
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/plugins/akismet/_inc/akismet.css b/plugins/akismet/_inc/akismet.css
new file mode 100644
index 00000000..bc56f061
--- /dev/null
+++ b/plugins/akismet/_inc/akismet.css
@@ -0,0 +1,625 @@
+.wp-admin.jetpack_page_akismet-key-config, .wp-admin.settings_page_akismet-key-config {
+ background-color:#f3f6f8;
+}
+
+#submitted-on {
+ position: relative;
+}
+#the-comment-list .author .akismet-user-comment-count {
+ display: inline;
+}
+#the-comment-list .author a span {
+ text-decoration: none;
+ color: #999;
+}
+#the-comment-list .author a span.akismet-span-link {
+ text-decoration: inherit;
+ color: inherit;
+}
+#the-comment-list .akismet_remove_url {
+ margin-left: 3px;
+ color: #999;
+ padding: 2px 3px 2px 0;
+}
+#the-comment-list .akismet_remove_url:hover {
+ color: #A7301F;
+ font-weight: bold;
+ padding: 2px 2px 2px 0;
+}
+#dashboard_recent_comments .akismet-status {
+ display: none;
+}
+.akismet-status {
+ float: right;
+}
+.akismet-status a {
+ color: #AAA;
+ font-style: italic;
+}
+table.comments td.comment p a {
+ text-decoration: underline;
+}
+table.comments td.comment p a:after {
+ content: attr(href);
+ color: #aaa;
+ display: inline-block; /* Show the URL without the link's underline extending under it. */
+ padding: 0 1ex; /* Because it's inline block, we can't just use spaces in the content: attribute to separate it from the link text. */
+}
+.mshot-arrow {
+ width: 0;
+ height: 0;
+ border-top: 10px solid transparent;
+ border-bottom: 10px solid transparent;
+ border-right: 10px solid #5C5C5C;
+ position: absolute;
+ left: -6px;
+ top: 91px;
+}
+.mshot-container {
+ background: #5C5C5C;
+ position: absolute;
+ top: -94px;
+ padding: 7px;
+ width: 450px;
+ height: 338px;
+ z-index: 20000;
+ -moz-border-radius: 6px;
+ border-radius: 6px;
+ -webkit-border-radius: 6px;
+}
+.akismet-mshot {
+ position: absolute;
+ z-index: 100;
+}
+.akismet-mshot .mshot-image {
+ margin: 0;
+ height: 338px;
+ width: 450px;
+}
+.checkforspam {
+ display: inline-block !important;
+}
+.checkforspam-progress {
+ display: none;
+}
+.checkforspam.checking .checkforspam-progress {
+ padding-left: 1ex;
+}
+.checkforspam.button-disabled .checkforspam-progress {
+ display: inline;
+}
+
+.checkforspam-spinner {
+ display: inline-block;
+ margin-top: 7px;
+}
+
+.akismet-right {
+ float: right;
+}
+
+.akismet-card .akismet-right {
+ margin: 1em 0;
+}
+
+.akismet-alert-text {
+ color: #dd3d36;
+ font-weight: bold;
+ font-size: 120%;
+ margin-top: .5rem;
+}
+.akismet-alert {
+ border: 1px solid #e5e5e5;
+ padding: 0.4em 1em 1.4em 1em;
+ border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-width: 1px;
+ border-style: solid;
+}
+
+.akismet-alert h3.akismet-key-status {
+ color: #fff;
+ margin: 1em 0 0.5em 0;
+}
+
+.akismet-alert.akismet-critical {
+ background-color: #993300;
+}
+
+.akismet-alert.akismet-active {
+ background-color: #649316;
+}
+
+.akismet-alert p.akismet-key-status {
+ font-size: 24px;
+}
+
+.akismet-alert p.akismet-description {
+ color:#fff;
+ font-size: 14px;
+ margin: 0 0;
+ font-style: normal;
+}
+
+.akismet-alert p.akismet-description a,
+.akismet-alert p.akismet-description a,
+.akismet-alert p.akismet-description a,
+.akismet-alert p.akismet-description a {
+ color: #fff;
+}
+
+.akismet-new-snapshot {
+ margin-top: 1em;
+ padding: 1em;
+ text-align: center;
+ background: #fff;
+}
+
+.akismet-new-snapshot h3 {
+ background: #f5f5f5;
+ color: #888;
+ font-size: 11px;
+ margin: 0;
+ padding: 3px;
+}
+
+.new-snapspot ul {
+ font-size: 12px;
+ width: 100%;
+}
+
+.akismet-new-snapshot ul li {
+ color: #999;
+ float: left;
+ font-size: 11px;
+ padding: 0 20px;
+ text-transform: uppercase;
+ width: 33%;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+}
+
+.akismet-new-snapshot ul li:first-child,
+.akismet-new-snapshot ul li:nth-child(2) {
+ border-right:1px dotted #ccc;
+}
+
+.akismet-new-snapshot ul li span {
+ color: #52accc;
+ display: block;
+ font-size: 32px;
+ font-weight: lighter;
+ line-height: 1.5em;
+}
+
+.akismet-settings th:first-child {
+ vertical-align: top;
+ padding-top: 15px;
+}
+
+.akismet-settings th.akismet-api-key {
+ vertical-align: middle;
+ padding-top: 0;
+}
+
+.akismet-settings input[type=text] {
+ width: 75%;
+}
+
+.akismet-settings span.akismet-note{
+ float: left;
+ padding-left: 23px;
+ font-size: 75%;
+ margin-top: -10px;
+}
+
+/**
+ * For the activation notice on the plugins page.
+ */
+
+#akismet_setup_prompt {
+ background: none;
+ border: none;
+ margin: 0;
+ padding: 0;
+ width: 100%;
+}
+
+.akismet_activate {
+ border: 1px solid #4F800D;
+ padding: 5px;
+ margin: 15px 0;
+ background: #83AF24;
+ background-image: -webkit-gradient(linear, 0% 0, 80% 100%, from(#83AF24), to(#4F800D));
+ background-image: -moz-linear-gradient(80% 100% 120deg, #4F800D, #83AF24);
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ -webkit-border-radius: 3px;
+ position: relative;
+ overflow: hidden;
+}
+
+.akismet_activate .aa_a {
+ position: absolute;
+ top: -5px;
+ right: 10px;
+ font-size: 140px;
+ color: #769F33;
+ font-family: Georgia, "Times New Roman", Times, serif;
+}
+
+.akismet_activate .aa_button {
+ font-weight: bold;
+ border: 1px solid #029DD6;
+ border-top: 1px solid #06B9FD;
+ font-size: 15px;
+ text-align: center;
+ padding: 9px 0 8px 0;
+ color: #FFF;
+ background: #029DD6;
+ background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#029DD6), to(#0079B1));
+ background-image: -moz-linear-gradient(0% 100% 90deg, #0079B1, #029DD6);
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ -webkit-border-radius: 2px;
+ width: 100%;
+ cursor: pointer;
+ margin: 0;
+}
+
+.akismet_activate .aa_button:hover {
+ text-decoration: none !important;
+ border: 1px solid #029DD6;
+ border-bottom: 1px solid #00A8EF;
+ font-size: 15px;
+ text-align: center;
+ padding: 9px 0 8px 0;
+ color: #F0F8FB;
+ background: #0079B1;
+ background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#0079B1), to(#0092BF));
+ background-image: -moz-linear-gradient(0% 100% 90deg, #0092BF, #0079B1);
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ -webkit-border-radius: 2px;
+}
+
+.akismet_activate .aa_button_border {
+ border: 1px solid #006699;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ -webkit-border-radius: 2px;
+ background: #029DD6;
+ background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#029DD6), to(#0079B1));
+ background-image: -moz-linear-gradient(0% 100% 90deg, #0079B1, #029DD6);
+}
+
+.akismet_activate .aa_button_container {
+ box-sizing: border-box;
+ display: inline-block;
+ background: #DEF1B8;
+ padding: 5px;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ -webkit-border-radius: 2px;
+ width: 266px;
+}
+
+.akismet_activate .aa_description {
+ position: absolute;
+ top: 22px;
+ left: 285px;
+ margin-left: 25px;
+ color: #E5F2B1;
+ font-size: 15px;
+}
+
+.akismet_activate .aa_description strong {
+ color: #FFF;
+ font-weight: normal;
+}
+
+@media (max-width: 550px) {
+ .akismet_activate .aa_a {
+ display: none;
+ }
+
+ .akismet_activate .aa_button_container {
+ width: 100%;
+ }
+}
+
+@media (max-width: 782px) {
+ .akismet_activate {
+ min-width: 0;
+ }
+}
+
+@media (max-width: 850px) {
+ #akismet_setup_prompt .aa_description {
+ display: none;
+ }
+
+ .akismet_activate {
+ min-width: 0;
+ }
+}
+
+.jetpack_page_akismet-key-config #wpcontent, .settings_page_akismet-key-config #wpcontent {
+ padding-left: 0;
+}
+
+.akismet-masthead {
+ background-color:#fff;
+ text-align:center;
+ box-shadow:0 1px 0 rgba(200,215,225,0.5),0 1px 2px #e9eff3
+}
+@media (max-width: 45rem) {
+ .akismet-masthead {
+ padding:0 1.25rem
+ }
+}
+
+.akismet-masthead__inside-container {
+ padding:.375rem 0;
+ margin:0 auto;
+ width:100%;
+ max-width:45rem;
+ text-align: left;
+}
+.akismet-masthead__logo-container {
+ padding:.3125rem 0 0
+}
+.akismet-masthead__logo {
+ width:10.375rem;
+ height:1.8125rem;
+}
+.akismet-masthead__logo-link {
+ display:inline-block;
+ outline:none;
+ vertical-align:middle
+}
+.akismet-masthead__logo-link:focus {
+ line-height:0;
+ box-shadow:0 0 0 2px #78dcfa
+}
+.akismet-masthead__logo-link+code {
+ margin:0 10px;
+ padding:5px 9px;
+ border-radius:2px;
+ background:#e6ecf1;
+ color:#647a88
+}
+.akismet-masthead__links {
+ display:-ms-flexbox;
+ display:flex;
+ -ms-flex-flow:row wrap;
+ flex-flow:row wrap;
+ -ms-flex:2 50%;
+ flex:2 50%;
+ -ms-flex-pack:end;
+ justify-content:flex-end;
+ margin:0
+}
+@media (max-width: 480px) {
+ .akismet-masthead__links {
+ padding-right:.625rem
+ }
+}
+.akismet-masthead__link-li {
+ margin:0;
+ padding:0
+}
+.akismet-masthead__link {
+ font-style:normal;
+ color:#0087be;
+ padding:.625rem;
+ display:inline-block
+}
+.akismet-masthead__link:visited {
+ color:#0087be
+}
+.akismet-masthead__link:active,.akismet-masthead__link:hover {
+ color:#00aadc
+}
+.akismet-masthead__link:hover {
+ text-decoration:underline
+}
+.akismet-masthead__link .dashicons {
+ display:none
+}
+@media (max-width: 480px) {
+ .akismet-masthead__link:hover,.akismet-masthead__link:active {
+ text-decoration:none
+ }
+ .akismet-masthead__link .dashicons {
+ display:block;
+ font-size:1.75rem
+ }
+ .akismet-masthead__link span+span {
+ display:none
+ }
+}
+.akismet-masthead__link-li:last-of-type .akismet-masthead__link {
+ padding-right:0
+}
+
+.akismet-lower {
+ margin: 0 auto;
+ text-align: left;
+ max-width: 45rem;
+ padding: 1.5rem;
+}
+
+.akismet-lower .notice {
+ margin-bottom: 2rem;
+}
+
+.akismet-card {
+ margin-top: 1rem;
+ margin-bottom: 0;
+ position: relative;
+ margin: 0 auto 0.625rem auto;
+ box-sizing: border-box;
+ background: white;
+ box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
+}
+
+.akismet-card:after, .akismet-card .inside:after, .akismet-masthead__logo-container:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+.akismet-card .inside {
+ padding: 1.5rem;
+ padding-top: 1rem;
+}
+
+.akismet-card .akismet-card-actions {
+ margin-top: 1rem;
+}
+
+.jetpack_page_akismet-key-config .update-nag, .settings_page_akismet-key-config .update-nag {
+ display: none;
+}
+
+.akismet-masthead .akismet-right {
+ line-height: 2.125rem;
+ font-size: 0.9rem;
+}
+
+.akismet-box {
+ box-sizing: border-box;
+ background: white;
+ border: 1px solid rgba(200, 215, 225, 0.5);
+}
+
+.akismet-box h2, .akismet-box h3 {
+ padding: 1.5rem 1.5rem .5rem 1.5rem;
+ margin: 0;
+}
+
+.akismet-box p {
+ padding: 0 1.5rem 1.5rem 1.5rem;
+ margin: 0;
+}
+
+.akismet-jetpack-email {
+ font-style: oblique;
+}
+
+.akismet-jetpack-gravatar {
+ padding: 0 0 0 1.5rem;
+ float: left;
+ margin-right: 1rem;
+ width: 54px;
+ height: 54px;
+}
+
+.akismet-box p:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+.akismet-box .akismet-right {
+ padding-right: 1.5rem;
+}
+
+.akismet-boxes .akismet-box {
+ margin-bottom: 0;
+ padding: 0;
+ margin-top: -1px;
+}
+
+.akismet-boxes .akismet-box:last-child {
+ margin-bottom: 1.5rem;
+}
+
+.akismet-boxes .akismet-box:first-child {
+ margin-top: 1.5rem;
+}
+
+.akismet-button, .akismet-button:hover, .akismet-button:visited {
+ background: white;
+ border-color: #c8d7e1;
+ border-style: solid;
+ border-width: 1px 1px 2px;
+ color: #2e4453;
+ cursor: pointer;
+ display: inline-block;
+ margin: 0;
+ outline: 0;
+ overflow: hidden;
+ font-size: 14px;
+ font-weight: 500;
+ text-overflow: ellipsis;
+ text-decoration: none;
+ vertical-align: top;
+ box-sizing: border-box;
+ font-size: 14px;
+ line-height: 21px;
+ border-radius: 4px;
+ padding: 7px 14px 9px;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+}
+
+.akismet-button:hover {
+ border-color: #a8bece;
+}
+
+.akismet-button:active {
+ border-width: 2px 1px 1px;
+}
+
+.akismet-is-primary, .akismet-is-primary:hover, .akismet-is-primary:visited {
+ background: #00aadc;
+ border-color: #0087be;
+ color: white;
+}
+
+.akismet-is-primary:hover, .akismet-is-primary:focus {
+ border-color: #005082;
+}
+
+.akismet-is-primary:hover {
+ border-color: #005082;
+}
+
+.akismet-section-header {
+ position: relative;
+ margin: 0 auto 0.625rem auto;
+ padding: 1rem;
+ box-sizing: border-box;
+ box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
+ background: #ffffff;
+ width: 100%;
+ padding-top: 0.6875rem;
+ padding-bottom: 0.6875rem;
+ display: flex;
+}
+
+.akismet-section-header__label {
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-align: center;
+ align-items: center;
+ -ms-flex-positive: 1;
+ flex-grow: 1;
+ line-height: 1.75rem;
+ position: relative;
+ font-size: 0.875rem;
+ color: #4f748e;
+}
+
+.akismet-section-header__actions {
+ line-height: 1.75rem;
+}
diff --git a/plugins/akismet/_inc/akismet.js b/plugins/akismet/_inc/akismet.js
new file mode 100644
index 00000000..6cb85e6c
--- /dev/null
+++ b/plugins/akismet/_inc/akismet.js
@@ -0,0 +1,308 @@
+jQuery( function ( $ ) {
+ var mshotRemovalTimer = null;
+ var mshotSecondTryTimer = null
+ var mshotThirdTryTimer = null
+
+ var mshotEnabledLinkSelector = 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, td.comment p a';
+
+ $('.akismet-status').each(function () {
+ var thisId = $(this).attr('commentid');
+ $(this).prependTo('#comment-' + thisId + ' .column-comment');
+ });
+ $('.akismet-user-comment-count').each(function () {
+ var thisId = $(this).attr('commentid');
+ $(this).insertAfter('#comment-' + thisId + ' .author strong:first').show();
+ });
+
+ akismet_enable_comment_author_url_removal();
+
+ $( '#the-comment-list' ).on( 'click', '.akismet_remove_url', function () {
+ var thisId = $(this).attr('commentid');
+ var data = {
+ action: 'comment_author_deurl',
+ _wpnonce: WPAkismet.comment_author_url_nonce,
+ id: thisId
+ };
+ $.ajax({
+ url: ajaxurl,
+ type: 'POST',
+ data: data,
+ beforeSend: function () {
+ // Removes "x" link
+ $("a[commentid='"+ thisId +"']").hide();
+ // Show temp status
+ $("#author_comment_url_"+ thisId).html( $( '<span/>' ).text( WPAkismet.strings['Removing...'] ) );
+ },
+ success: function (response) {
+ if (response) {
+ // Show status/undo link
+ $("#author_comment_url_"+ thisId)
+ .attr('cid', thisId)
+ .addClass('akismet_undo_link_removal')
+ .html(
+ $( '<span/>' ).text( WPAkismet.strings['URL removed'] )
+ )
+ .append( ' ' )
+ .append(
+ $( '<span/>' )
+ .text( WPAkismet.strings['(undo)'] )
+ .addClass( 'akismet-span-link' )
+ );
+ }
+ }
+ });
+
+ return false;
+ }).on( 'click', '.akismet_undo_link_removal', function () {
+ var thisId = $(this).attr('cid');
+ var thisUrl = $(this).attr('href');
+ var data = {
+ action: 'comment_author_reurl',
+ _wpnonce: WPAkismet.comment_author_url_nonce,
+ id: thisId,
+ url: thisUrl
+ };
+ $.ajax({
+ url: ajaxurl,
+ type: 'POST',
+ data: data,
+ beforeSend: function () {
+ // Show temp status
+ $("#author_comment_url_"+ thisId).html( $( '<span/>' ).text( WPAkismet.strings['Re-adding...'] ) );
+ },
+ success: function (response) {
+ if (response) {
+ // Add "x" link
+ $("a[commentid='"+ thisId +"']").show();
+ // Show link. Core strips leading http://, so let's do that too.
+ $("#author_comment_url_"+ thisId).removeClass('akismet_undo_link_removal').text( thisUrl.replace( /^http:\/\/(www\.)?/ig, '' ) );
+ }
+ }
+ });
+
+ return false;
+ });
+
+ // Show a preview image of the hovered URL. Applies to author URLs and URLs inside the comments.
+ $( '#the-comment-list' ).on( 'mouseover', mshotEnabledLinkSelector, function () {
+ clearTimeout( mshotRemovalTimer );
+
+ if ( $( '.akismet-mshot' ).length > 0 ) {
+ if ( $( '.akismet-mshot:first' ).data( 'link' ) == this ) {
+ // The preview is already showing for this link.
+ return;
+ }
+ else {
+ // A new link is being hovered, so remove the old preview.
+ $( '.akismet-mshot' ).remove();
+ }
+ }
+
+ clearTimeout( mshotSecondTryTimer );
+ clearTimeout( mshotThirdTryTimer );
+
+ var thisHref = $( this ).attr( 'href' );
+
+ var mShot = $( '<div class="akismet-mshot mshot-container"><div class="mshot-arrow"></div><img src="' + akismet_mshot_url( thisHref ) + '" width="450" height="338" class="mshot-image" /></div>' );
+ mShot.data( 'link', this );
+
+ var offset = $( this ).offset();
+
+ mShot.offset( {
+ left : Math.min( $( window ).width() - 475, offset.left + $( this ).width() + 10 ), // Keep it on the screen if the link is near the edge of the window.
+ top: offset.top + ( $( this ).height() / 2 ) - 101 // 101 = top offset of the arrow plus the top border thickness
+ } );
+
+ // These retries appear to be superfluous if .mshot-image has already loaded, but it's because mShots
+ // can return a "Generating thumbnail..." image if it doesn't have a thumbnail ready, so we need
+ // to retry to see if we can get the newly generated thumbnail.
+ mshotSecondTryTimer = setTimeout( function () {
+ mShot.find( '.mshot-image' ).attr( 'src', akismet_mshot_url( thisHref, 2 ) );
+ }, 6000 );
+
+ mshotThirdTryTimer = setTimeout( function () {
+ mShot.find( '.mshot-image' ).attr( 'src', akismet_mshot_url( thisHref, 3 ) );
+ }, 12000 );
+
+ $( 'body' ).append( mShot );
+ } ).on( 'mouseout', 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, td.comment p a', function () {
+ mshotRemovalTimer = setTimeout( function () {
+ clearTimeout( mshotSecondTryTimer );
+ clearTimeout( mshotThirdTryTimer );
+
+ $( '.akismet-mshot' ).remove();
+ }, 200 );
+ } ).on( 'mouseover', 'tr', function () {
+ // When the mouse hovers over a comment row, begin preloading mshots for any links in the comment or the comment author.
+ var linksToPreloadMshotsFor = $( this ).find( mshotEnabledLinkSelector );
+
+ linksToPreloadMshotsFor.each( function () {
+ // Don't attempt to preload an mshot for a single link twice. Browser caching should cover this, but in case of
+ // race conditions, save a flag locally when we've begun trying to preload one.
+ if ( ! $( this ).data( 'akismet-mshot-preloaded' ) ) {
+ akismet_preload_mshot( $( this ).attr( 'href' ) );
+ $( this ).data( 'akismet-mshot-preloaded', true );
+ }
+ } );
+ } );
+
+ $( '.checkforspam' ).click( function( e ) {
+ e.preventDefault();
+
+ if ( $( this ).hasClass( 'button-disabled' ) ) {
+ window.location.href = $( this ).data( 'success-url' ).replace( '__recheck_count__', 0 ).replace( '__spam_count__', 0 );
+ return;
+ }
+
+ $('.checkforspam').addClass('button-disabled').addClass( 'checking' );
+ $('.checkforspam-spinner').addClass( 'spinner' ).addClass( 'is-active' );
+
+ // Update the label on the "Check for Spam" button to use the active "Checking for Spam" language.
+ $( '.checkforspam .akismet-label' ).text( $( '.checkforspam' ).data( 'active-label' ) );
+
+ akismet_check_for_spam(0, 100);
+ });
+
+ var spam_count = 0;
+ var recheck_count = 0;
+
+ function akismet_check_for_spam(offset, limit) {
+ var check_for_spam_buttons = $( '.checkforspam' );
+
+ // We show the percentage complete down to one decimal point so even queues with 100k
+ // pending comments will show some progress pretty quickly.
+ var percentage_complete = Math.round( ( recheck_count / check_for_spam_buttons.data( 'pending-comment-count' ) ) * 1000 ) / 10;
+
+ // Update the progress counter on the "Check for Spam" button.
+ $( '.checkforspam-progress' ).text( check_for_spam_buttons.data( 'progress-label-format' ).replace( '%1$s', percentage_complete ) );
+
+ $.post(
+ ajaxurl,
+ {
+ 'action': 'akismet_recheck_queue',
+ 'offset': offset,
+ 'limit': limit
+ },
+ function(result) {
+ recheck_count += result.counts.processed;
+ spam_count += result.counts.spam;
+
+ if (result.counts.processed < limit) {
+ window.location.href = check_for_spam_buttons.data( 'success-url' ).replace( '__recheck_count__', recheck_count ).replace( '__spam_count__', spam_count );
+ }
+ else {
+ // Account for comments that were caught as spam and moved out of the queue.
+ akismet_check_for_spam(offset + limit - result.counts.spam, limit);
+ }
+ }
+ );
+ }
+
+ if ( "start_recheck" in WPAkismet && WPAkismet.start_recheck ) {
+ $( '.checkforspam' ).click();
+ }
+
+ if ( typeof MutationObserver !== 'undefined' ) {
+ // Dynamically add the "X" next the the author URL links when a comment is quick-edited.
+ var comment_list_container = document.getElementById( 'the-comment-list' );
+
+ if ( comment_list_container ) {
+ var observer = new MutationObserver( function ( mutations ) {
+ for ( var i = 0, _len = mutations.length; i < _len; i++ ) {
+ if ( mutations[i].addedNodes.length > 0 ) {
+ akismet_enable_comment_author_url_removal();
+
+ // Once we know that we'll have to check for new author links, skip the rest of the mutations.
+ break;
+ }
+ }
+ } );
+
+ observer.observe( comment_list_container, { attributes: true, childList: true, characterData: true } );
+ }
+ }
+
+ function akismet_enable_comment_author_url_removal() {
+ $( '#the-comment-list' )
+ .find( 'tr.comment, tr[id ^= "comment-"]' )
+ .find( '.column-author a[href^="http"]:first' ) // Ignore mailto: links, which would be the comment author's email.
+ .each(function () {
+ if ( $( this ).parent().find( '.akismet_remove_url' ).length > 0 ) {
+ return;
+ }
+
+ var linkHref = $(this).attr( 'href' );
+
+ // Ignore any links to the current domain, which are diagnostic tools, like the IP address link
+ // or any other links another plugin might add.
+ var currentHostParts = document.location.href.split( '/' );
+ var currentHost = currentHostParts[0] + '//' + currentHostParts[2] + '/';
+
+ if ( linkHref.indexOf( currentHost ) != 0 ) {
+ var thisCommentId = $(this).parents('tr:first').attr('id').split("-");
+
+ $(this)
+ .attr("id", "author_comment_url_"+ thisCommentId[1])
+ .after(
+ $( '<a href="#" class="akismet_remove_url">x</a>' )
+ .attr( 'commentid', thisCommentId[1] )
+ .attr( 'title', WPAkismet.strings['Remove this URL'] )
+ );
+ }
+ });
+ }
+
+ /**
+ * Generate an mShot URL if given a link URL.
+ *
+ * @param string linkUrl
+ * @param int retry If retrying a request, the number of the retry.
+ * @return string The mShot URL;
+ */
+ function akismet_mshot_url( linkUrl, retry ) {
+ var mshotUrl = '//s0.wordpress.com/mshots/v1/' + encodeURIComponent( linkUrl ) + '?w=900';
+
+ if ( retry ) {
+ mshotUrl += '&r=' + encodeURIComponent( retry );
+ }
+
+ return mshotUrl;
+ }
+
+ /**
+ * Begin loading an mShot preview of a link.
+ *
+ * @param string linkUrl
+ */
+ function akismet_preload_mshot( linkUrl ) {
+ var img = new Image();
+ img.src = akismet_mshot_url( linkUrl );
+ }
+
+ /**
+ * Sets the comment form privacy notice display to hide when one clicks Core's dismiss button on the related admin notice.
+ */
+ $( '#akismet-privacy-notice-admin-notice' ).on( 'click', '.notice-dismiss', function(){
+ $.ajax({
+ url: './options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide',
+ });
+ });
+
+ $( ".akismet-could-be-primary" ).each( function () {
+ var form = $( this ).closest( 'form' );
+
+ form.data( 'initial-state', form.serialize() );
+
+ form.on( 'change keyup', function () {
+ var self = $( this );
+ var submit_button = self.find( ".akismet-could-be-primary" );
+
+ if ( self.serialize() != self.data( 'initial-state' ) ) {
+ submit_button.addClass( "akismet-is-primary" );
+ }
+ else {
+ submit_button.removeClass( "akismet-is-primary" );
+ }
+ } );
+ } );
+});
diff --git a/plugins/akismet/_inc/form.js b/plugins/akismet/_inc/form.js
new file mode 100644
index 00000000..3a5be8af
--- /dev/null
+++ b/plugins/akismet/_inc/form.js
@@ -0,0 +1,30 @@
+var ak_js = document.getElementById( "ak_js" );
+
+if ( ! ak_js ) {
+ ak_js = document.createElement( 'input' );
+ ak_js.setAttribute( 'id', 'ak_js' );
+ ak_js.setAttribute( 'name', 'ak_js' );
+ ak_js.setAttribute( 'type', 'hidden' );
+}
+else {
+ ak_js.parentNode.removeChild( ak_js );
+}
+
+ak_js.setAttribute( 'value', ( new Date() ).getTime() );
+
+var commentForm = document.getElementById( 'commentform' );
+
+if ( commentForm ) {
+ commentForm.appendChild( ak_js );
+}
+else {
+ var replyRowContainer = document.getElementById( 'replyrow' );
+
+ if ( replyRowContainer ) {
+ var children = replyRowContainer.getElementsByTagName( 'td' );
+
+ if ( children.length > 0 ) {
+ children[0].appendChild( ak_js );
+ }
+ }
+} \ No newline at end of file
diff --git a/plugins/akismet/_inc/img/logo-full-2x.png b/plugins/akismet/_inc/img/logo-full-2x.png
new file mode 100644
index 00000000..79545854
--- /dev/null
+++ b/plugins/akismet/_inc/img/logo-full-2x.png
Binary files differ
diff --git a/plugins/akismet/akismet.php b/plugins/akismet/akismet.php
new file mode 100644
index 00000000..49608e5a
--- /dev/null
+++ b/plugins/akismet/akismet.php
@@ -0,0 +1,66 @@
+<?php
+/**
+ * @package Akismet
+ */
+/*
+Plugin Name: Akismet Anti-Spam
+Plugin URI: https://akismet.com/
+Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
+Version: 4.1.2
+Author: Automattic
+Author URI: https://automattic.com/wordpress-plugins/
+License: GPLv2 or later
+Text Domain: akismet
+*/
+
+/*
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+Copyright 2005-2015 Automattic, Inc.
+*/
+
+// Make sure we don't expose any info if called directly
+if ( !function_exists( 'add_action' ) ) {
+ echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
+ exit;
+}
+
+define( 'AKISMET_VERSION', '4.1.2' );
+define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' );
+define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
+define( 'AKISMET_DELETE_LIMIT', 100000 );
+
+register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
+register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
+
+require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
+require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
+require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' );
+
+add_action( 'init', array( 'Akismet', 'init' ) );
+
+add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );
+
+if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
+ require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
+ add_action( 'init', array( 'Akismet_Admin', 'init' ) );
+}
+
+//add wrapper class around deprecated akismet functions that are referenced elsewhere
+require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
+
+if ( defined( 'WP_CLI' ) && WP_CLI ) {
+ require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' );
+}
diff --git a/plugins/akismet/class.akismet-admin.php b/plugins/akismet/class.akismet-admin.php
new file mode 100644
index 00000000..f0766ebe
--- /dev/null
+++ b/plugins/akismet/class.akismet-admin.php
@@ -0,0 +1,1244 @@
+<?php
+
+class Akismet_Admin {
+ const NONCE = 'akismet-update-key';
+
+ private static $initiated = false;
+ private static $notices = array();
+ private static $allowed = array(
+ 'a' => array(
+ 'href' => true,
+ 'title' => true,
+ ),
+ 'b' => array(),
+ 'code' => array(),
+ 'del' => array(
+ 'datetime' => true,
+ ),
+ 'em' => array(),
+ 'i' => array(),
+ 'q' => array(
+ 'cite' => true,
+ ),
+ 'strike' => array(),
+ 'strong' => array(),
+ );
+
+ public static function init() {
+ if ( ! self::$initiated ) {
+ self::init_hooks();
+ }
+
+ if ( isset( $_POST['action'] ) && $_POST['action'] == 'enter-key' ) {
+ self::enter_api_key();
+ }
+
+ if ( ! empty( $_GET['akismet_comment_form_privacy_notice'] ) && empty( $_GET['settings-updated']) ) {
+ self::set_form_privacy_notice_option( $_GET['akismet_comment_form_privacy_notice'] );
+ }
+ }
+
+ public static function init_hooks() {
+ // The standalone stats page was removed in 3.0 for an all-in-one config and stats page.
+ // Redirect any links that might have been bookmarked or in browser history.
+ if ( isset( $_GET['page'] ) && 'akismet-stats-display' == $_GET['page'] ) {
+ wp_safe_redirect( esc_url_raw( self::get_page_url( 'stats' ) ), 301 );
+ die;
+ }
+
+ self::$initiated = true;
+
+ add_action( 'admin_init', array( 'Akismet_Admin', 'admin_init' ) );
+ add_action( 'admin_menu', array( 'Akismet_Admin', 'admin_menu' ), 5 ); # Priority 5, so it's called before Jetpack's admin_menu.
+ add_action( 'admin_notices', array( 'Akismet_Admin', 'display_notice' ) );
+ add_action( 'admin_enqueue_scripts', array( 'Akismet_Admin', 'load_resources' ) );
+ add_action( 'activity_box_end', array( 'Akismet_Admin', 'dashboard_stats' ) );
+ add_action( 'rightnow_end', array( 'Akismet_Admin', 'rightnow_stats' ) );
+ add_action( 'manage_comments_nav', array( 'Akismet_Admin', 'check_for_spam_button' ) );
+ add_action( 'admin_action_akismet_recheck_queue', array( 'Akismet_Admin', 'recheck_queue' ) );
+ add_action( 'wp_ajax_akismet_recheck_queue', array( 'Akismet_Admin', 'recheck_queue' ) );
+ add_action( 'wp_ajax_comment_author_deurl', array( 'Akismet_Admin', 'remove_comment_author_url' ) );
+ add_action( 'wp_ajax_comment_author_reurl', array( 'Akismet_Admin', 'add_comment_author_url' ) );
+ add_action( 'jetpack_auto_activate_akismet', array( 'Akismet_Admin', 'connect_jetpack_user' ) );
+
+ add_filter( 'plugin_action_links', array( 'Akismet_Admin', 'plugin_action_links' ), 10, 2 );
+ add_filter( 'comment_row_actions', array( 'Akismet_Admin', 'comment_row_action' ), 10, 2 );
+
+ add_filter( 'plugin_action_links_'.plugin_basename( plugin_dir_path( __FILE__ ) . 'akismet.php'), array( 'Akismet_Admin', 'admin_plugin_settings_link' ) );
+
+ add_filter( 'wxr_export_skip_commentmeta', array( 'Akismet_Admin', 'exclude_commentmeta_from_export' ), 10, 3 );
+
+ add_filter( 'all_plugins', array( 'Akismet_Admin', 'modify_plugin_description' ) );
+
+ if ( class_exists( 'Jetpack' ) ) {
+ add_filter( 'akismet_comment_form_privacy_notice_url_display', array( 'Akismet_Admin', 'jetpack_comment_form_privacy_notice_url' ) );
+ add_filter( 'akismet_comment_form_privacy_notice_url_hide', array( 'Akismet_Admin', 'jetpack_comment_form_privacy_notice_url' ) );
+ }
+
+ // priority=1 because we need ours to run before core's comment anonymizer runs, and that's registered at priority=10
+ add_filter( 'wp_privacy_personal_data_erasers', array( 'Akismet_Admin', 'register_personal_data_eraser' ), 1 );
+ }
+
+ public static function admin_init() {
+ load_plugin_textdomain( 'akismet' );
+ add_meta_box( 'akismet-status', __('Comment History', 'akismet'), array( 'Akismet_Admin', 'comment_status_meta_box' ), 'comment', 'normal' );
+
+ if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
+ wp_add_privacy_policy_content(
+ __( 'Akismet', 'akismet' ),
+ __( 'We collect information about visitors who comment on Sites that use our Akismet anti-spam service. The information we collect depends on how the User sets up Akismet for the Site, but typically includes the commenter\'s IP address, user agent, referrer, and Site URL (along with other information directly provided by the commenter such as their name, username, email address, and the comment itself).', 'akismet' )
+ );
+ }
+ }
+
+ public static function admin_menu() {
+ if ( class_exists( 'Jetpack' ) )
+ add_action( 'jetpack_admin_menu', array( 'Akismet_Admin', 'load_menu' ) );
+ else
+ self::load_menu();
+ }
+
+ public static function admin_head() {
+ if ( !current_user_can( 'manage_options' ) )
+ return;
+ }
+
+ public static function admin_plugin_settings_link( $links ) {
+ $settings_link = '<a href="'.esc_url( self::get_page_url() ).'">'.__('Settings', 'akismet').'</a>';
+ array_unshift( $links, $settings_link );
+ return $links;
+ }
+
+ public static function load_menu() {
+ if ( class_exists( 'Jetpack' ) ) {
+ $hook = add_submenu_page( 'jetpack', __( 'Akismet Anti-Spam' , 'akismet'), __( 'Akismet Anti-Spam' , 'akismet'), 'manage_options', 'akismet-key-config', array( 'Akismet_Admin', 'display_page' ) );
+ }
+ else {
+ $hook = add_options_page( __('Akismet Anti-Spam', 'akismet'), __('Akismet Anti-Spam', 'akismet'), 'manage_options', 'akismet-key-config', array( 'Akismet_Admin', 'display_page' ) );
+ }
+
+ if ( $hook ) {
+ add_action( "load-$hook", array( 'Akismet_Admin', 'admin_help' ) );
+ }
+ }
+
+ public static function load_resources() {
+ global $hook_suffix;
+
+ if ( in_array( $hook_suffix, apply_filters( 'akismet_admin_page_hook_suffixes', array(
+ 'index.php', # dashboard
+ 'edit-comments.php',
+ 'comment.php',
+ 'post.php',
+ 'settings_page_akismet-key-config',
+ 'jetpack_page_akismet-key-config',
+ 'plugins.php',
+ ) ) ) ) {
+ wp_register_style( 'akismet.css', plugin_dir_url( __FILE__ ) . '_inc/akismet.css', array(), AKISMET_VERSION );
+ wp_enqueue_style( 'akismet.css');
+
+ wp_register_script( 'akismet.js', plugin_dir_url( __FILE__ ) . '_inc/akismet.js', array('jquery'), AKISMET_VERSION );
+ wp_enqueue_script( 'akismet.js' );
+
+ $inline_js = array(
+ 'comment_author_url_nonce' => wp_create_nonce( 'comment_author_url_nonce' ),
+ 'strings' => array(
+ 'Remove this URL' => __( 'Remove this URL' , 'akismet'),
+ 'Removing...' => __( 'Removing...' , 'akismet'),
+ 'URL removed' => __( 'URL removed' , 'akismet'),
+ '(undo)' => __( '(undo)' , 'akismet'),
+ 'Re-adding...' => __( 'Re-adding...' , 'akismet'),
+ )
+ );
+
+ if ( isset( $_GET['akismet_recheck'] ) && wp_verify_nonce( $_GET['akismet_recheck'], 'akismet_recheck' ) ) {
+ $inline_js['start_recheck'] = true;
+ }
+
+ wp_localize_script( 'akismet.js', 'WPAkismet', $inline_js );
+ }
+ }
+
+ /**
+ * Add help to the Akismet page
+ *
+ * @return false if not the Akismet page
+ */
+ public static function admin_help() {
+ $current_screen = get_current_screen();
+
+ // Screen Content
+ if ( current_user_can( 'manage_options' ) ) {
+ if ( !Akismet::get_api_key() || ( isset( $_GET['view'] ) && $_GET['view'] == 'start' ) ) {
+ //setup page
+ $current_screen->add_help_tab(
+ array(
+ 'id' => 'overview',
+ 'title' => __( 'Overview' , 'akismet'),
+ 'content' =>
+ '<p><strong>' . esc_html__( 'Akismet Setup' , 'akismet') . '</strong></p>' .
+ '<p>' . esc_html__( 'Akismet filters out spam, so you can focus on more important things.' , 'akismet') . '</p>' .
+ '<p>' . esc_html__( 'On this page, you are able to set up the Akismet plugin.' , 'akismet') . '</p>',
+ )
+ );
+
+ $current_screen->add_help_tab(
+ array(
+ 'id' => 'setup-signup',
+ 'title' => __( 'New to Akismet' , 'akismet'),
+ 'content' =>
+ '<p><strong>' . esc_html__( 'Akismet Setup' , 'akismet') . '</strong></p>' .
+ '<p>' . esc_html__( 'You need to enter an API key to activate the Akismet service on your site.' , 'akismet') . '</p>' .
+ '<p>' . sprintf( __( 'Sign up for an account on %s to get an API Key.' , 'akismet'), '<a href="https://akismet.com/plugin-signup/" target="_blank">Akismet.com</a>' ) . '</p>',
+ )
+ );
+
+ $current_screen->add_help_tab(
+ array(
+ 'id' => 'setup-manual',
+ 'title' => __( 'Enter an API Key' , 'akismet'),
+ 'content' =>
+ '<p><strong>' . esc_html__( 'Akismet Setup' , 'akismet') . '</strong></p>' .
+ '<p>' . esc_html__( 'If you already have an API key' , 'akismet') . '</p>' .
+ '<ol>' .
+ '<li>' . esc_html__( 'Copy and paste the API key into the text field.' , 'akismet') . '</li>' .
+ '<li>' . esc_html__( 'Click the Use this Key button.' , 'akismet') . '</li>' .
+ '</ol>',
+ )
+ );
+ }
+ elseif ( isset( $_GET['view'] ) && $_GET['view'] == 'stats' ) {
+ //stats page
+ $current_screen->add_help_tab(
+ array(
+ 'id' => 'overview',
+ 'title' => __( 'Overview' , 'akismet'),
+ 'content' =>
+ '<p><strong>' . esc_html__( 'Akismet Stats' , 'akismet') . '</strong></p>' .
+ '<p>' . esc_html__( 'Akismet filters out spam, so you can focus on more important things.' , 'akismet') . '</p>' .
+ '<p>' . esc_html__( 'On this page, you are able to view stats on spam filtered on your site.' , 'akismet') . '</p>',
+ )
+ );
+ }
+ else {
+ //configuration page
+ $current_screen->add_help_tab(
+ array(
+ 'id' => 'overview',
+ 'title' => __( 'Overview' , 'akismet'),
+ 'content' =>
+ '<p><strong>' . esc_html__( 'Akismet Configuration' , 'akismet') . '</strong></p>' .
+ '<p>' . esc_html__( 'Akismet filters out spam, so you can focus on more important things.' , 'akismet') . '</p>' .
+ '<p>' . esc_html__( 'On this page, you are able to update your Akismet settings and view spam stats.' , 'akismet') . '</p>',
+ )
+ );
+
+ $current_screen->add_help_tab(
+ array(
+ 'id' => 'settings',
+ 'title' => __( 'Settings' , 'akismet'),
+ 'content' =>
+ '<p><strong>' . esc_html__( 'Akismet Configuration' , 'akismet') . '</strong></p>' .
+ ( Akismet::predefined_api_key() ? '' : '<p><strong>' . esc_html__( 'API Key' , 'akismet') . '</strong> - ' . esc_html__( 'Enter/remove an API key.' , 'akismet') . '</p>' ) .
+ '<p><strong>' . esc_html__( 'Comments' , 'akismet') . '</strong> - ' . esc_html__( 'Show the number of approved comments beside each comment author in the comments list page.' , 'akismet') . '</p>' .
+ '<p><strong>' . esc_html__( 'Strictness' , 'akismet') . '</strong> - ' . esc_html__( 'Choose to either discard the worst spam automatically or to always put all spam in spam folder.' , 'akismet') . '</p>',
+ )
+ );
+
+ if ( ! Akismet::predefined_api_key() ) {
+ $current_screen->add_help_tab(
+ array(
+ 'id' => 'account',
+ 'title' => __( 'Account' , 'akismet'),
+ 'content' =>
+ '<p><strong>' . esc_html__( 'Akismet Configuration' , 'akismet') . '</strong></p>' .
+ '<p><strong>' . esc_html__( 'Subscription Type' , 'akismet') . '</strong> - ' . esc_html__( 'The Akismet subscription plan' , 'akismet') . '</p>' .
+ '<p><strong>' . esc_html__( 'Status' , 'akismet') . '</strong> - ' . esc_html__( 'The subscription status - active, cancelled or suspended' , 'akismet') . '</p>',
+ )
+ );
+ }
+ }
+ }
+
+ // Help Sidebar
+ $current_screen->set_help_sidebar(
+ '<p><strong>' . esc_html__( 'For more information:' , 'akismet') . '</strong></p>' .
+ '<p><a href="https://akismet.com/faq/" target="_blank">' . esc_html__( 'Akismet FAQ' , 'akismet') . '</a></p>' .
+ '<p><a href="https://akismet.com/support/" target="_blank">' . esc_html__( 'Akismet Support' , 'akismet') . '</a></p>'
+ );
+ }
+
+ public static function enter_api_key() {
+ if ( ! current_user_can( 'manage_options' ) ) {
+ die( __( 'Cheatin&#8217; uh?', 'akismet' ) );
+ }
+
+ if ( !wp_verify_nonce( $_POST['_wpnonce'], self::NONCE ) )
+ return false;
+
+ foreach( array( 'akismet_strictness', 'akismet_show_user_comments_approved' ) as $option ) {
+ update_option( $option, isset( $_POST[$option] ) && (int) $_POST[$option] == 1 ? '1' : '0' );
+ }
+
+ if ( ! empty( $_POST['akismet_comment_form_privacy_notice'] ) ) {
+ self::set_form_privacy_notice_option( $_POST['akismet_comment_form_privacy_notice'] );
+ } else {
+ self::set_form_privacy_notice_option( 'hide' );
+ }
+
+ if ( Akismet::predefined_api_key() ) {
+ return false; //shouldn't have option to save key if already defined
+ }
+
+ $new_key = preg_replace( '/[^a-f0-9]/i', '', $_POST['key'] );
+ $old_key = Akismet::get_api_key();
+
+ if ( empty( $new_key ) ) {
+ if ( !empty( $old_key ) ) {
+ delete_option( 'wordpress_api_key' );
+ self::$notices[] = 'new-key-empty';
+ }
+ }
+ elseif ( $new_key != $old_key ) {
+ self::save_key( $new_key );
+ }
+
+ return true;
+ }
+
+ public static function save_key( $api_key ) {
+ $key_status = Akismet::verify_key( $api_key );
+
+ if ( $key_status == 'valid' ) {
+ $akismet_user = self::get_akismet_user( $api_key );
+
+ if ( $akismet_user ) {
+ if ( in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub' ) ) )
+ update_option( 'wordpress_api_key', $api_key );
+
+ if ( $akismet_user->status == 'active' )
+ self::$notices['status'] = 'new-key-valid';
+ elseif ( $akismet_user->status == 'notice' )
+ self::$notices['status'] = $akismet_user;
+ else
+ self::$notices['status'] = $akismet_user->status;
+ }
+ else
+ self::$notices['status'] = 'new-key-invalid';
+ }
+ elseif ( in_array( $key_status, array( 'invalid', 'failed' ) ) )
+ self::$notices['status'] = 'new-key-'.$key_status;
+ }
+
+ public static function dashboard_stats() {
+ if ( did_action( 'rightnow_end' ) ) {
+ return; // We already displayed this info in the "Right Now" section
+ }
+
+ if ( !$count = get_option('akismet_spam_count') )
+ return;
+
+ global $submenu;
+
+ echo '<h3>' . esc_html( _x( 'Spam', 'comments' , 'akismet') ) . '</h3>';
+
+ echo '<p>'.sprintf( _n(
+ '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comment</a>.',
+ '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.',
+ $count
+ , 'akismet'), 'https://akismet.com/wordpress/', esc_url( add_query_arg( array( 'page' => 'akismet-admin' ), admin_url( isset( $submenu['edit-comments.php'] ) ? 'edit-comments.php' : 'edit.php' ) ) ), number_format_i18n($count) ).'</p>';
+ }
+
+ // WP 2.5+
+ public static function rightnow_stats() {
+ if ( $count = get_option('akismet_spam_count') ) {
+ $intro = sprintf( _n(
+ '<a href="%1$s">Akismet</a> has protected your site from %2$s spam comment already. ',
+ '<a href="%1$s">Akismet</a> has protected your site from %2$s spam comments already. ',
+ $count
+ , 'akismet'), 'https://akismet.com/wordpress/', number_format_i18n( $count ) );
+ } else {
+ $intro = sprintf( __('<a href="%s">Akismet</a> blocks spam from getting to your blog. ', 'akismet'), 'https://akismet.com/wordpress/' );
+ }
+
+ $link = add_query_arg( array( 'comment_status' => 'spam' ), admin_url( 'edit-comments.php' ) );
+
+ if ( $queue_count = self::get_spam_count() ) {
+ $queue_text = sprintf( _n(
+ 'There&#8217;s <a href="%2$s">%1$s comment</a> in your spam queue right now.',
+ 'There are <a href="%2$s">%1$s comments</a> in your spam queue right now.',
+ $queue_count
+ , 'akismet'), number_format_i18n( $queue_count ), esc_url( $link ) );
+ } else {
+ $queue_text = sprintf( __( "There&#8217;s nothing in your <a href='%s'>spam queue</a> at the moment." , 'akismet'), esc_url( $link ) );
+ }
+
+ $text = $intro . '<br />' . $queue_text;
+ echo "<p class='akismet-right-now'>$text</p>\n";
+ }
+
+ public static function check_for_spam_button( $comment_status ) {
+ // The "Check for Spam" button should only appear when the page might be showing
+ // a comment with comment_approved=0, which means an un-trashed, un-spammed,
+ // not-yet-moderated comment.
+ if ( 'all' != $comment_status && 'moderated' != $comment_status ) {
+ return;
+ }
+
+ $link = add_query_arg( array( 'action' => 'akismet_recheck_queue' ), admin_url( 'admin.php' ) );
+
+ $comments_count = wp_count_comments();
+
+ echo '</div>';
+ echo '<div class="alignleft actions">';
+ echo '<a
+ class="button-secondary checkforspam' . ( $comments_count->moderated == 0 ? ' button-disabled' : '' ) . '"
+ href="' . esc_url( $link ) . '"
+ data-active-label="' . esc_attr( __( 'Checking for Spam', 'akismet' ) ) . '"
+ data-progress-label-format="' . esc_attr( __( '(%1$s%)', 'akismet' ) ) . '"
+ data-success-url="' . esc_attr( remove_query_arg( 'akismet_recheck', add_query_arg( array( 'akismet_recheck_complete' => 1, 'recheck_count' => urlencode( '__recheck_count__' ), 'spam_count' => urlencode( '__spam_count__' ) ) ) ) ) . '"
+ data-pending-comment-count="' . esc_attr( $comments_count->moderated ) . '"
+ >';
+ echo '<span class="akismet-label">' . esc_html__('Check for Spam', 'akismet') . '</span>';
+ echo '<span class="checkforspam-progress"></span>';
+ echo '</a>';
+ echo '<span class="checkforspam-spinner"></span>';
+
+ }
+
+ public static function recheck_queue() {
+ global $wpdb;
+
+ Akismet::fix_scheduled_recheck();
+
+ if ( ! ( isset( $_GET['recheckqueue'] ) || ( isset( $_REQUEST['action'] ) && 'akismet_recheck_queue' == $_REQUEST['action'] ) ) ) {
+ return;
+ }
+
+ $result_counts = self::recheck_queue_portion( empty( $_POST['offset'] ) ? 0 : $_POST['offset'], empty( $_POST['limit'] ) ? 100 : $_POST['limit'] );
+
+ if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
+ wp_send_json( array(
+ 'counts' => $result_counts,
+ ));
+ }
+ else {
+ $redirect_to = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : admin_url( 'edit-comments.php' );
+ wp_safe_redirect( $redirect_to );
+ exit;
+ }
+ }
+
+ public static function recheck_queue_portion( $start = 0, $limit = 100 ) {
+ global $wpdb;
+
+ $paginate = '';
+
+ if ( $limit <= 0 ) {
+ $limit = 100;
+ }
+
+ if ( $start < 0 ) {
+ $start = 0;
+ }
+
+ $moderation = $wpdb->get_col( $wpdb->prepare( "SELECT * FROM {$wpdb->comments} WHERE comment_approved = '0' LIMIT %d OFFSET %d", $limit, $start ) );
+
+ $result_counts = array(
+ 'processed' => count( $moderation ),
+ 'spam' => 0,
+ 'ham' => 0,
+ 'error' => 0,
+ );
+
+ foreach ( $moderation as $comment_id ) {
+ $api_response = Akismet::recheck_comment( $comment_id, 'recheck_queue' );
+
+ if ( 'true' === $api_response ) {
+ ++$result_counts['spam'];
+ }
+ elseif ( 'false' === $api_response ) {
+ ++$result_counts['ham'];
+ }
+ else {
+ ++$result_counts['error'];
+ }
+ }
+
+ return $result_counts;
+ }
+
+ // Adds an 'x' link next to author URLs, clicking will remove the author URL and show an undo link
+ public static function remove_comment_author_url() {
+ if ( !empty( $_POST['id'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
+ $comment_id = intval( $_POST['id'] );
+ $comment = get_comment( $comment_id, ARRAY_A );
+ if ( $comment && current_user_can( 'edit_comment', $comment['comment_ID'] ) ) {
+ $comment['comment_author_url'] = '';
+ do_action( 'comment_remove_author_url' );
+ print( wp_update_comment( $comment ) );
+ die();
+ }
+ }
+ }
+
+ public static function add_comment_author_url() {
+ if ( !empty( $_POST['id'] ) && !empty( $_POST['url'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
+ $comment_id = intval( $_POST['id'] );
+ $comment = get_comment( $comment_id, ARRAY_A );
+ if ( $comment && current_user_can( 'edit_comment', $comment['comment_ID'] ) ) {
+ $comment['comment_author_url'] = esc_url( $_POST['url'] );
+ do_action( 'comment_add_author_url' );
+ print( wp_update_comment( $comment ) );
+ die();
+ }
+ }
+ }
+
+ public static function comment_row_action( $a, $comment ) {
+ $akismet_result = get_comment_meta( $comment->comment_ID, 'akismet_result', true );
+ $akismet_error = get_comment_meta( $comment->comment_ID, 'akismet_error', true );
+ $user_result = get_comment_meta( $comment->comment_ID, 'akismet_user_result', true);
+ $comment_status = wp_get_comment_status( $comment->comment_ID );
+ $desc = null;
+ if ( $akismet_error ) {
+ $desc = __( 'Awaiting spam check' , 'akismet');
+ } elseif ( !$user_result || $user_result == $akismet_result ) {
+ // Show the original Akismet result if the user hasn't overridden it, or if their decision was the same
+ if ( $akismet_result == 'true' && $comment_status != 'spam' && $comment_status != 'trash' )
+ $desc = __( 'Flagged as spam by Akismet' , 'akismet');
+ elseif ( $akismet_result == 'false' && $comment_status == 'spam' )
+ $desc = __( 'Cleared by Akismet' , 'akismet');
+ } else {
+ $who = get_comment_meta( $comment->comment_ID, 'akismet_user', true );
+ if ( $user_result == 'true' )
+ $desc = sprintf( __('Flagged as spam by %s', 'akismet'), $who );
+ else
+ $desc = sprintf( __('Un-spammed by %s', 'akismet'), $who );
+ }
+
+ // add a History item to the hover links, just after Edit
+ if ( $akismet_result ) {
+ $b = array();
+ foreach ( $a as $k => $item ) {
+ $b[ $k ] = $item;
+ if (
+ $k == 'edit'
+ || $k == 'unspam'
+ ) {
+ $b['history'] = '<a href="comment.php?action=editcomment&amp;c='.$comment->comment_ID.'#akismet-status" title="'. esc_attr__( 'View comment history' , 'akismet') . '"> '. esc_html__('History', 'akismet') . '</a>';
+ }
+ }
+
+ $a = $b;
+ }
+
+ if ( $desc )
+ echo '<span class="akismet-status" commentid="'.$comment->comment_ID.'"><a href="comment.php?action=editcomment&amp;c='.$comment->comment_ID.'#akismet-status" title="' . esc_attr__( 'View comment history' , 'akismet') . '">'.esc_html( $desc ).'</a></span>';
+
+ $show_user_comments_option = get_option( 'akismet_show_user_comments_approved' );
+
+ if ( $show_user_comments_option === false ) {
+ // Default to active if the user hasn't made a decision.
+ $show_user_comments_option = '1';
+ }
+
+ $show_user_comments = apply_filters( 'akismet_show_user_comments_approved', $show_user_comments_option );
+ $show_user_comments = $show_user_comments === 'false' ? false : $show_user_comments; //option used to be saved as 'false' / 'true'
+
+ if ( $show_user_comments ) {
+ $comment_count = Akismet::get_user_comments_approved( $comment->user_id, $comment->comment_author_email, $comment->comment_author, $comment->comment_author_url );
+ $comment_count = intval( $comment_count );
+ echo '<span class="akismet-user-comment-count" commentid="'.$comment->comment_ID.'" style="display:none;"><br><span class="akismet-user-comment-counts">'. sprintf( esc_html( _n( '%s approved', '%s approved', $comment_count , 'akismet') ), number_format_i18n( $comment_count ) ) . '</span></span>';
+ }
+
+ return $a;
+ }
+
+ public static function comment_status_meta_box( $comment ) {
+ $history = Akismet::get_comment_history( $comment->comment_ID );
+
+ if ( $history ) {
+ echo '<div class="akismet-history" style="margin: 13px;">';
+
+ foreach ( $history as $row ) {
+ $time = date( 'D d M Y @ h:i:m a', $row['time'] ) . ' GMT';
+
+ $message = '';
+
+ if ( ! empty( $row['message'] ) ) {
+ // Old versions of Akismet stored the message as a literal string in the commentmeta.
+ // New versions don't do that for two reasons:
+ // 1) Save space.
+ // 2) The message can be translated into the current language of the blog, not stuck
+ // in the language of the blog when the comment was made.
+ $message = $row['message'];
+ }
+
+ // If possible, use a current translation.
+ switch ( $row['event'] ) {
+ case 'recheck-spam';
+ $message = __( 'Akismet re-checked and caught this comment as spam.', 'akismet' );
+ break;
+ case 'check-spam':
+ $message = __( 'Akismet caught this comment as spam.', 'akismet' );
+ break;
+ case 'recheck-ham':
+ $message = __( 'Akismet re-checked and cleared this comment.', 'akismet' );
+ break;
+ case 'check-ham':
+ $message = __( 'Akismet cleared this comment.', 'akismet' );
+ break;
+ case 'wp-blacklisted':
+ $message = __( 'Comment was caught by wp_blacklist_check.', 'akismet' );
+ break;
+ case 'report-spam':
+ if ( isset( $row['user'] ) ) {
+ $message = sprintf( __( '%s reported this comment as spam.', 'akismet' ), $row['user'] );
+ }
+ else if ( ! $message ) {
+ $message = __( 'This comment was reported as spam.', 'akismet' );
+ }
+ break;
+ case 'report-ham':
+ if ( isset( $row['user'] ) ) {
+ $message = sprintf( __( '%s reported this comment as not spam.', 'akismet' ), $row['user'] );
+ }
+ else if ( ! $message ) {
+ $message = __( 'This comment was reported as not spam.', 'akismet' );
+ }
+ break;
+ case 'cron-retry-spam':
+ $message = __( 'Akismet caught this comment as spam during an automatic retry.' , 'akismet');
+ break;
+ case 'cron-retry-ham':
+ $message = __( 'Akismet cleared this comment during an automatic retry.', 'akismet');
+ break;
+ case 'check-error':
+ if ( isset( $row['meta'], $row['meta']['response'] ) ) {
+ $message = sprintf( __( 'Akismet was unable to check this comment (response: %s) but will automatically retry later.', 'akismet'), $row['meta']['response'] );
+ }
+ break;
+ case 'recheck-error':
+ if ( isset( $row['meta'], $row['meta']['response'] ) ) {
+ $message = sprintf( __( 'Akismet was unable to recheck this comment (response: %s).', 'akismet'), $row['meta']['response'] );
+ }
+ break;
+ default:
+ if ( preg_match( '/^status-changed/', $row['event'] ) ) {
+ // Half of these used to be saved without the dash after 'status-changed'.
+ // See https://plugins.trac.wordpress.org/changeset/1150658/akismet/trunk
+ $new_status = preg_replace( '/^status-changed-?/', '', $row['event'] );
+ $message = sprintf( __( 'Comment status was changed to %s', 'akismet' ), $new_status );
+ }
+ else if ( preg_match( '/^status-/', $row['event'] ) ) {
+ $new_status = preg_replace( '/^status-/', '', $row['event'] );
+
+ if ( isset( $row['user'] ) ) {
+ $message = sprintf( __( '%1$s changed the comment status to %2$s.', 'akismet' ), $row['user'], $new_status );
+ }
+ }
+ break;
+
+ }
+
+ echo '<div style="margin-bottom: 13px;">';
+ echo '<span style="color: #999;" alt="' . $time . '" title="' . $time . '">' . sprintf( esc_html__('%s ago', 'akismet'), human_time_diff( $row['time'] ) ) . '</span>';
+ echo ' - ';
+ echo esc_html( $message );
+ echo '</div>';
+ }
+
+ echo '</div>';
+ }
+ }
+
+ public static function plugin_action_links( $links, $file ) {
+ if ( $file == plugin_basename( plugin_dir_url( __FILE__ ) . '/akismet.php' ) ) {
+ $links[] = '<a href="' . esc_url( self::get_page_url() ) . '">'.esc_html__( 'Settings' , 'akismet').'</a>';
+ }
+
+ return $links;
+ }
+
+ // Total spam in queue
+ // get_option( 'akismet_spam_count' ) is the total caught ever
+ public static function get_spam_count( $type = false ) {
+ global $wpdb;
+
+ if ( !$type ) { // total
+ $count = wp_cache_get( 'akismet_spam_count', 'widget' );
+ if ( false === $count ) {
+ $count = wp_count_comments();
+ $count = $count->spam;
+ wp_cache_set( 'akismet_spam_count', $count, 'widget', 3600 );
+ }
+ return $count;
+ } elseif ( 'comments' == $type || 'comment' == $type ) { // comments
+ $type = '';
+ }
+
+ return (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(comment_ID) FROM {$wpdb->comments} WHERE comment_approved = 'spam' AND comment_type = %s", $type ) );
+ }
+
+ // Check connectivity between the WordPress blog and Akismet's servers.
+ // Returns an associative array of server IP addresses, where the key is the IP address, and value is true (available) or false (unable to connect).
+ public static function check_server_ip_connectivity() {
+
+ $servers = $ips = array();
+
+ // Some web hosts may disable this function
+ if ( function_exists('gethostbynamel') ) {
+
+ $ips = gethostbynamel( 'rest.akismet.com' );
+ if ( $ips && is_array($ips) && count($ips) ) {
+ $api_key = Akismet::get_api_key();
+
+ foreach ( $ips as $ip ) {
+ $response = Akismet::verify_key( $api_key, $ip );
+ // even if the key is invalid, at least we know we have connectivity
+ if ( $response == 'valid' || $response == 'invalid' )
+ $servers[$ip] = 'connected';
+ else
+ $servers[$ip] = $response ? $response : 'unable to connect';
+ }
+ }
+ }
+
+ return $servers;
+ }
+
+ // Simpler connectivity check
+ public static function check_server_connectivity($cache_timeout = 86400) {
+
+ $debug = array();
+ $debug[ 'PHP_VERSION' ] = PHP_VERSION;
+ $debug[ 'WORDPRESS_VERSION' ] = $GLOBALS['wp_version'];
+ $debug[ 'AKISMET_VERSION' ] = AKISMET_VERSION;
+ $debug[ 'AKISMET__PLUGIN_DIR' ] = AKISMET__PLUGIN_DIR;
+ $debug[ 'SITE_URL' ] = site_url();
+ $debug[ 'HOME_URL' ] = home_url();
+
+ $servers = get_option('akismet_available_servers');
+ if ( (time() - get_option('akismet_connectivity_time') < $cache_timeout) && $servers !== false ) {
+ $servers = self::check_server_ip_connectivity();
+ update_option('akismet_available_servers', $servers);
+ update_option('akismet_connectivity_time', time());
+ }
+
+ if ( wp_http_supports( array( 'ssl' ) ) ) {
+ $response = wp_remote_get( 'https://rest.akismet.com/1.1/test' );
+ }
+ else {
+ $response = wp_remote_get( 'http://rest.akismet.com/1.1/test' );
+ }
+
+ $debug[ 'gethostbynamel' ] = function_exists('gethostbynamel') ? 'exists' : 'not here';
+ $debug[ 'Servers' ] = $servers;
+ $debug[ 'Test Connection' ] = $response;
+
+ Akismet::log( $debug );
+
+ if ( $response && 'connected' == wp_remote_retrieve_body( $response ) )
+ return true;
+
+ return false;
+ }
+
+ // Check the server connectivity and store the available servers in an option.
+ public static function get_server_connectivity($cache_timeout = 86400) {
+ return self::check_server_connectivity( $cache_timeout );
+ }
+
+ /**
+ * Find out whether any comments in the Pending queue have not yet been checked by Akismet.
+ *
+ * @return bool
+ */
+ public static function are_any_comments_waiting_to_be_checked() {
+ return !! get_comments( array(
+ // Exclude comments that are not pending. This would happen if someone manually approved or spammed a comment
+ // that was waiting to be checked. The akismet_error meta entry will eventually be removed by the cron recheck job.
+ 'status' => 'hold',
+
+ // This is the commentmeta that is saved when a comment couldn't be checked.
+ 'meta_key' => 'akismet_error',
+
+ // We only need to know whether at least one comment is waiting for a check.
+ 'number' => 1,
+ ) );
+ }
+
+ public static function get_page_url( $page = 'config' ) {
+
+ $args = array( 'page' => 'akismet-key-config' );
+
+ if ( $page == 'stats' )
+ $args = array( 'page' => 'akismet-key-config', 'view' => 'stats' );
+ elseif ( $page == 'delete_key' )
+ $args = array( 'page' => 'akismet-key-config', 'view' => 'start', 'action' => 'delete-key', '_wpnonce' => wp_create_nonce( self::NONCE ) );
+
+ $url = add_query_arg( $args, class_exists( 'Jetpack' ) ? admin_url( 'admin.php' ) : admin_url( 'options-general.php' ) );
+
+ return $url;
+ }
+
+ public static function get_akismet_user( $api_key ) {
+ $akismet_user = false;
+
+ $subscription_verification = Akismet::http_post( Akismet::build_query( array( 'key' => $api_key, 'blog' => get_option( 'home' ) ) ), 'get-subscription' );
+
+ if ( ! empty( $subscription_verification[1] ) ) {
+ if ( 'invalid' !== $subscription_verification[1] ) {
+ $akismet_user = json_decode( $subscription_verification[1] );
+ }
+ }
+
+ return $akismet_user;
+ }
+
+ public static function get_stats( $api_key ) {
+ $stat_totals = array();
+
+ foreach( array( '6-months', 'all' ) as $interval ) {
+ $response = Akismet::http_post( Akismet::build_query( array( 'blog' => get_option( 'home' ), 'key' => $api_key, 'from' => $interval ) ), 'get-stats' );
+
+ if ( ! empty( $response[1] ) ) {
+ $stat_totals[$interval] = json_decode( $response[1] );
+ }
+ }
+
+ return $stat_totals;
+ }
+
+ public static function verify_wpcom_key( $api_key, $user_id, $extra = array() ) {
+ $akismet_account = Akismet::http_post( Akismet::build_query( array_merge( array(
+ 'user_id' => $user_id,
+ 'api_key' => $api_key,
+ 'get_account_type' => 'true'
+ ), $extra ) ), 'verify-wpcom-key' );
+
+ if ( ! empty( $akismet_account[1] ) )
+ $akismet_account = json_decode( $akismet_account[1] );
+
+ Akismet::log( compact( 'akismet_account' ) );
+
+ return $akismet_account;
+ }
+
+ public static function connect_jetpack_user() {
+
+ if ( $jetpack_user = self::get_jetpack_user() ) {
+ if ( isset( $jetpack_user['user_id'] ) && isset( $jetpack_user['api_key'] ) ) {
+ $akismet_user = self::verify_wpcom_key( $jetpack_user['api_key'], $jetpack_user['user_id'], array( 'action' => 'connect_jetpack_user' ) );
+
+ if ( is_object( $akismet_user ) ) {
+ self::save_key( $akismet_user->api_key );
+ return in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub' ) );
+ }
+ }
+ }
+
+ return false;
+ }
+
+ public static function display_alert() {
+ Akismet::view( 'notice', array(
+ 'type' => 'alert',
+ 'code' => (int) get_option( 'akismet_alert_code' ),
+ 'msg' => get_option( 'akismet_alert_msg' )
+ ) );
+ }
+
+ public static function display_privacy_notice_control_warning() {
+ if ( !current_user_can( 'manage_options' ) )
+ return;
+ Akismet::view( 'notice', array(
+ 'type' => 'privacy',
+ ) );
+ }
+
+ public static function display_spam_check_warning() {
+ Akismet::fix_scheduled_recheck();
+
+ if ( wp_next_scheduled('akismet_schedule_cron_recheck') > time() && self::are_any_comments_waiting_to_be_checked() ) {
+ $link_text = apply_filters( 'akismet_spam_check_warning_link_text', sprintf( __( 'Please check your <a href="%s">Akismet configuration</a> and contact your web host if problems persist.', 'akismet'), esc_url( self::get_page_url() ) ) );
+ Akismet::view( 'notice', array( 'type' => 'spam-check', 'link_text' => $link_text ) );
+ }
+ }
+
+ public static function display_api_key_warning() {
+ Akismet::view( 'notice', array( 'type' => 'plugin' ) );
+ }
+
+ public static function display_page() {
+ if ( !Akismet::get_api_key() || ( isset( $_GET['view'] ) && $_GET['view'] == 'start' ) )
+ self::display_start_page();
+ elseif ( isset( $_GET['view'] ) && $_GET['view'] == 'stats' )
+ self::display_stats_page();
+ else
+ self::display_configuration_page();
+ }
+
+ public static function display_start_page() {
+ if ( isset( $_GET['action'] ) ) {
+ if ( $_GET['action'] == 'delete-key' ) {
+ if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], self::NONCE ) )
+ delete_option( 'wordpress_api_key' );
+ }
+ }
+
+ if ( $api_key = Akismet::get_api_key() && ( empty( self::$notices['status'] ) || 'existing-key-invalid' != self::$notices['status'] ) ) {
+ self::display_configuration_page();
+ return;
+ }
+
+ //the user can choose to auto connect their API key by clicking a button on the akismet done page
+ //if jetpack, get verified api key by using connected wpcom user id
+ //if no jetpack, get verified api key by using an akismet token
+
+ $akismet_user = false;
+
+ if ( isset( $_GET['token'] ) && preg_match('/^(\d+)-[0-9a-f]{20}$/', $_GET['token'] ) )
+ $akismet_user = self::verify_wpcom_key( '', '', array( 'token' => $_GET['token'] ) );
+ elseif ( $jetpack_user = self::get_jetpack_user() )
+ $akismet_user = self::verify_wpcom_key( $jetpack_user['api_key'], $jetpack_user['user_id'] );
+
+ if ( isset( $_GET['action'] ) ) {
+ if ( $_GET['action'] == 'save-key' ) {
+ if ( is_object( $akismet_user ) ) {
+ self::save_key( $akismet_user->api_key );
+ self::display_configuration_page();
+ return;
+ }
+ }
+ }
+
+ Akismet::view( 'start', compact( 'akismet_user' ) );
+
+ /*
+ // To see all variants when testing.
+ $akismet_user->status = 'no-sub';
+ Akismet::view( 'start', compact( 'akismet_user' ) );
+ $akismet_user->status = 'cancelled';
+ Akismet::view( 'start', compact( 'akismet_user' ) );
+ $akismet_user->status = 'suspended';
+ Akismet::view( 'start', compact( 'akismet_user' ) );
+ $akismet_user->status = 'other';
+ Akismet::view( 'start', compact( 'akismet_user' ) );
+ $akismet_user = false;
+ */
+ }
+
+ public static function display_stats_page() {
+ Akismet::view( 'stats' );
+ }
+
+ public static function display_configuration_page() {
+ $api_key = Akismet::get_api_key();
+ $akismet_user = self::get_akismet_user( $api_key );
+
+ if ( ! $akismet_user ) {
+ // This could happen if the user's key became invalid after it was previously valid and successfully set up.
+ self::$notices['status'] = 'existing-key-invalid';
+ self::display_start_page();
+ return;
+ }
+
+ $stat_totals = self::get_stats( $api_key );
+
+ // If unset, create the new strictness option using the old discard option to determine its default.
+ // If the old option wasn't set, default to discarding the blatant spam.
+ if ( get_option( 'akismet_strictness' ) === false ) {
+ add_option( 'akismet_strictness', ( get_option( 'akismet_discard_month' ) === 'false' ? '0' : '1' ) );
+ }
+
+ // Sync the local "Total spam blocked" count with the authoritative count from the server.
+ if ( isset( $stat_totals['all'], $stat_totals['all']->spam ) ) {
+ update_option( 'akismet_spam_count', $stat_totals['all']->spam );
+ }
+
+ $notices = array();
+
+ if ( empty( self::$notices ) ) {
+ if ( ! empty( $stat_totals['all'] ) && isset( $stat_totals['all']->time_saved ) && $akismet_user->status == 'active' && $akismet_user->account_type == 'free-api-key' ) {
+
+ $time_saved = false;
+
+ if ( $stat_totals['all']->time_saved > 1800 ) {
+ $total_in_minutes = round( $stat_totals['all']->time_saved / 60 );
+ $total_in_hours = round( $total_in_minutes / 60 );
+ $total_in_days = round( $total_in_hours / 8 );
+ $cleaning_up = __( 'Cleaning up spam takes time.' , 'akismet');
+
+ if ( $total_in_days > 1 )
+ $time_saved = $cleaning_up . ' ' . sprintf( _n( 'Akismet has saved you %s day!', 'Akismet has saved you %s days!', $total_in_days, 'akismet' ), number_format_i18n( $total_in_days ) );
+ elseif ( $total_in_hours > 1 )
+ $time_saved = $cleaning_up . ' ' . sprintf( _n( 'Akismet has saved you %d hour!', 'Akismet has saved you %d hours!', $total_in_hours, 'akismet' ), $total_in_hours );
+ elseif ( $total_in_minutes >= 30 )
+ $time_saved = $cleaning_up . ' ' . sprintf( _n( 'Akismet has saved you %d minute!', 'Akismet has saved you %d minutes!', $total_in_minutes, 'akismet' ), $total_in_minutes );
+ }
+
+ $notices[] = array( 'type' => 'active-notice', 'time_saved' => $time_saved );
+ }
+
+ if ( !empty( $akismet_user->limit_reached ) && in_array( $akismet_user->limit_reached, array( 'yellow', 'red' ) ) ) {
+ $notices[] = array( 'type' => 'limit-reached', 'level' => $akismet_user->limit_reached );
+ }
+ }
+
+ if ( !isset( self::$notices['status'] ) && in_array( $akismet_user->status, array( 'cancelled', 'suspended', 'missing', 'no-sub' ) ) ) {
+ $notices[] = array( 'type' => $akismet_user->status );
+ }
+
+ if ( false === get_option( 'akismet_comment_form_privacy_notice' ) ) {
+ $notices[] = array( 'type' => 'privacy' );
+ }
+
+ /*
+ // To see all variants when testing.
+ $notices[] = array( 'type' => 'active-notice', 'time_saved' => 'Cleaning up spam takes time. Akismet has saved you 1 minute!' );
+ $notices[] = array( 'type' => 'plugin' );
+ $notices[] = array( 'type' => 'spam-check', 'link_text' => 'Link text.' );
+ $notices[] = array( 'type' => 'notice', 'notice_header' => 'This is the notice header.', 'notice_text' => 'This is the notice text.' );
+ $notices[] = array( 'type' => 'missing-functions' );
+ $notices[] = array( 'type' => 'servers-be-down' );
+ $notices[] = array( 'type' => 'active-dunning' );
+ $notices[] = array( 'type' => 'cancelled' );
+ $notices[] = array( 'type' => 'suspended' );
+ $notices[] = array( 'type' => 'missing' );
+ $notices[] = array( 'type' => 'no-sub' );
+ $notices[] = array( 'type' => 'new-key-valid' );
+ $notices[] = array( 'type' => 'new-key-invalid' );
+ $notices[] = array( 'type' => 'existing-key-invalid' );
+ $notices[] = array( 'type' => 'new-key-failed' );
+ $notices[] = array( 'type' => 'limit-reached', 'level' => 'yellow' );
+ $notices[] = array( 'type' => 'limit-reached', 'level' => 'red' );
+ */
+
+ Akismet::log( compact( 'stat_totals', 'akismet_user' ) );
+ Akismet::view( 'config', compact( 'api_key', 'akismet_user', 'stat_totals', 'notices' ) );
+ }
+
+ public static function display_notice() {
+ global $hook_suffix;
+
+ if ( in_array( $hook_suffix, array( 'jetpack_page_akismet-key-config', 'settings_page_akismet-key-config' ) ) ) {
+ // This page manages the notices and puts them inline where they make sense.
+ return;
+ }
+
+ if ( in_array( $hook_suffix, array( 'edit-comments.php' ) ) && (int) get_option( 'akismet_alert_code' ) > 0 ) {
+ Akismet::verify_key( Akismet::get_api_key() ); //verify that the key is still in alert state
+
+ if ( get_option( 'akismet_alert_code' ) > 0 )
+ self::display_alert();
+ }
+ elseif ( $hook_suffix == 'plugins.php' && !Akismet::get_api_key() ) {
+ self::display_api_key_warning();
+ }
+ elseif ( $hook_suffix == 'edit-comments.php' && wp_next_scheduled( 'akismet_schedule_cron_recheck' ) ) {
+ self::display_spam_check_warning();
+ }
+ else if ( isset( $_GET['akismet_recheck_complete'] ) ) {
+ $recheck_count = (int) $_GET['recheck_count'];
+ $spam_count = (int) $_GET['spam_count'];
+
+ if ( $recheck_count === 0 ) {
+ $message = __( 'There were no comments to check. Akismet will only check comments in the Pending queue.', 'akismet' );
+ }
+ else {
+ $message = sprintf( _n( 'Akismet checked %s comment.', 'Akismet checked %s comments.', $recheck_count, 'akismet' ), number_format( $recheck_count ) );
+ $message .= ' ';
+
+ if ( $spam_count === 0 ) {
+ $message .= __( 'No comments were caught as spam.', 'akismet' );
+ }
+ else {
+ $message .= sprintf( _n( '%s comment was caught as spam.', '%s comments were caught as spam.', $spam_count, 'akismet' ), number_format( $spam_count ) );
+ }
+ }
+
+ echo '<div class="notice notice-success"><p>' . esc_html( $message ) . '</p></div>';
+ }
+
+ $akismet_comment_form_privacy_notice_option = get_option( 'akismet_comment_form_privacy_notice' );
+ if ( ! in_array( $akismet_comment_form_privacy_notice_option, array( 'hide', 'display' ) ) ) {
+ $api_key = Akismet::get_api_key();
+ if ( ! empty( $api_key ) ) {
+ self::display_privacy_notice_control_warning();
+ }
+ }
+ }
+
+ public static function display_status() {
+ if ( ! self::get_server_connectivity() ) {
+ Akismet::view( 'notice', array( 'type' => 'servers-be-down' ) );
+ }
+ else if ( ! empty( self::$notices ) ) {
+ foreach ( self::$notices as $index => $type ) {
+ if ( is_object( $type ) ) {
+ $notice_header = $notice_text = '';
+
+ if ( property_exists( $type, 'notice_header' ) ) {
+ $notice_header = wp_kses( $type->notice_header, self::$allowed );
+ }
+
+ if ( property_exists( $type, 'notice_text' ) ) {
+ $notice_text = wp_kses( $type->notice_text, self::$allowed );
+ }
+
+ if ( property_exists( $type, 'status' ) ) {
+ $type = wp_kses( $type->status, self::$allowed );
+ Akismet::view( 'notice', compact( 'type', 'notice_header', 'notice_text' ) );
+
+ unset( self::$notices[ $index ] );
+ }
+ }
+ else {
+ Akismet::view( 'notice', compact( 'type' ) );
+
+ unset( self::$notices[ $index ] );
+ }
+ }
+ }
+ }
+
+ private static function get_jetpack_user() {
+ if ( !class_exists('Jetpack') )
+ return false;
+
+ Jetpack::load_xml_rpc_client();
+ $xml = new Jetpack_IXR_ClientMulticall( array( 'user_id' => get_current_user_id() ) );
+
+ $xml->addCall( 'wpcom.getUserID' );
+ $xml->addCall( 'akismet.getAPIKey' );
+ $xml->query();
+
+ Akismet::log( compact( 'xml' ) );
+
+ if ( !$xml->isError() ) {
+ $responses = $xml->getResponse();
+ if ( count( $responses ) > 1 ) {
+ // Due to a quirk in how Jetpack does multi-calls, the response order
+ // can't be trusted to match the call order. It's a good thing our
+ // return values can be mostly differentiated from each other.
+ $first_response_value = array_shift( $responses[0] );
+ $second_response_value = array_shift( $responses[1] );
+
+ // If WPCOM ever reaches 100 billion users, this will fail. :-)
+ if ( preg_match( '/^[a-f0-9]{12}$/i', $first_response_value ) ) {
+ $api_key = $first_response_value;
+ $user_id = (int) $second_response_value;
+ }
+ else {
+ $api_key = $second_response_value;
+ $user_id = (int) $first_response_value;
+ }
+
+ return compact( 'api_key', 'user_id' );
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Some commentmeta isn't useful in an export file. Suppress it (when supported).
+ *
+ * @param bool $exclude
+ * @param string $key The meta key
+ * @param object $meta The meta object
+ * @return bool Whether to exclude this meta entry from the export.
+ */
+ public static function exclude_commentmeta_from_export( $exclude, $key, $meta ) {
+ if ( in_array( $key, array( 'akismet_as_submitted', 'akismet_rechecking', 'akismet_delayed_moderation_email' ) ) ) {
+ return true;
+ }
+
+ return $exclude;
+ }
+
+ /**
+ * When Akismet is active, remove the "Activate Akismet" step from the plugin description.
+ */
+ public static function modify_plugin_description( $all_plugins ) {
+ if ( isset( $all_plugins['akismet/akismet.php'] ) ) {
+ if ( Akismet::get_api_key() ) {
+ $all_plugins['akismet/akismet.php']['Description'] = __( 'Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Your site is fully configured and being protected, even while you sleep.', 'akismet' );
+ }
+ else {
+ $all_plugins['akismet/akismet.php']['Description'] = __( 'Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started, just go to <a href="admin.php?page=akismet-key-config">your Akismet Settings page</a> to set up your API key.', 'akismet' );
+ }
+ }
+
+ return $all_plugins;
+ }
+
+ private static function set_form_privacy_notice_option( $state ) {
+ if ( in_array( $state, array( 'display', 'hide' ) ) ) {
+ update_option( 'akismet_comment_form_privacy_notice', $state );
+ }
+ }
+
+ public static function jetpack_comment_form_privacy_notice_url( $url ) {
+ return str_replace( 'options-general.php', 'admin.php', $url );
+ }
+
+ public static function register_personal_data_eraser( $erasers ) {
+ $erasers['akismet'] = array(
+ 'eraser_friendly_name' => __( 'Akismet', 'akismet' ),
+ 'callback' => array( 'Akismet_Admin', 'erase_personal_data' ),
+ );
+
+ return $erasers;
+ }
+
+ /**
+ * When a user requests that their personal data be removed, Akismet has a duty to discard
+ * any personal data we store outside of the comment itself. Right now, that is limited
+ * to the copy of the comment we store in the akismet_as_submitted commentmeta.
+ *
+ * FWIW, this information would be automatically deleted after 15 days.
+ *
+ * @param $email_address string The email address of the user who has requested erasure.
+ * @param $page int This function can (and will) be called multiple times to prevent timeouts,
+ * so this argument is used for pagination.
+ * @return array
+ * @see https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/
+ */
+ public static function erase_personal_data( $email_address, $page = 1 ) {
+ $items_removed = false;
+
+ $number = 50;
+ $page = (int) $page;
+
+ $comments = get_comments(
+ array(
+ 'author_email' => $email_address,
+ 'number' => $number,
+ 'paged' => $page,
+ 'order_by' => 'comment_ID',
+ 'order' => 'ASC',
+ )
+ );
+
+ foreach ( (array) $comments as $comment ) {
+ $comment_as_submitted = get_comment_meta( $comment->comment_ID, 'akismet_as_submitted', true );
+
+ if ( $comment_as_submitted ) {
+ delete_comment_meta( $comment->comment_ID, 'akismet_as_submitted' );
+ $items_removed = true;
+ }
+ }
+
+ // Tell core if we have more comments to work on still
+ $done = count( $comments ) < $number;
+
+ return array(
+ 'items_removed' => $items_removed,
+ 'items_retained' => false, // always false in this example
+ 'messages' => array(), // no messages in this example
+ 'done' => $done,
+ );
+ }
+}
diff --git a/plugins/akismet/class.akismet-cli.php b/plugins/akismet/class.akismet-cli.php
new file mode 100644
index 00000000..9cbe7a92
--- /dev/null
+++ b/plugins/akismet/class.akismet-cli.php
@@ -0,0 +1,185 @@
+<?php
+
+WP_CLI::add_command( 'akismet', 'Akismet_CLI' );
+
+/**
+ * Filter spam comments.
+ */
+class Akismet_CLI extends WP_CLI_Command {
+ /**
+ * Checks one or more comments against the Akismet API.
+ *
+ * ## OPTIONS
+ * <comment_id>...
+ * : The ID(s) of the comment(s) to check.
+ *
+ * [--noaction]
+ * : Don't change the status of the comment. Just report what Akismet thinks it is.
+ *
+ * ## EXAMPLES
+ *
+ * wp akismet check 12345
+ *
+ * @alias comment-check
+ */
+ public function check( $args, $assoc_args ) {
+ foreach ( $args as $comment_id ) {
+ if ( isset( $assoc_args['noaction'] ) ) {
+ // Check the comment, but don't reclassify it.
+ $api_response = Akismet::check_db_comment( $comment_id, 'wp-cli' );
+ }
+ else {
+ $api_response = Akismet::recheck_comment( $comment_id, 'wp-cli' );
+ }
+
+ if ( 'true' === $api_response ) {
+ WP_CLI::line( sprintf( __( "Comment #%d is spam.", 'akismet' ), $comment_id ) );
+ }
+ else if ( 'false' === $api_response ) {
+ WP_CLI::line( sprintf( __( "Comment #%d is not spam.", 'akismet' ), $comment_id ) );
+ }
+ else {
+ if ( false === $api_response ) {
+ WP_CLI::error( __( "Failed to connect to Akismet.", 'akismet' ) );
+ }
+ else if ( is_wp_error( $api_response ) ) {
+ WP_CLI::warning( sprintf( __( "Comment #%d could not be checked.", 'akismet' ), $comment_id ) );
+ }
+ }
+ }
+ }
+
+ /**
+ * Recheck all comments in the Pending queue.
+ *
+ * ## EXAMPLES
+ *
+ * wp akismet recheck_queue
+ *
+ * @alias recheck-queue
+ */
+ public function recheck_queue() {
+ $batch_size = 100;
+ $start = 0;
+
+ $total_counts = array();
+
+ do {
+ $result_counts = Akismet_Admin::recheck_queue_portion( $start, $batch_size );
+
+ if ( $result_counts['processed'] > 0 ) {
+ foreach ( $result_counts as $key => $count ) {
+ if ( ! isset( $total_counts[ $key ] ) ) {
+ $total_counts[ $key ] = $count;
+ }
+ else {
+ $total_counts[ $key ] += $count;
+ }
+ }
+ $start += $batch_size;
+ $start -= $result_counts['spam']; // These comments will have been removed from the queue.
+ }
+ } while ( $result_counts['processed'] > 0 );
+
+ WP_CLI::line( sprintf( _n( "Processed %d comment.", "Processed %d comments.", $total_counts['processed'], 'akismet' ), number_format( $total_counts['processed'] ) ) );
+ WP_CLI::line( sprintf( _n( "%d comment moved to Spam.", "%d comments moved to Spam.", $total_counts['spam'], 'akismet' ), number_format( $total_counts['spam'] ) ) );
+
+ if ( $total_counts['error'] ) {
+ WP_CLI::line( sprintf( _n( "%d comment could not be checked.", "%d comments could not be checked.", $total_counts['error'], 'akismet' ), number_format( $total_counts['error'] ) ) );
+ }
+ }
+
+ /**
+ * Fetches stats from the Akismet API.
+ *
+ * ## OPTIONS
+ *
+ * [<interval>]
+ * : The time period for which to retrieve stats.
+ * ---
+ * default: all
+ * options:
+ * - days
+ * - months
+ * - all
+ * ---
+ *
+ * [--format=<format>]
+ * : Allows overriding the output of the command when listing connections.
+ * ---
+ * default: table
+ * options:
+ * - table
+ * - json
+ * - csv
+ * - yaml
+ * - count
+ * ---
+ *
+ * [--summary]
+ * : When set, will display a summary of the stats.
+ *
+ * ## EXAMPLES
+ *
+ * wp akismet stats
+ * wp akismet stats all
+ * wp akismet stats days
+ * wp akismet stats months
+ * wp akismet stats all --summary
+ */
+ public function stats( $args, $assoc_args ) {
+ $api_key = Akismet::get_api_key();
+
+ if ( empty( $api_key ) ) {
+ WP_CLI::error( __( 'API key must be set to fetch stats.', 'akismet' ) );
+ }
+
+ switch ( $args[0] ) {
+ case 'days':
+ $interval = '60-days';
+ break;
+ case 'months':
+ $interval = '6-months';
+ break;
+ default:
+ $interval = 'all';
+ break;
+ }
+
+ $response = Akismet::http_post(
+ Akismet::build_query( array(
+ 'blog' => get_option( 'home' ),
+ 'key' => $api_key,
+ 'from' => $interval,
+ ) ),
+ 'get-stats'
+ );
+
+ if ( empty( $response[1] ) ) {
+ WP_CLI::error( __( 'Currently unable to fetch stats. Please try again.', 'akismet' ) );
+ }
+
+ $response_body = json_decode( $response[1], true );
+
+ if ( is_null( $response_body ) ) {
+ WP_CLI::error( __( 'Stats response could not be decoded.', 'akismet' ) );
+ }
+
+ if ( isset( $assoc_args['summary'] ) ) {
+ $keys = array(
+ 'spam',
+ 'ham',
+ 'missed_spam',
+ 'false_positives',
+ 'accuracy',
+ 'time_saved',
+ );
+
+ WP_CLI\Utils\format_items( $assoc_args['format'], array( $response_body ), $keys );
+ }
+ else {
+ $stats = $response_body['breakdown'];
+ WP_CLI\Utils\format_items( $assoc_args['format'], $stats, array_keys( end( $stats ) ) );
+ }
+ }
+} \ No newline at end of file
diff --git a/plugins/akismet/class.akismet-rest-api.php b/plugins/akismet/class.akismet-rest-api.php
new file mode 100644
index 00000000..bf71998b
--- /dev/null
+++ b/plugins/akismet/class.akismet-rest-api.php
@@ -0,0 +1,366 @@
+<?php
+
+class Akismet_REST_API {
+ /**
+ * Register the REST API routes.
+ */
+ public static function init() {
+ if ( ! function_exists( 'register_rest_route' ) ) {
+ // The REST API wasn't integrated into core until 4.4, and we support 4.0+ (for now).
+ return false;
+ }
+
+ register_rest_route( 'akismet/v1', '/key', array(
+ array(
+ 'methods' => WP_REST_Server::READABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'get_key' ),
+ ), array(
+ 'methods' => WP_REST_Server::EDITABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'set_key' ),
+ 'args' => array(
+ 'key' => array(
+ 'required' => true,
+ 'type' => 'string',
+ 'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
+ 'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
+ ),
+ ),
+ ), array(
+ 'methods' => WP_REST_Server::DELETABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'delete_key' ),
+ )
+ ) );
+
+ register_rest_route( 'akismet/v1', '/settings/', array(
+ array(
+ 'methods' => WP_REST_Server::READABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'get_settings' ),
+ ),
+ array(
+ 'methods' => WP_REST_Server::EDITABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'set_boolean_settings' ),
+ 'args' => array(
+ 'akismet_strictness' => array(
+ 'required' => false,
+ 'type' => 'boolean',
+ 'description' => __( 'If true, Akismet will automatically discard the worst spam automatically rather than putting it in the spam folder.', 'akismet' ),
+ ),
+ 'akismet_show_user_comments_approved' => array(
+ 'required' => false,
+ 'type' => 'boolean',
+ 'description' => __( 'If true, show the number of approved comments beside each comment author in the comments list page.', 'akismet' ),
+ ),
+ ),
+ )
+ ) );
+
+ register_rest_route( 'akismet/v1', '/stats', array(
+ 'methods' => WP_REST_Server::READABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'get_stats' ),
+ 'args' => array(
+ 'interval' => array(
+ 'required' => false,
+ 'type' => 'string',
+ 'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_interval' ),
+ 'description' => __( 'The time period for which to retrieve stats. Options: 60-days, 6-months, all', 'akismet' ),
+ 'default' => 'all',
+ ),
+ ),
+ ) );
+
+ register_rest_route( 'akismet/v1', '/stats/(?P<interval>[\w+])', array(
+ 'args' => array(
+ 'interval' => array(
+ 'description' => __( 'The time period for which to retrieve stats. Options: 60-days, 6-months, all', 'akismet' ),
+ 'type' => 'string',
+ ),
+ ),
+ array(
+ 'methods' => WP_REST_Server::READABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'get_stats' ),
+ )
+ ) );
+
+ register_rest_route( 'akismet/v1', '/alert', array(
+ array(
+ 'methods' => WP_REST_Server::READABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'remote_call_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'get_alert' ),
+ 'args' => array(
+ 'key' => array(
+ 'required' => false,
+ 'type' => 'string',
+ 'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
+ 'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
+ ),
+ ),
+ ),
+ array(
+ 'methods' => WP_REST_Server::EDITABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'remote_call_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'set_alert' ),
+ 'args' => array(
+ 'key' => array(
+ 'required' => false,
+ 'type' => 'string',
+ 'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
+ 'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
+ ),
+ ),
+ ),
+ array(
+ 'methods' => WP_REST_Server::DELETABLE,
+ 'permission_callback' => array( 'Akismet_REST_API', 'remote_call_permission_callback' ),
+ 'callback' => array( 'Akismet_REST_API', 'delete_alert' ),
+ 'args' => array(
+ 'key' => array(
+ 'required' => false,
+ 'type' => 'string',
+ 'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
+ 'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
+ ),
+ ),
+ )
+ ) );
+ }
+
+ /**
+ * Get the current Akismet API key.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function get_key( $request = null ) {
+ return rest_ensure_response( Akismet::get_api_key() );
+ }
+
+ /**
+ * Set the API key, if possible.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function set_key( $request ) {
+ if ( defined( 'WPCOM_API_KEY' ) ) {
+ return rest_ensure_response( new WP_Error( 'hardcoded_key', __( 'This site\'s API key is hardcoded and cannot be changed via the API.', 'akismet' ), array( 'status'=> 409 ) ) );
+ }
+
+ $new_api_key = $request->get_param( 'key' );
+
+ if ( ! self::key_is_valid( $new_api_key ) ) {
+ return rest_ensure_response( new WP_Error( 'invalid_key', __( 'The value provided is not a valid and registered API key.', 'akismet' ), array( 'status' => 400 ) ) );
+ }
+
+ update_option( 'wordpress_api_key', $new_api_key );
+
+ return self::get_key();
+ }
+
+ /**
+ * Unset the API key, if possible.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function delete_key( $request ) {
+ if ( defined( 'WPCOM_API_KEY' ) ) {
+ return rest_ensure_response( new WP_Error( 'hardcoded_key', __( 'This site\'s API key is hardcoded and cannot be deleted.', 'akismet' ), array( 'status'=> 409 ) ) );
+ }
+
+ delete_option( 'wordpress_api_key' );
+
+ return rest_ensure_response( true );
+ }
+
+ /**
+ * Get the Akismet settings.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function get_settings( $request = null ) {
+ return rest_ensure_response( array(
+ 'akismet_strictness' => ( get_option( 'akismet_strictness', '1' ) === '1' ),
+ 'akismet_show_user_comments_approved' => ( get_option( 'akismet_show_user_comments_approved', '1' ) === '1' ),
+ ) );
+ }
+
+ /**
+ * Update the Akismet settings.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function set_boolean_settings( $request ) {
+ foreach ( array(
+ 'akismet_strictness',
+ 'akismet_show_user_comments_approved',
+ ) as $setting_key ) {
+
+ $setting_value = $request->get_param( $setting_key );
+ if ( is_null( $setting_value ) ) {
+ // This setting was not specified.
+ continue;
+ }
+
+ // From 4.7+, WP core will ensure that these are always boolean
+ // values because they are registered with 'type' => 'boolean',
+ // but we need to do this ourselves for prior versions.
+ $setting_value = Akismet_REST_API::parse_boolean( $setting_value );
+
+ update_option( $setting_key, $setting_value ? '1' : '0' );
+ }
+
+ return self::get_settings();
+ }
+
+ /**
+ * Parse a numeric or string boolean value into a boolean.
+ *
+ * @param mixed $value The value to convert into a boolean.
+ * @return bool The converted value.
+ */
+ public static function parse_boolean( $value ) {
+ switch ( $value ) {
+ case true:
+ case 'true':
+ case '1':
+ case 1:
+ return true;
+
+ case false:
+ case 'false':
+ case '0':
+ case 0:
+ return false;
+
+ default:
+ return (bool) $value;
+ }
+ }
+
+ /**
+ * Get the Akismet stats for a given time period.
+ *
+ * Possible `interval` values:
+ * - all
+ * - 60-days
+ * - 6-months
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function get_stats( $request ) {
+ $api_key = Akismet::get_api_key();
+
+ $interval = $request->get_param( 'interval' );
+
+ $stat_totals = array();
+
+ $response = Akismet::http_post( Akismet::build_query( array( 'blog' => get_option( 'home' ), 'key' => $api_key, 'from' => $interval ) ), 'get-stats' );
+
+ if ( ! empty( $response[1] ) ) {
+ $stat_totals[$interval] = json_decode( $response[1] );
+ }
+
+ return rest_ensure_response( $stat_totals );
+ }
+
+ /**
+ * Get the current alert code and message. Alert codes are used to notify the site owner
+ * if there's a problem, like a connection issue between their site and the Akismet API,
+ * invalid requests being sent, etc.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function get_alert( $request ) {
+ return rest_ensure_response( array(
+ 'code' => get_option( 'akismet_alert_code' ),
+ 'message' => get_option( 'akismet_alert_msg' ),
+ ) );
+ }
+
+ /**
+ * Update the current alert code and message by triggering a call to the Akismet server.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function set_alert( $request ) {
+ delete_option( 'akismet_alert_code' );
+ delete_option( 'akismet_alert_msg' );
+
+ // Make a request so the most recent alert code and message are retrieved.
+ Akismet::verify_key( Akismet::get_api_key() );
+
+ return self::get_alert( $request );
+ }
+
+ /**
+ * Clear the current alert code and message.
+ *
+ * @param WP_REST_Request $request
+ * @return WP_Error|WP_REST_Response
+ */
+ public static function delete_alert( $request ) {
+ delete_option( 'akismet_alert_code' );
+ delete_option( 'akismet_alert_msg' );
+
+ return self::get_alert( $request );
+ }
+
+ private static function key_is_valid( $key ) {
+ $response = Akismet::http_post(
+ Akismet::build_query(
+ array(
+ 'key' => $key,
+ 'blog' => get_option( 'home' )
+ )
+ ),
+ 'verify-key'
+ );
+
+ if ( $response[1] == 'valid' ) {
+ return true;
+ }
+
+ return false;
+ }
+
+ public static function privileged_permission_callback() {
+ return current_user_can( 'manage_options' );
+ }
+
+ /**
+ * For calls that Akismet.com makes to the site to clear outdated alert codes, use the API key for authorization.
+ */
+ public static function remote_call_permission_callback( $request ) {
+ $local_key = Akismet::get_api_key();
+
+ return $local_key && ( strtolower( $request->get_param( 'key' ) ) === strtolower( $local_key ) );
+ }
+
+ public static function sanitize_interval( $interval, $request, $param ) {
+ $interval = trim( $interval );
+
+ $valid_intervals = array( '60-days', '6-months', 'all', );
+
+ if ( ! in_array( $interval, $valid_intervals ) ) {
+ $interval = 'all';
+ }
+
+ return $interval;
+ }
+
+ public static function sanitize_key( $key, $request, $param ) {
+ return trim( $key );
+ }
+}
diff --git a/plugins/akismet/class.akismet-widget.php b/plugins/akismet/class.akismet-widget.php
new file mode 100644
index 00000000..55b0f35c
--- /dev/null
+++ b/plugins/akismet/class.akismet-widget.php
@@ -0,0 +1,114 @@
+<?php
+/**
+ * @package Akismet
+ */
+class Akismet_Widget extends WP_Widget {
+
+ function __construct() {
+ load_plugin_textdomain( 'akismet' );
+
+ parent::__construct(
+ 'akismet_widget',
+ __( 'Akismet Widget' , 'akismet'),
+ array( 'description' => __( 'Display the number of spam comments Akismet has caught' , 'akismet') )
+ );
+
+ if ( is_active_widget( false, false, $this->id_base ) ) {
+ add_action( 'wp_head', array( $this, 'css' ) );
+ }
+ }
+
+ function css() {
+?>
+
+<style type="text/css">
+.a-stats {
+ width: auto;
+}
+.a-stats a {
+ background: #7CA821;
+ background-image:-moz-linear-gradient(0% 100% 90deg,#5F8E14,#7CA821);
+ background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#7CA821),to(#5F8E14));
+ border: 1px solid #5F8E14;
+ border-radius:3px;
+ color: #CFEA93;
+ cursor: pointer;
+ display: block;
+ font-weight: normal;
+ height: 100%;
+ -moz-border-radius:3px;
+ padding: 7px 0 8px;
+ text-align: center;
+ text-decoration: none;
+ -webkit-border-radius:3px;
+ width: 100%;
+}
+.a-stats a:hover {
+ text-decoration: none;
+ background-image:-moz-linear-gradient(0% 100% 90deg,#6F9C1B,#659417);
+ background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#659417),to(#6F9C1B));
+}
+.a-stats .count {
+ color: #FFF;
+ display: block;
+ font-size: 15px;
+ line-height: 16px;
+ padding: 0 13px;
+ white-space: nowrap;
+}
+</style>
+
+<?php
+ }
+
+ function form( $instance ) {
+ if ( $instance && isset( $instance['title'] ) ) {
+ $title = $instance['title'];
+ }
+ else {
+ $title = __( 'Spam Blocked' , 'akismet' );
+ }
+?>
+
+ <p>
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:' , 'akismet'); ?></label>
+ <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
+ </p>
+
+<?php
+ }
+
+ function update( $new_instance, $old_instance ) {
+ $instance['title'] = strip_tags( $new_instance['title'] );
+ return $instance;
+ }
+
+ function widget( $args, $instance ) {
+ $count = get_option( 'akismet_spam_count' );
+
+ if ( ! isset( $instance['title'] ) ) {
+ $instance['title'] = __( 'Spam Blocked' , 'akismet' );
+ }
+
+ echo $args['before_widget'];
+ if ( ! empty( $instance['title'] ) ) {
+ echo $args['before_title'];
+ echo esc_html( $instance['title'] );
+ echo $args['after_title'];
+ }
+?>
+
+ <div class="a-stats">
+ <a href="https://akismet.com" target="_blank" title=""><?php printf( _n( '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', $count , 'akismet'), number_format_i18n( $count ) ); ?></a>
+ </div>
+
+<?php
+ echo $args['after_widget'];
+ }
+}
+
+function akismet_register_widgets() {
+ register_widget( 'Akismet_Widget' );
+}
+
+add_action( 'widgets_init', 'akismet_register_widgets' );
diff --git a/plugins/akismet/class.akismet.php b/plugins/akismet/class.akismet.php
new file mode 100644
index 00000000..f24fd63d
--- /dev/null
+++ b/plugins/akismet/class.akismet.php
@@ -0,0 +1,1423 @@
+<?php
+
+class Akismet {
+ const API_HOST = 'rest.akismet.com';
+ const API_PORT = 80;
+ const MAX_DELAY_BEFORE_MODERATION_EMAIL = 86400; // One day in seconds
+
+ private static $last_comment = '';
+ private static $initiated = false;
+ private static $prevent_moderation_email_for_these_comments = array();
+ private static $last_comment_result = null;
+ private static $comment_as_submitted_allowed_keys = array( 'blog' => '', 'blog_charset' => '', 'blog_lang' => '', 'blog_ua' => '', 'comment_agent' => '', 'comment_author' => '', 'comment_author_IP' => '', 'comment_author_email' => '', 'comment_author_url' => '', 'comment_content' => '', 'comment_date_gmt' => '', 'comment_tags' => '', 'comment_type' => '', 'guid' => '', 'is_test' => '', 'permalink' => '', 'reporter' => '', 'site_domain' => '', 'submit_referer' => '', 'submit_uri' => '', 'user_ID' => '', 'user_agent' => '', 'user_id' => '', 'user_ip' => '' );
+ private static $is_rest_api_call = false;
+
+ public static function init() {
+ if ( ! self::$initiated ) {
+ self::init_hooks();
+ }
+ }
+
+ /**
+ * Initializes WordPress hooks
+ */
+ private static function init_hooks() {
+ self::$initiated = true;
+
+ add_action( 'wp_insert_comment', array( 'Akismet', 'auto_check_update_meta' ), 10, 2 );
+ add_filter( 'preprocess_comment', array( 'Akismet', 'auto_check_comment' ), 1 );
+ add_filter( 'rest_pre_insert_comment', array( 'Akismet', 'rest_auto_check_comment' ), 1 );
+
+ add_action( 'akismet_scheduled_delete', array( 'Akismet', 'delete_old_comments' ) );
+ add_action( 'akismet_scheduled_delete', array( 'Akismet', 'delete_old_comments_meta' ) );
+ add_action( 'akismet_scheduled_delete', array( 'Akismet', 'delete_orphaned_commentmeta' ) );
+ add_action( 'akismet_schedule_cron_recheck', array( 'Akismet', 'cron_recheck' ) );
+
+ add_action( 'comment_form', array( 'Akismet', 'add_comment_nonce' ), 1 );
+
+ add_action( 'admin_head-edit-comments.php', array( 'Akismet', 'load_form_js' ) );
+ add_action( 'comment_form', array( 'Akismet', 'load_form_js' ) );
+ add_action( 'comment_form', array( 'Akismet', 'inject_ak_js' ) );
+ add_filter( 'script_loader_tag', array( 'Akismet', 'set_form_js_async' ), 10, 3 );
+
+ add_filter( 'comment_moderation_recipients', array( 'Akismet', 'disable_moderation_emails_if_unreachable' ), 1000, 2 );
+ add_filter( 'pre_comment_approved', array( 'Akismet', 'last_comment_status' ), 10, 2 );
+
+ add_action( 'transition_comment_status', array( 'Akismet', 'transition_comment_status' ), 10, 3 );
+
+ // Run this early in the pingback call, before doing a remote fetch of the source uri
+ add_action( 'xmlrpc_call', array( 'Akismet', 'pre_check_pingback' ) );
+
+ // Jetpack compatibility
+ add_filter( 'jetpack_options_whitelist', array( 'Akismet', 'add_to_jetpack_options_whitelist' ) );
+ add_action( 'update_option_wordpress_api_key', array( 'Akismet', 'updated_option' ), 10, 2 );
+ add_action( 'add_option_wordpress_api_key', array( 'Akismet', 'added_option' ), 10, 2 );
+
+ add_action( 'comment_form_after', array( 'Akismet', 'display_comment_form_privacy_notice' ) );
+ }
+
+ public static function get_api_key() {
+ return apply_filters( 'akismet_get_api_key', defined('WPCOM_API_KEY') ? constant('WPCOM_API_KEY') : get_option('wordpress_api_key') );
+ }
+
+ public static function check_key_status( $key, $ip = null ) {
+ return self::http_post( Akismet::build_query( array( 'key' => $key, 'blog' => get_option( 'home' ) ) ), 'verify-key', $ip );
+ }
+
+ public static function verify_key( $key, $ip = null ) {
+ // Shortcut for obviously invalid keys.
+ if ( strlen( $key ) != 12 ) {
+ return 'invalid';
+ }
+
+ $response = self::check_key_status( $key, $ip );
+
+ if ( $response[1] != 'valid' && $response[1] != 'invalid' )
+ return 'failed';
+
+ return $response[1];
+ }
+
+ public static function deactivate_key( $key ) {
+ $response = self::http_post( Akismet::build_query( array( 'key' => $key, 'blog' => get_option( 'home' ) ) ), 'deactivate' );
+
+ if ( $response[1] != 'deactivated' )
+ return 'failed';
+
+ return $response[1];
+ }
+
+ /**
+ * Add the akismet option to the Jetpack options management whitelist.
+ *
+ * @param array $options The list of whitelisted option names.
+ * @return array The updated whitelist
+ */
+ public static function add_to_jetpack_options_whitelist( $options ) {
+ $options[] = 'wordpress_api_key';
+ return $options;
+ }
+
+ /**
+ * When the akismet option is updated, run the registration call.
+ *
+ * This should only be run when the option is updated from the Jetpack/WP.com
+ * API call, and only if the new key is different than the old key.
+ *
+ * @param mixed $old_value The old option value.
+ * @param mixed $value The new option value.
+ */
+ public static function updated_option( $old_value, $value ) {
+ // Not an API call
+ if ( ! class_exists( 'WPCOM_JSON_API_Update_Option_Endpoint' ) ) {
+ return;
+ }
+ // Only run the registration if the old key is different.
+ if ( $old_value !== $value ) {
+ self::verify_key( $value );
+ }
+ }
+
+ /**
+ * Treat the creation of an API key the same as updating the API key to a new value.
+ *
+ * @param mixed $option_name Will always be "wordpress_api_key", until something else hooks in here.
+ * @param mixed $value The option value.
+ */
+ public static function added_option( $option_name, $value ) {
+ if ( 'wordpress_api_key' === $option_name ) {
+ return self::updated_option( '', $value );
+ }
+ }
+
+ public static function rest_auto_check_comment( $commentdata ) {
+ self::$is_rest_api_call = true;
+
+ return self::auto_check_comment( $commentdata );
+ }
+
+ public static function auto_check_comment( $commentdata ) {
+ self::$last_comment_result = null;
+
+ $comment = $commentdata;
+
+ $comment['user_ip'] = self::get_ip_address();
+ $comment['user_agent'] = self::get_user_agent();
+ $comment['referrer'] = self::get_referer();
+ $comment['blog'] = get_option( 'home' );
+ $comment['blog_lang'] = get_locale();
+ $comment['blog_charset'] = get_option('blog_charset');
+ $comment['permalink'] = get_permalink( $comment['comment_post_ID'] );
+
+ if ( ! empty( $comment['user_ID'] ) ) {
+ $comment['user_role'] = Akismet::get_user_roles( $comment['user_ID'] );
+ }
+
+ /** See filter documentation in init_hooks(). */
+ $akismet_nonce_option = apply_filters( 'akismet_comment_nonce', get_option( 'akismet_comment_nonce' ) );
+ $comment['akismet_comment_nonce'] = 'inactive';
+ if ( $akismet_nonce_option == 'true' || $akismet_nonce_option == '' ) {
+ $comment['akismet_comment_nonce'] = 'failed';
+ if ( isset( $_POST['akismet_comment_nonce'] ) && wp_verify_nonce( $_POST['akismet_comment_nonce'], 'akismet_comment_nonce_' . $comment['comment_post_ID'] ) )
+ $comment['akismet_comment_nonce'] = 'passed';
+
+ // comment reply in wp-admin
+ if ( isset( $_POST['_ajax_nonce-replyto-comment'] ) && check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' ) )
+ $comment['akismet_comment_nonce'] = 'passed';
+
+ }
+
+ if ( self::is_test_mode() )
+ $comment['is_test'] = 'true';
+
+ foreach( $_POST as $key => $value ) {
+ if ( is_string( $value ) )
+ $comment["POST_{$key}"] = $value;
+ }
+
+ foreach ( $_SERVER as $key => $value ) {
+ if ( ! is_string( $value ) ) {
+ continue;
+ }
+
+ if ( preg_match( "/^HTTP_COOKIE/", $key ) ) {
+ continue;
+ }
+
+ // Send any potentially useful $_SERVER vars, but avoid sending junk we don't need.
+ if ( preg_match( "/^(HTTP_|REMOTE_ADDR|REQUEST_URI|DOCUMENT_URI)/", $key ) ) {
+ $comment[ "$key" ] = $value;
+ }
+ }
+
+ $post = get_post( $comment['comment_post_ID'] );
+
+ if ( ! is_null( $post ) ) {
+ // $post can technically be null, although in the past, it's always been an indicator of another plugin interfering.
+ $comment[ 'comment_post_modified_gmt' ] = $post->post_modified_gmt;
+ }
+
+ $response = self::http_post( Akismet::build_query( $comment ), 'comment-check' );
+
+ do_action( 'akismet_comment_check_response', $response );
+
+ $commentdata['comment_as_submitted'] = array_intersect_key( $comment, self::$comment_as_submitted_allowed_keys );
+ $commentdata['akismet_result'] = $response[1];
+
+ if ( isset( $response[0]['x-akismet-pro-tip'] ) )
+ $commentdata['akismet_pro_tip'] = $response[0]['x-akismet-pro-tip'];
+
+ if ( isset( $response[0]['x-akismet-error'] ) ) {
+ // An error occurred that we anticipated (like a suspended key) and want the user to act on.
+ // Send to moderation.
+ self::$last_comment_result = '0';
+ }
+ else if ( 'true' == $response[1] ) {
+ // akismet_spam_count will be incremented later by comment_is_spam()
+ self::$last_comment_result = 'spam';
+
+ $discard = ( isset( $commentdata['akismet_pro_tip'] ) && $commentdata['akismet_pro_tip'] === 'discard' && self::allow_discard() );
+
+ do_action( 'akismet_spam_caught', $discard );
+
+ if ( $discard ) {
+ // The spam is obvious, so we're bailing out early.
+ // akismet_result_spam() won't be called so bump the counter here
+ if ( $incr = apply_filters( 'akismet_spam_count_incr', 1 ) ) {
+ update_option( 'akismet_spam_count', get_option( 'akismet_spam_count' ) + $incr );
+ }
+
+ if ( self::$is_rest_api_call ) {
+ return new WP_Error( 'akismet_rest_comment_discarded', __( 'Comment discarded.', 'akismet' ) );
+ }
+ else {
+ // Redirect back to the previous page, or failing that, the post permalink, or failing that, the homepage of the blog.
+ $redirect_to = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : ( $post ? get_permalink( $post ) : home_url() );
+ wp_safe_redirect( esc_url_raw( $redirect_to ) );
+ die();
+ }
+ }
+ else if ( self::$is_rest_api_call ) {
+ // The way the REST API structures its calls, we can set the comment_approved value right away.
+ $commentdata['comment_approved'] = 'spam';
+ }
+ }
+
+ // if the response is neither true nor false, hold the comment for moderation and schedule a recheck
+ if ( 'true' != $response[1] && 'false' != $response[1] ) {
+ if ( !current_user_can('moderate_comments') ) {
+ // Comment status should be moderated
+ self::$last_comment_result = '0';
+ }
+
+ if ( ! wp_next_scheduled( 'akismet_schedule_cron_recheck' ) ) {
+ wp_schedule_single_event( time() + 1200, 'akismet_schedule_cron_recheck' );
+ do_action( 'akismet_scheduled_recheck', 'invalid-response-' . $response[1] );
+ }
+
+ self::$prevent_moderation_email_for_these_comments[] = $commentdata;
+ }
+
+ // Delete old comments daily
+ if ( ! wp_next_scheduled( 'akismet_scheduled_delete' ) ) {
+ wp_schedule_event( time(), 'daily', 'akismet_scheduled_delete' );
+ }
+
+ self::set_last_comment( $commentdata );
+ self::fix_scheduled_recheck();
+
+ return $commentdata;
+ }
+
+ public static function get_last_comment() {
+ return self::$last_comment;
+ }
+
+ public static function set_last_comment( $comment ) {
+ if ( is_null( $comment ) ) {
+ self::$last_comment = null;
+ }
+ else {
+ // We filter it here so that it matches the filtered comment data that we'll have to compare against later.
+ // wp_filter_comment expects comment_author_IP
+ self::$last_comment = wp_filter_comment(
+ array_merge(
+ array( 'comment_author_IP' => self::get_ip_address() ),
+ $comment
+ )
+ );
+ }
+ }
+
+ // this fires on wp_insert_comment. we can't update comment_meta when auto_check_comment() runs
+ // because we don't know the comment ID at that point.
+ public static function auto_check_update_meta( $id, $comment ) {
+ // wp_insert_comment() might be called in other contexts, so make sure this is the same comment
+ // as was checked by auto_check_comment
+ if ( is_object( $comment ) && !empty( self::$last_comment ) && is_array( self::$last_comment ) ) {
+ if ( self::matches_last_comment( $comment ) ) {
+
+ load_plugin_textdomain( 'akismet' );
+
+ // normal result: true or false
+ if ( self::$last_comment['akismet_result'] == 'true' ) {
+ update_comment_meta( $comment->comment_ID, 'akismet_result', 'true' );
+ self::update_comment_history( $comment->comment_ID, '', 'check-spam' );
+ if ( $comment->comment_approved != 'spam' )
+ self::update_comment_history(
+ $comment->comment_ID,
+ '',
+ 'status-changed-'.$comment->comment_approved
+ );
+ }
+ elseif ( self::$last_comment['akismet_result'] == 'false' ) {
+ update_comment_meta( $comment->comment_ID, 'akismet_result', 'false' );
+ self::update_comment_history( $comment->comment_ID, '', 'check-ham' );
+ // Status could be spam or trash, depending on the WP version and whether this change applies:
+ // https://core.trac.wordpress.org/changeset/34726
+ if ( $comment->comment_approved == 'spam' || $comment->comment_approved == 'trash' ) {
+ if ( wp_blacklist_check($comment->comment_author, $comment->comment_author_email, $comment->comment_author_url, $comment->comment_content, $comment->comment_author_IP, $comment->comment_agent) )
+ self::update_comment_history( $comment->comment_ID, '', 'wp-blacklisted' );
+ else
+ self::update_comment_history( $comment->comment_ID, '', 'status-changed-'.$comment->comment_approved );
+ }
+ } // abnormal result: error
+ else {
+ update_comment_meta( $comment->comment_ID, 'akismet_error', time() );
+ self::update_comment_history(
+ $comment->comment_ID,
+ '',
+ 'check-error',
+ array( 'response' => substr( self::$last_comment['akismet_result'], 0, 50 ) )
+ );
+ }
+
+ // record the complete original data as submitted for checking
+ if ( isset( self::$last_comment['comment_as_submitted'] ) )
+ update_comment_meta( $comment->comment_ID, 'akismet_as_submitted', self::$last_comment['comment_as_submitted'] );
+
+ if ( isset( self::$last_comment['akismet_pro_tip'] ) )
+ update_comment_meta( $comment->comment_ID, 'akismet_pro_tip', self::$last_comment['akismet_pro_tip'] );
+ }
+ }
+ }
+
+ public static function delete_old_comments() {
+ global $wpdb;
+
+ /**
+ * Determines how many comments will be deleted in each batch.
+ *
+ * @param int The default, as defined by AKISMET_DELETE_LIMIT.
+ */
+ $delete_limit = apply_filters( 'akismet_delete_comment_limit', defined( 'AKISMET_DELETE_LIMIT' ) ? AKISMET_DELETE_LIMIT : 10000 );
+ $delete_limit = max( 1, intval( $delete_limit ) );
+
+ /**
+ * Determines how many days a comment will be left in the Spam queue before being deleted.
+ *
+ * @param int The default number of days.
+ */
+ $delete_interval = apply_filters( 'akismet_delete_comment_interval', 15 );
+ $delete_interval = max( 1, intval( $delete_interval ) );
+
+ while ( $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_id FROM {$wpdb->comments} WHERE DATE_SUB(NOW(), INTERVAL %d DAY) > comment_date_gmt AND comment_approved = 'spam' LIMIT %d", $delete_interval, $delete_limit ) ) ) {
+ if ( empty( $comment_ids ) )
+ return;
+
+ $wpdb->queries = array();
+
+ foreach ( $comment_ids as $comment_id ) {
+ do_action( 'delete_comment', $comment_id );
+ do_action( 'akismet_batch_delete_count', __FUNCTION__ );
+ }
+
+ // Prepared as strings since comment_id is an unsigned BIGINT, and using %d will constrain the value to the maximum signed BIGINT.
+ $format_string = implode( ", ", array_fill( 0, count( $comment_ids ), '%s' ) );
+
+ $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->comments} WHERE comment_id IN ( " . $format_string . " )", $comment_ids ) );
+ $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->commentmeta} WHERE comment_id IN ( " . $format_string . " )", $comment_ids ) );
+
+ clean_comment_cache( $comment_ids );
+ do_action( 'akismet_delete_comment_batch', count( $comment_ids ) );
+ }
+
+ if ( apply_filters( 'akismet_optimize_table', ( mt_rand(1, 5000) == 11), $wpdb->comments ) ) // lucky number
+ $wpdb->query("OPTIMIZE TABLE {$wpdb->comments}");
+ }
+
+ public static function delete_old_comments_meta() {
+ global $wpdb;
+
+ $interval = apply_filters( 'akismet_delete_commentmeta_interval', 15 );
+
+ # enforce a minimum of 1 day
+ $interval = absint( $interval );
+ if ( $interval < 1 )
+ $interval = 1;
+
+ // akismet_as_submitted meta values are large, so expire them
+ // after $interval days regardless of the comment status
+ while ( $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT m.comment_id FROM {$wpdb->commentmeta} as m INNER JOIN {$wpdb->comments} as c USING(comment_id) WHERE m.meta_key = 'akismet_as_submitted' AND DATE_SUB(NOW(), INTERVAL %d DAY) > c.comment_date_gmt LIMIT 10000", $interval ) ) ) {
+ if ( empty( $comment_ids ) )
+ return;
+
+ $wpdb->queries = array();
+
+ foreach ( $comment_ids as $comment_id ) {
+ delete_comment_meta( $comment_id, 'akismet_as_submitted' );
+ do_action( 'akismet_batch_delete_count', __FUNCTION__ );
+ }
+
+ do_action( 'akismet_delete_commentmeta_batch', count( $comment_ids ) );
+ }
+
+ if ( apply_filters( 'akismet_optimize_table', ( mt_rand(1, 5000) == 11), $wpdb->commentmeta ) ) // lucky number
+ $wpdb->query("OPTIMIZE TABLE {$wpdb->commentmeta}");
+ }
+
+ // Clear out comments meta that no longer have corresponding comments in the database
+ public static function delete_orphaned_commentmeta() {
+ global $wpdb;
+
+ $last_meta_id = 0;
+ $start_time = isset( $_SERVER['REQUEST_TIME_FLOAT'] ) ? $_SERVER['REQUEST_TIME_FLOAT'] : microtime( true );
+ $max_exec_time = max( ini_get('max_execution_time') - 5, 3 );
+
+ while ( $commentmeta_results = $wpdb->get_results( $wpdb->prepare( "SELECT m.meta_id, m.comment_id, m.meta_key FROM {$wpdb->commentmeta} as m LEFT JOIN {$wpdb->comments} as c USING(comment_id) WHERE c.comment_id IS NULL AND m.meta_id > %d ORDER BY m.meta_id LIMIT 1000", $last_meta_id ) ) ) {
+ if ( empty( $commentmeta_results ) )
+ return;
+
+ $wpdb->queries = array();
+
+ $commentmeta_deleted = 0;
+
+ foreach ( $commentmeta_results as $commentmeta ) {
+ if ( 'akismet_' == substr( $commentmeta->meta_key, 0, 8 ) ) {
+ delete_comment_meta( $commentmeta->comment_id, $commentmeta->meta_key );
+ do_action( 'akismet_batch_delete_count', __FUNCTION__ );
+ $commentmeta_deleted++;
+ }
+
+ $last_meta_id = $commentmeta->meta_id;
+ }
+
+ do_action( 'akismet_delete_commentmeta_batch', $commentmeta_deleted );
+
+ // If we're getting close to max_execution_time, quit for this round.
+ if ( microtime(true) - $start_time > $max_exec_time )
+ return;
+ }
+
+ if ( apply_filters( 'akismet_optimize_table', ( mt_rand(1, 5000) == 11), $wpdb->commentmeta ) ) // lucky number
+ $wpdb->query("OPTIMIZE TABLE {$wpdb->commentmeta}");
+ }
+
+ // how many approved comments does this author have?
+ public static function get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url ) {
+ global $wpdb;
+
+ if ( !empty( $user_id ) )
+ return (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->comments} WHERE user_id = %d AND comment_approved = 1", $user_id ) );
+
+ if ( !empty( $comment_author_email ) )
+ return (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->comments} WHERE comment_author_email = %s AND comment_author = %s AND comment_author_url = %s AND comment_approved = 1", $comment_author_email, $comment_author, $comment_author_url ) );
+
+ return 0;
+ }
+
+ // get the full comment history for a given comment, as an array in reverse chronological order
+ public static function get_comment_history( $comment_id ) {
+ $history = get_comment_meta( $comment_id, 'akismet_history', false );
+ usort( $history, array( 'Akismet', '_cmp_time' ) );
+ return $history;
+ }
+
+ /**
+ * Log an event for a given comment, storing it in comment_meta.
+ *
+ * @param int $comment_id The ID of the relevant comment.
+ * @param string $message The string description of the event. No longer used.
+ * @param string $event The event code.
+ * @param array $meta Metadata about the history entry. e.g., the user that reported or changed the status of a given comment.
+ */
+ public static function update_comment_history( $comment_id, $message, $event=null, $meta=null ) {
+ global $current_user;
+
+ $user = '';
+
+ $event = array(
+ 'time' => self::_get_microtime(),
+ 'event' => $event,
+ );
+
+ if ( is_object( $current_user ) && isset( $current_user->user_login ) ) {
+ $event['user'] = $current_user->user_login;
+ }
+
+ if ( ! empty( $meta ) ) {
+ $event['meta'] = $meta;
+ }
+
+ // $unique = false so as to allow multiple values per comment
+ $r = add_comment_meta( $comment_id, 'akismet_history', $event, false );
+ }
+
+ public static function check_db_comment( $id, $recheck_reason = 'recheck_queue' ) {
+ global $wpdb;
+
+ $c = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->comments} WHERE comment_ID = %d", $id ), ARRAY_A );
+
+ if ( ! $c ) {
+ return new WP_Error( 'invalid-comment-id', __( 'Comment not found.', 'akismet' ) );
+ }
+
+ $c['user_ip'] = $c['comment_author_IP'];
+ $c['user_agent'] = $c['comment_agent'];
+ $c['referrer'] = '';
+ $c['blog'] = get_option( 'home' );
+ $c['blog_lang'] = get_locale();
+ $c['blog_charset'] = get_option('blog_charset');
+ $c['permalink'] = get_permalink($c['comment_post_ID']);
+ $c['recheck_reason'] = $recheck_reason;
+
+ $c['user_role'] = '';
+ if ( ! empty( $c['user_ID'] ) ) {
+ $c['user_role'] =