Changeset 3469341
- Timestamp:
- 02/25/2026 10:44:01 AM (5 weeks ago)
- Location:
- sitelint/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
admin/sitelint-admin.php (modified) (3 diffs)
-
includes/sitelint-audits.php (modified) (1 diff)
-
public/sitelint-public.php (modified) (2 diffs)
-
sitelint.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sitelint/trunk/README.txt
r3420097 r3469341 3 3 Tags: automated, audits, accessibility, seo, performance 4 4 Requires at least: 4.7 5 Tested up to: 6.9 6 Stable tag: 1.5.2 35 Tested up to: 6.9.1 6 Stable tag: 1.5.24 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 29 29 30 30 == Changelog == 31 32 = 1.5.24 = 33 34 * Ensure that SiteLint API calls are only made on pages within the SiteLint plugin context 31 35 32 36 = 1.5.23 = -
sitelint/trunk/admin/sitelint-admin.php
r3229645 r3469341 128 128 $capability = sitelint_get_publish_cap(); 129 129 130 add_menu_page(130 $hook = add_menu_page( 131 131 __('SiteLint', 'sitelint'), 132 132 __('SiteLint', 'sitelint'), … … 136 136 'dashicons-welcome-view-site' 137 137 ); 138 139 add_action( "load-$hook", [$this, 'performAction'] ); 138 140 } 139 141 … … 154 156 public function performAction() 155 157 { 158 if (empty($_GET['page']) || $_GET['page'] !== 'sitelint') { 159 return; 160 } 161 156 162 $options = $this->getOptions(); 157 163 $action = null; -
sitelint/trunk/includes/sitelint-audits.php
r3244381 r3469341 127 127 128 128 SiteLint_Loader::add_action('admin_menu', $plugin_admin, 'addMenuItems'); 129 SiteLint_Loader::add_action('admin_init', $plugin_admin, 'performAction');130 129 SiteLint_Loader::add_action('in_admin_header', $plugin_admin, 'handleInAdminHeader'); 131 130 -
sitelint/trunk/public/sitelint-public.php
r3392540 r3469341 68 68 public function enqueue_scripts() 69 69 { 70 if (is_admin()) { 71 return; 72 } 73 70 74 // Empty $sitelint['active'] means the user is not authenticated using the SiteLint account; not logged in 71 75 $sitelint = get_option('sitelint'); … … 77 81 $isApiTokenAvailable = !empty($sitelint['apiToken']) && (is_string($sitelint['apiToken']) && $sitelint['apiToken'] !== 'null'); 78 82 $auditorUrlParam = $isApiTokenAvailable ? "?tokenId=" . esc_html($sitelint['apiToken']) : ""; 79 80 if (is_admin()) {81 return;82 }83 83 84 84 // Note: $sitelint['apiToken'] === 'null' is used because initial value was saved from null previously, but WordPress converts it to string 'null' -
sitelint/trunk/sitelint.php
r3420097 r3469341 10 10 * Plugin Name: SiteLint 11 11 * Description: SiteLint - official plugin. Accessibility, SEO, Performance, Security, Privacy, Technical issues in one place. Client-side & real-time checker. 12 * Version: 1.5.2 312 * Version: 1.5.24 13 13 * Author: SiteLint 14 14 * Author URI: https://www.sitelint.com … … 27 27 * Currently plugin version. Use SemVer - https://semver.org 28 28 */ 29 define('SITELINT_VERSION', '1.5.2 3');29 define('SITELINT_VERSION', '1.5.24'); 30 30 31 31 /**
Note: See TracChangeset
for help on using the changeset viewer.