Changeset 3752295
- Timestamp:
- 10/17/2026 07:13:00 PM (5 weeks ago)
- Location:
- linkbraid
- Files:
-
- 275 added
- 4 edited
-
tags/1.0.8 (added)
-
tags/1.0.8/admin (added)
-
tags/1.0.8/admin/css (added)
-
tags/1.0.8/admin/css/admin.css (added)
-
tags/1.0.8/admin/css/tokens.css (added)
-
tags/1.0.8/admin/fonts (added)
-
tags/1.0.8/admin/fonts/OFL-FONTS.txt (added)
-
tags/1.0.8/admin/fonts/inter-latin-ext.woff2 (added)
-
tags/1.0.8/admin/fonts/inter-latin.woff2 (added)
-
tags/1.0.8/admin/fonts/spacegrotesk-latin-ext.woff2 (added)
-
tags/1.0.8/admin/fonts/spacegrotesk-latin.woff2 (added)
-
tags/1.0.8/admin/js (added)
-
tags/1.0.8/admin/js/admin.js (added)
-
tags/1.0.8/admin/js/link-map.js (added)
-
tags/1.0.8/admin/js/vendor (added)
-
tags/1.0.8/admin/js/vendor/LICENSE-d3.txt (added)
-
tags/1.0.8/admin/js/vendor/d3.v7.min.js (added)
-
tags/1.0.8/admin/views (added)
-
tags/1.0.8/admin/views/autobraid.php (added)
-
tags/1.0.8/admin/views/dashboard.php (added)
-
tags/1.0.8/admin/views/history.php (added)
-
tags/1.0.8/admin/views/link-map.php (added)
-
tags/1.0.8/admin/views/posts.php (added)
-
tags/1.0.8/admin/views/priority.php (added)
-
tags/1.0.8/admin/views/reports.php (added)
-
tags/1.0.8/admin/views/settings.php (added)
-
tags/1.0.8/admin/views/strands.php (added)
-
tags/1.0.8/includes (added)
-
tags/1.0.8/includes/class-admin.php (added)
-
tags/1.0.8/includes/class-ajax-handler.php (added)
-
tags/1.0.8/includes/class-anchors.php (added)
-
tags/1.0.8/includes/class-attributes.php (added)
-
tags/1.0.8/includes/class-autobraid.php (added)
-
tags/1.0.8/includes/class-broken-links.php (added)
-
tags/1.0.8/includes/class-clicks.php (added)
-
tags/1.0.8/includes/class-content.php (added)
-
tags/1.0.8/includes/class-database.php (added)
-
tags/1.0.8/includes/class-health.php (added)
-
tags/1.0.8/includes/class-jobs.php (added)
-
tags/1.0.8/includes/class-link-manager.php (added)
-
tags/1.0.8/includes/class-rest-api.php (added)
-
tags/1.0.8/includes/class-strands.php (added)
-
tags/1.0.8/includes/class-terms.php (added)
-
tags/1.0.8/includes/fs-config.php (added)
-
tags/1.0.8/includes/i18n-js.php (added)
-
tags/1.0.8/linkbraid.php (added)
-
tags/1.0.8/public (added)
-
tags/1.0.8/public/click.js (added)
-
tags/1.0.8/readme.txt (added)
-
tags/1.0.8/uninstall.php (added)
-
tags/1.0.8/vendor (added)
-
tags/1.0.8/vendor/freemius (added)
-
tags/1.0.8/vendor/freemius/LICENSE.txt (added)
-
tags/1.0.8/vendor/freemius/README.md (added)
-
tags/1.0.8/vendor/freemius/assets (added)
-
tags/1.0.8/vendor/freemius/assets/css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/account.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/add-ons.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/affiliation.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/checkout.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/common.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/connect.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/debug.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/index.php (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/optout.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/admin/plugins.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/customizer.css (added)
-
tags/1.0.8/vendor/freemius/assets/css/index.php (added)
-
tags/1.0.8/vendor/freemius/assets/img (added)
-
tags/1.0.8/vendor/freemius/assets/img/index.php (added)
-
tags/1.0.8/vendor/freemius/assets/img/plugin-icon.png (added)
-
tags/1.0.8/vendor/freemius/assets/img/theme-icon.png (added)
-
tags/1.0.8/vendor/freemius/assets/index.php (added)
-
tags/1.0.8/vendor/freemius/assets/js (added)
-
tags/1.0.8/vendor/freemius/assets/js/index.php (added)
-
tags/1.0.8/vendor/freemius/assets/js/jquery.form.js (added)
-
tags/1.0.8/vendor/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/1.0.8/vendor/freemius/assets/js/postmessage.js (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/14fb1bd5b7c41648488b06147f50a0dc.svg (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/178afa6030e76635dbe835e111d2c507.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/27b5a722a5553d9de0170325267fccec.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/4375c4a3ddc6f637c2ab9a2d7220f91e.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/45da596e2b512ffc3bb638baaf0fdc4e.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/a34e046aee1702a5690679750a7f4d0f.svg (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/b09d0b38b627c2fa564d050f79f2f064.svg (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/c03f665db27af43971565560adfba594.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/cb5fc4f6ec7ada72e986f6e7dde365bf.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/d65812c447b4523b42d59018e1c0bb53.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/f3aac72a8e63997d6bb888f816457e9b.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/fde48e4609a6ddc11d639fc2421f2afd.png (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/freemius-pricing.js (added)
-
tags/1.0.8/vendor/freemius/assets/js/pricing/freemius-pricing.js.LICENSE.txt (added)
-
tags/1.0.8/vendor/freemius/composer.json (added)
-
tags/1.0.8/vendor/freemius/config.php (added)
-
tags/1.0.8/vendor/freemius/includes (added)
-
tags/1.0.8/vendor/freemius/includes/class-freemius-abstract.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-freemius.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-admin-notices.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-api.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-garbage-collector.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-hook-snapshot.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-lock.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-logger.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-options.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-security.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-storage.php (added)
-
tags/1.0.8/vendor/freemius/includes/class-fs-user-lock.php (added)
-
tags/1.0.8/vendor/freemius/includes/customizer (added)
-
tags/1.0.8/vendor/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/1.0.8/vendor/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/1.0.8/vendor/freemius/includes/customizer/index.php (added)
-
tags/1.0.8/vendor/freemius/includes/debug (added)
-
tags/1.0.8/vendor/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/1.0.8/vendor/freemius/includes/debug/debug-bar-start.php (added)
-
tags/1.0.8/vendor/freemius/includes/debug/index.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-billing.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-entity.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-payment.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-site.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/class-fs-user.php (added)
-
tags/1.0.8/vendor/freemius/includes/entities/index.php (added)
-
tags/1.0.8/vendor/freemius/includes/fs-core-functions.php (added)
-
tags/1.0.8/vendor/freemius/includes/fs-essential-functions.php (added)
-
tags/1.0.8/vendor/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/1.0.8/vendor/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/1.0.8/vendor/freemius/includes/index.php (added)
-
tags/1.0.8/vendor/freemius/includes/l10n.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-checkout-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-contact-form-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-debug-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/1.0.8/vendor/freemius/includes/managers/index.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/Exceptions (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/LICENSE.txt (added)
-
tags/1.0.8/vendor/freemius/includes/sdk/index.php (added)
-
tags/1.0.8/vendor/freemius/includes/supplements (added)
-
tags/1.0.8/vendor/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/1.0.8/vendor/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/1.0.8/vendor/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/1.0.8/vendor/freemius/includes/supplements/index.php (added)
-
tags/1.0.8/vendor/freemius/index.php (added)
-
tags/1.0.8/vendor/freemius/languages (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-da_DK.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-de_DE.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-es_ES.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-fr_FR.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-he_IL.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-hu_HU.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-it_IT.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-ja.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-nl_NL.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-ru_RU.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-ta.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius-zh_CN.mo (added)
-
tags/1.0.8/vendor/freemius/languages/freemius.pot (added)
-
tags/1.0.8/vendor/freemius/languages/index.php (added)
-
tags/1.0.8/vendor/freemius/require.php (added)
-
tags/1.0.8/vendor/freemius/start.php (added)
-
tags/1.0.8/vendor/freemius/templates (added)
-
tags/1.0.8/vendor/freemius/templates/account (added)
-
tags/1.0.8/vendor/freemius/templates/account.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/billing.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/partials (added)
-
tags/1.0.8/vendor/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/partials/addon.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/partials/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/partials/site.php (added)
-
tags/1.0.8/vendor/freemius/templates/account/payments.php (added)
-
tags/1.0.8/vendor/freemius/templates/add-ons.php (added)
-
tags/1.0.8/vendor/freemius/templates/add-trial-to-pricing.php (added)
-
tags/1.0.8/vendor/freemius/templates/admin-notice.php (added)
-
tags/1.0.8/vendor/freemius/templates/ajax-loader.php (added)
-
tags/1.0.8/vendor/freemius/templates/api-connectivity-message-js.php (added)
-
tags/1.0.8/vendor/freemius/templates/auto-installation.php (added)
-
tags/1.0.8/vendor/freemius/templates/checkout (added)
-
tags/1.0.8/vendor/freemius/templates/checkout.php (added)
-
tags/1.0.8/vendor/freemius/templates/checkout/frame.php (added)
-
tags/1.0.8/vendor/freemius/templates/checkout/process-redirect.php (added)
-
tags/1.0.8/vendor/freemius/templates/checkout/redirect.php (added)
-
tags/1.0.8/vendor/freemius/templates/clone-resolution-js.php (added)
-
tags/1.0.8/vendor/freemius/templates/connect (added)
-
tags/1.0.8/vendor/freemius/templates/connect.php (added)
-
tags/1.0.8/vendor/freemius/templates/connect/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/connect/permission.php (added)
-
tags/1.0.8/vendor/freemius/templates/connect/permissions-group.php (added)
-
tags/1.0.8/vendor/freemius/templates/contact.php (added)
-
tags/1.0.8/vendor/freemius/templates/debug (added)
-
tags/1.0.8/vendor/freemius/templates/debug.php (added)
-
tags/1.0.8/vendor/freemius/templates/debug/api-calls.php (added)
-
tags/1.0.8/vendor/freemius/templates/debug/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/debug/logger.php (added)
-
tags/1.0.8/vendor/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/1.0.8/vendor/freemius/templates/debug/scheduled-crons.php (added)
-
tags/1.0.8/vendor/freemius/templates/email.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms (added)
-
tags/1.0.8/vendor/freemius/templates/forms/affiliation.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/data-debug-mode.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/deactivation (added)
-
tags/1.0.8/vendor/freemius/templates/forms/deactivation/contact.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/deactivation/form.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/deactivation/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/email-address-update.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/license-activation.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/optout.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/resend-key.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/trial-start.php (added)
-
tags/1.0.8/vendor/freemius/templates/forms/user-change.php (added)
-
tags/1.0.8/vendor/freemius/templates/gdpr-optin-js.php (added)
-
tags/1.0.8/vendor/freemius/templates/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/js (added)
-
tags/1.0.8/vendor/freemius/templates/js/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/js/jquery.content-change.php (added)
-
tags/1.0.8/vendor/freemius/templates/js/open-license-activation.php (added)
-
tags/1.0.8/vendor/freemius/templates/js/permissions.php (added)
-
tags/1.0.8/vendor/freemius/templates/js/style-premium-theme.php (added)
-
tags/1.0.8/vendor/freemius/templates/partials (added)
-
tags/1.0.8/vendor/freemius/templates/partials/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/partials/network-activation.php (added)
-
tags/1.0.8/vendor/freemius/templates/plugin-icon.php (added)
-
tags/1.0.8/vendor/freemius/templates/plugin-info (added)
-
tags/1.0.8/vendor/freemius/templates/plugin-info/description.php (added)
-
tags/1.0.8/vendor/freemius/templates/plugin-info/features.php (added)
-
tags/1.0.8/vendor/freemius/templates/plugin-info/index.php (added)
-
tags/1.0.8/vendor/freemius/templates/plugin-info/screenshots.php (added)
-
tags/1.0.8/vendor/freemius/templates/pricing.php (added)
-
tags/1.0.8/vendor/freemius/templates/secure-https-header.php (added)
-
tags/1.0.8/vendor/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/1.0.8/vendor/freemius/templates/tabs-capture-js.php (added)
-
tags/1.0.8/vendor/freemius/templates/tabs.php (added)
-
trunk/includes/class-admin.php (modified) (2 diffs)
-
trunk/linkbraid.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
linkbraid/trunk/includes/class-admin.php
r3750037 r3752295 40 40 add_action('admin_enqueue_scripts', [$this, 'enqueue_assets']); 41 41 add_action('admin_init', [$this, 'maybe_redirect_to_wizard']); 42 add_action('admin_init', [$this, 'review_notice_action']); 43 add_action('admin_notices', [$this, 'review_notice']); 42 44 add_filter('admin_body_class', [$this, 'wizard_body_class']); 43 45 add_action('add_meta_boxes', [$this, 'register_metaboxes']); … … 260 262 $gsc_notice = current_user_can('manage_options') ? $this->gsc_return_notice() : null; 261 263 include LINKBRAID_PATH . 'admin/views/wizard.php'; 264 } 265 266 /** Days of use, after the first link scan, before Linkbraid asks for a review. */ 267 const REVIEW_AFTER_DAYS = 7; 268 const REVIEW_URL = 'https://wordpress.org/support/plugin/linkbraid/reviews/#new-post'; 269 270 /** 271 * A one-time review request on Linkbraid's own screens only: shown after a 272 * week of use and a completed link scan. "Maybe later" snoozes it for 30 273 * days; the other two buttons end it for this user. 274 */ 275 public function review_notice() { 276 if (!current_user_can('manage_options')) return; 277 $screen = function_exists('get_current_screen') ? get_current_screen() : null; 278 if (!$screen || strpos((string) $screen->id, 'linkbraid') === false || strpos((string) $screen->id, 'linkbraid-wizard') !== false) return; 279 $first_seen = (int) get_option('lbraid_first_seen'); 280 if (!$first_seen) { 281 update_option('lbraid_first_seen', time(), false); 282 return; 283 } 284 if (time() - $first_seen < self::REVIEW_AFTER_DAYS * DAY_IN_SECONDS) return; 285 $state = (string) get_user_meta(get_current_user_id(), 'lbraid_review_notice', true); 286 if ($state === 'done' || (ctype_digit($state) && time() < (int) $state)) return; 287 global $wpdb; 288 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- a single-row existence check on the plugin's own table, only on Linkbraid screens. 289 if (!$wpdb->get_var("SELECT 1 FROM {$wpdb->prefix}lbraid_existing_links LIMIT 1")) return; 290 $action_url = function ($action) { 291 return wp_nonce_url(add_query_arg('lbraid_review', $action), 'lbraid_review'); 292 }; 293 ?> 294 <div class="notice notice-info lbraid-review-notice"> 295 <p><strong><?php esc_html_e( 'Is Linkbraid helping you build better internal links?', 'linkbraid' ); ?></strong> 296 <?php esc_html_e( 'A short review on WordPress.org helps other site owners find the plugin. It takes about a minute.', 'linkbraid' ); ?></p> 297 <p> 298 <a class="button button-primary" href="<?php echo esc_url($action_url('review')); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Leave a review', 'linkbraid' ); ?></a> 299 <a class="button" href="<?php echo esc_url($action_url('later')); ?>"><?php esc_html_e( 'Maybe later', 'linkbraid' ); ?></a> 300 <a class="button-link" href="<?php echo esc_url($action_url('done')); ?>"><?php esc_html_e( 'I already left one', 'linkbraid' ); ?></a> 301 </p> 302 </div> 303 <?php 304 } 305 306 /** Handles the review notice buttons (nonce-checked links). */ 307 public function review_notice_action() { 308 if (!isset($_GET['lbraid_review'])) return; 309 $action = sanitize_key(wp_unslash($_GET['lbraid_review'])); 310 if (!in_array($action, ['review', 'later', 'done'], true) || !current_user_can('manage_options')) return; 311 check_admin_referer('lbraid_review'); 312 update_user_meta(get_current_user_id(), 'lbraid_review_notice', $action === 'later' ? (string) (time() + 30 * DAY_IN_SECONDS) : 'done'); 313 if ($action === 'review') { 314 // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect -- fixed wordpress.org review form, never user input. 315 wp_redirect(self::REVIEW_URL); 316 exit; 317 } 318 wp_safe_redirect(remove_query_arg(['lbraid_review', '_wpnonce'])); 319 exit; 262 320 } 263 321 -
linkbraid/trunk/linkbraid.php
r3751084 r3752295 4 4 * Plugin URI: https://linkbraid.com/ 5 5 * Description: Don't add links. Weave your site. Linkbraid maps your site as a graph, finds the missing connections, and helps you build clusters that search engines can actually follow. 6 * Version: 1.0. 76 * Version: 1.0.8 7 7 * Author: Linkbraid 8 8 * License: GPL v2 or later … … 17 17 // A second copy must not redeclare global classes/functions. 18 18 if (defined('LINKBRAID_VERSION')) return; 19 define('LINKBRAID_VERSION', '1.0. 7');19 define('LINKBRAID_VERSION', '1.0.8'); 20 20 define('LINKBRAID_PATH', plugin_dir_path(__FILE__)); 21 21 define('LINKBRAID_URL', plugin_dir_url(__FILE__)); -
linkbraid/trunk/readme.txt
r3751084 r3752295 1 1 === Linkbraid - Internal Linking, Link Map & Broken Link Checker === 2 2 Contributors: linkbraid 3 Tags: internal link s, seo, broken links, anchor text, link checker3 Tags: internal linking, internal links, broken links, link checker, orphan pages 4 4 Requires at least: 5.8 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 77 Stable tag: 1.0.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Don't add links. Weave your site. Internal link map, broken-link checker, anchor reports, redirect finderand rule-based auto-linking.11 Internal linking for WordPress: interactive link map, orphan pages, broken link checker, anchor reports and rule-based auto-linking. 12 12 13 13 == Description == 14 14 15 Linkbraid maps your site as a graph, shows you the missing connections, and helps you build content clusters that search engines can actually follow.15 Linkbraid shows every internal link on your site as an interactive map, finds orphan pages and broken links, and helps you build internal linking that search engines can follow. Don't add links. Weave your site. 16 16 17 17 Everything runs on your own server. Linkbraid Lite sends no content anywhere and needs no account or API key. … … 105 105 == Changelog == 106 106 107 = 1.0.8 = 108 * Added: a one-time request for a review on the Linkbraid screens, shown after a week of use and a completed link scan. "Maybe later" hides it for 30 days; it never appears on other admin pages. 109 * Improved: plugin directory description and tags. 110 107 111 = 1.0.7 = 108 112 * Fixed content appearing several times in the Knots list after posts were created with a post-duplication plugin. Copied hidden plugin data is repaired once on update and cleaned automatically afterwards. -
linkbraid/trunk/uninstall.php
r3750037 r3752295 43 43 $wpdb->query($wpdb->prepare("DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE %s", $wpdb->esc_like('_lbraid_') . '%')); 44 44 45 // Per-user state of the review request. 46 delete_metadata('user', 0, 'lbraid_review_notice', '', true); 47 45 48 wp_clear_scheduled_hook('lbraid_job_tick');
Note:
See TracChangeset
for help on using the changeset viewer.