Changeset 3365809
- Timestamp:
- 09/22/2025 12:14:21 PM (6 months ago)
- Location:
- diagnoseo
- Files:
-
- 3 edited
- 51 copied
-
tags/1.2.54 (copied) (copied from diagnoseo/trunk)
-
tags/1.2.54/css/diagnoseo-admin.css (copied) (copied from diagnoseo/trunk/css/diagnoseo-admin.css)
-
tags/1.2.54/css/diagnoseo-editor.css (copied) (copied from diagnoseo/trunk/css/diagnoseo-editor.css)
-
tags/1.2.54/css/diagnoseo.css (copied) (copied from diagnoseo/trunk/css/diagnoseo.css)
-
tags/1.2.54/diagnoseo.php (copied) (copied from diagnoseo/trunk/diagnoseo.php) (1 diff)
-
tags/1.2.54/includes/actions.php (copied) (copied from diagnoseo/trunk/includes/actions.php)
-
tags/1.2.54/includes/admin-bar-menu.php (copied) (copied from diagnoseo/trunk/includes/admin-bar-menu.php)
-
tags/1.2.54/includes/api-endpoints.php (copied) (copied from diagnoseo/trunk/includes/api-endpoints.php)
-
tags/1.2.54/includes/assets.php (copied) (copied from diagnoseo/trunk/includes/assets.php)
-
tags/1.2.54/includes/blocks.php (copied) (copied from diagnoseo/trunk/includes/blocks.php)
-
tags/1.2.54/includes/blocks/breadcrumbs/breadcrumbs.php (copied) (copied from diagnoseo/trunk/includes/blocks/breadcrumbs/breadcrumbs.php)
-
tags/1.2.54/includes/category-links.php (copied) (copied from diagnoseo/trunk/includes/category-links.php)
-
tags/1.2.54/includes/class-diagnoseo-breadcrumbs.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-breadcrumbs.php)
-
tags/1.2.54/includes/class-diagnoseo-generalsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-generalsettings.php)
-
tags/1.2.54/includes/class-diagnoseo-metabox-placeholders.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-metabox-placeholders.php)
-
tags/1.2.54/includes/class-diagnoseo-metatags.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-metatags.php)
-
tags/1.2.54/includes/class-diagnoseo-metatagsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-metatagsettings.php)
-
tags/1.2.54/includes/class-diagnoseo-postmetaimport.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-postmetaimport.php)
-
tags/1.2.54/includes/class-diagnoseo-pro-version.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-pro-version.php)
-
tags/1.2.54/includes/class-diagnoseo-schemasettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-schemasettings.php)
-
tags/1.2.54/includes/class-diagnoseo-scripts.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-scripts.php) (3 diffs)
-
tags/1.2.54/includes/class-diagnoseo-scriptsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-scriptsettings.php)
-
tags/1.2.54/includes/class-diagnoseo-settings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-settings.php)
-
tags/1.2.54/includes/class-diagnoseo-settingshelper.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-settingshelper.php)
-
tags/1.2.54/includes/class-diagnoseo-sitemapsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-sitemapsettings.php)
-
tags/1.2.54/includes/class-diagnoseo-socialsettings.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-socialsettings.php)
-
tags/1.2.54/includes/class-diagnoseo-toolspage.php (copied) (copied from diagnoseo/trunk/includes/class-diagnoseo-toolspage.php)
-
tags/1.2.54/includes/content-watcher-meta.php (copied) (copied from diagnoseo/trunk/includes/content-watcher-meta.php)
-
tags/1.2.54/includes/content-watcher-scripts.php (copied) (copied from diagnoseo/trunk/includes/content-watcher-scripts.php)
-
tags/1.2.54/includes/css-variables.php (copied) (copied from diagnoseo/trunk/includes/css-variables.php)
-
tags/1.2.54/includes/customize/breadcrumbs.php (copied) (copied from diagnoseo/trunk/includes/customize/breadcrumbs.php)
-
tags/1.2.54/includes/customize/customize-utils.php (copied) (copied from diagnoseo/trunk/includes/customize/customize-utils.php)
-
tags/1.2.54/includes/customize/deeplink.php (copied) (copied from diagnoseo/trunk/includes/customize/deeplink.php)
-
tags/1.2.54/includes/customize/defaults.php (copied) (copied from diagnoseo/trunk/includes/customize/defaults.php)
-
tags/1.2.54/includes/metabox-seo-settings.php (copied) (copied from diagnoseo/trunk/includes/metabox-seo-settings.php)
-
tags/1.2.54/includes/option-defaults.php (copied) (copied from diagnoseo/trunk/includes/option-defaults.php)
-
tags/1.2.54/includes/sitemap.php (copied) (copied from diagnoseo/trunk/includes/sitemap.php)
-
tags/1.2.54/includes/structured-data.php (copied) (copied from diagnoseo/trunk/includes/structured-data.php)
-
tags/1.2.54/includes/utils.php (copied) (copied from diagnoseo/trunk/includes/utils.php)
-
tags/1.2.54/js/blocks/breadcrumbs.min.js (copied) (copied from diagnoseo/trunk/js/blocks/breadcrumbs.min.js)
-
tags/1.2.54/js/build/index.js (copied) (copied from diagnoseo/trunk/js/build/index.js)
-
tags/1.2.54/js/diagnoseo-checks.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo-checks.min.js)
-
tags/1.2.54/js/diagnoseo-editor-metabox.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo-editor-metabox.min.js)
-
tags/1.2.54/js/diagnoseo-editor.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo-editor.min.js)
-
tags/1.2.54/js/diagnoseo.min.js (copied) (copied from diagnoseo/trunk/js/diagnoseo.min.js)
-
tags/1.2.54/js/formats/build/index.asset.php (copied) (copied from diagnoseo/trunk/js/formats/build/index.asset.php)
-
tags/1.2.54/js/formats/build/index.js (copied) (copied from diagnoseo/trunk/js/formats/build/index.js)
-
tags/1.2.54/languages (copied) (copied from diagnoseo/trunk/languages)
-
tags/1.2.54/readme.txt (copied) (copied from diagnoseo/trunk/readme.txt) (1 diff)
-
tags/1.2.54/smtconfig.json (copied) (copied from diagnoseo/trunk/smtconfig.json)
-
tags/1.2.54/wpml-config.xml (copied) (copied from diagnoseo/trunk/wpml-config.xml)
-
trunk/diagnoseo.php (modified) (1 diff)
-
trunk/includes/class-diagnoseo-scripts.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
diagnoseo/tags/1.2.54/diagnoseo.php
r3364584 r3365809 4 4 * Plugin URI: https://diagnoseo.com/wordpress-seo-plugin/ 5 5 * Description: Powerful SEO plugin for WordPress. The most lightweight and complete SEO solution on the market! It includes best-in-class content analyzer and keyword placement checkpoints. 6 * Version: 1.2.5 36 * Version: 1.2.54 7 7 * Author: DiagnoSEO 8 8 * Author URI: https://diagnoseo.com/ -
diagnoseo/tags/1.2.54/includes/class-diagnoseo-scripts.php
r3364584 r3365809 27 27 */ 28 28 public function embed_header_scripts() { 29 $script = get_option( 'diagnoseo_header_scripts' ); 30 if ( ! empty( $script ) ) { 31 echo '<script>' . wp_strip_all_tags( $script ) . '</script>'; //phpcs:ignore 32 } 29 echo $this::prepare_output( 'diagnoseo_header_scripts' ); //phpcs:ignore 33 30 } 34 31 /** … … 36 33 */ 37 34 public function embed_body_scripts() { 38 $script = get_option( 'diagnoseo_body_scripts' ); 39 if ( ! empty( $script ) ) { 40 echo '<script>' . wp_strip_all_tags( $script ) . '</script>'; //phpcs:ignore 41 } 35 echo $this::prepare_output( 'diagnoseo_body_scripts' ); //phpcs:ignore 42 36 } 43 37 … … 46 40 */ 47 41 public function embed_footer_scripts() { 48 $script = get_option( 'diagnoseo_footer_scripts' ); 49 if ( ! empty( $script ) ) { 50 echo '<script>' . wp_strip_all_tags( $script ) . '</script>'; //phpcs:ignore 42 echo $this::prepare_output( 'diagnoseo_footer_scripts' ); //phpcs:ignore 43 } 44 45 /** 46 * Prepares script output - checks if <script> tags are present and adds them if necessary 47 * 48 * Returns the original string if it already contains both an opening <script ...> 49 * and a closing </script> tag (in any case and with any attributes). Otherwise, 50 * it wraps the content in <script>...</script>. 51 * 52 * @param string $option_name Option to fetch the script from. 53 * @return string Prepared script block ready for output. 54 */ 55 public static function prepare_output( $option_name ) { 56 $script = get_option( $option_name, '' ); 57 if ( empty( $script ) ) { 58 return ''; 51 59 } 60 61 $script = trim( (string) $script ); 62 63 $has_open = (bool) preg_match( '/<\s*script\b[^>]*>/i', $script ); 64 $has_close = (bool) preg_match( '/<\s*\/\s*script\s*>/i', $script ); 65 66 if ( $has_open && $has_close ) { 67 return $script; 68 } 69 70 return "<script>\n{$script}\n</script>"; 52 71 } 53 72 } -
diagnoseo/tags/1.2.54/readme.txt
r3364584 r3365809 4 4 Requires at least: 4.7 5 5 Tested up to: 6.8 6 Stable tag: 1.2.5 36 Stable tag: 1.2.54 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later -
diagnoseo/trunk/diagnoseo.php
r3364584 r3365809 4 4 * Plugin URI: https://diagnoseo.com/wordpress-seo-plugin/ 5 5 * Description: Powerful SEO plugin for WordPress. The most lightweight and complete SEO solution on the market! It includes best-in-class content analyzer and keyword placement checkpoints. 6 * Version: 1.2.5 36 * Version: 1.2.54 7 7 * Author: DiagnoSEO 8 8 * Author URI: https://diagnoseo.com/ -
diagnoseo/trunk/includes/class-diagnoseo-scripts.php
r3364584 r3365809 27 27 */ 28 28 public function embed_header_scripts() { 29 $script = get_option( 'diagnoseo_header_scripts' ); 30 if ( ! empty( $script ) ) { 31 echo '<script>' . wp_strip_all_tags( $script ) . '</script>'; //phpcs:ignore 32 } 29 echo $this::prepare_output( 'diagnoseo_header_scripts' ); //phpcs:ignore 33 30 } 34 31 /** … … 36 33 */ 37 34 public function embed_body_scripts() { 38 $script = get_option( 'diagnoseo_body_scripts' ); 39 if ( ! empty( $script ) ) { 40 echo '<script>' . wp_strip_all_tags( $script ) . '</script>'; //phpcs:ignore 41 } 35 echo $this::prepare_output( 'diagnoseo_body_scripts' ); //phpcs:ignore 42 36 } 43 37 … … 46 40 */ 47 41 public function embed_footer_scripts() { 48 $script = get_option( 'diagnoseo_footer_scripts' ); 49 if ( ! empty( $script ) ) { 50 echo '<script>' . wp_strip_all_tags( $script ) . '</script>'; //phpcs:ignore 42 echo $this::prepare_output( 'diagnoseo_footer_scripts' ); //phpcs:ignore 43 } 44 45 /** 46 * Prepares script output - checks if <script> tags are present and adds them if necessary 47 * 48 * Returns the original string if it already contains both an opening <script ...> 49 * and a closing </script> tag (in any case and with any attributes). Otherwise, 50 * it wraps the content in <script>...</script>. 51 * 52 * @param string $option_name Option to fetch the script from. 53 * @return string Prepared script block ready for output. 54 */ 55 public static function prepare_output( $option_name ) { 56 $script = get_option( $option_name, '' ); 57 if ( empty( $script ) ) { 58 return ''; 51 59 } 60 61 $script = trim( (string) $script ); 62 63 $has_open = (bool) preg_match( '/<\s*script\b[^>]*>/i', $script ); 64 $has_close = (bool) preg_match( '/<\s*\/\s*script\s*>/i', $script ); 65 66 if ( $has_open && $has_close ) { 67 return $script; 68 } 69 70 return "<script>\n{$script}\n</script>"; 52 71 } 53 72 } -
diagnoseo/trunk/readme.txt
r3364584 r3365809 4 4 Requires at least: 4.7 5 5 Tested up to: 6.8 6 Stable tag: 1.2.5 36 Stable tag: 1.2.54 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.