Plugin Directory

Changeset 3214819


Ignore:
Timestamp:
12/30/2024 12:07:59 PM (14 months ago)
Author:
diagnoseo
Message:

schema bug fixed

Location:
diagnoseo
Files:
3 edited
47 copied

Legend:

Unmodified
Added
Removed
  • diagnoseo/tags/1.2.46/diagnoseo.php

    r3213883 r3214819  
    44 * Plugin URI: https://diagnoseo.com/wordpress-seo-plugin/
    55 * 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.45
     6 * Version: 1.2.46
    77 * Author: DiagnoSEO
    88 * Author URI: https://diagnoseo.com/
  • diagnoseo/tags/1.2.46/includes/structured-data.php

    r3212257 r3214819  
    2424
    2525    if ( empty( $post_schema_type ) ) {
    26         $post_type        = get_post_type();
    27         $post_schema_type = get_option( 'diagnoseo_' . $post_type . '_schema_type', $diagnoseo_defaults[ 'diagnoseo_' . $post_type . '_schema_type' ] );
     26        $post_type       = get_post_type();
     27        $schema_type_key = 'diagnoseo_' . $post_type . '_schema_type';
     28        if ( isset( $diagnoseo_defaults[ $schema_type_key ] ) ) {
     29            $post_schema_type = get_option( 'diagnoseo_' . $post_type . '_schema_type', $diagnoseo_defaults[ $schema_type_key ] );
     30        } else {
     31            $post_schema_type = get_option( 'diagnoseo_' . $post_type . '_schema_type' );
     32        }
    2833    }
    2934
  • diagnoseo/tags/1.2.46/readme.txt

    r3213883 r3214819  
    44Requires at least: 4.7
    55Tested up to: 6.7.1
    6 Stable tag: 1.2.45
     6Stable tag: 1.2.46
    77Requires PHP: 7.2
    88License: GPLv2 or later
  • diagnoseo/trunk/diagnoseo.php

    r3213883 r3214819  
    44 * Plugin URI: https://diagnoseo.com/wordpress-seo-plugin/
    55 * 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.45
     6 * Version: 1.2.46
    77 * Author: DiagnoSEO
    88 * Author URI: https://diagnoseo.com/
  • diagnoseo/trunk/includes/structured-data.php

    r3212257 r3214819  
    2424
    2525    if ( empty( $post_schema_type ) ) {
    26         $post_type        = get_post_type();
    27         $post_schema_type = get_option( 'diagnoseo_' . $post_type . '_schema_type', $diagnoseo_defaults[ 'diagnoseo_' . $post_type . '_schema_type' ] );
     26        $post_type       = get_post_type();
     27        $schema_type_key = 'diagnoseo_' . $post_type . '_schema_type';
     28        if ( isset( $diagnoseo_defaults[ $schema_type_key ] ) ) {
     29            $post_schema_type = get_option( 'diagnoseo_' . $post_type . '_schema_type', $diagnoseo_defaults[ $schema_type_key ] );
     30        } else {
     31            $post_schema_type = get_option( 'diagnoseo_' . $post_type . '_schema_type' );
     32        }
    2833    }
    2934
  • diagnoseo/trunk/readme.txt

    r3213883 r3214819  
    44Requires at least: 4.7
    55Tested up to: 6.7.1
    6 Stable tag: 1.2.45
     6Stable tag: 1.2.46
    77Requires PHP: 7.2
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.