Plugin Directory

Changeset 3045132


Ignore:
Timestamp:
03/04/2024 03:46:22 PM (2 years ago)
Author:
diagnoseo
Message:

minor fixes + optimization

Location:
diagnoseo
Files:
10 edited
37 copied

Legend:

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

    r3039236 r3045132  
    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.27
     6 * Version: 1.2.28
    77 * Author: DiagnoSEO
    88 * Author URI: https://diagnoseo.com/
     
    6363 */
    6464function diagnoseo_init() {
    65     include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';
     65    require_once DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';
    6666    require_once DIAGNOSEO_INCLUDES_PATH . 'admin-bar-menu.php';
    6767
  • diagnoseo/tags/1.2.28/includes/admin-bar-menu.php

    r2928487 r3045132  
    4141            'meta'   => array(
    4242                'title' => __( 'Meta tag settings', 'diagnoseo' ),
    43             ),
    44         )
    45     );
    46     $admin_bar->add_menu(
    47         array(
    48             'id'     => 'diagnoseo-settings-scripts',
    49             'parent' => 'diagnoseo-menu',
    50             'group'  => null,
    51             'title'  => 'Script settings',
    52             'href'   => admin_url( 'admin.php?page=diagnoseo-settings-scripts' ),
    53             'meta'   => array(
    54                 'title' => __( 'Scripts in header, content and footer', 'diagnoseo' ),
    5543            ),
    5644        )
  • diagnoseo/tags/1.2.28/includes/category-links.php

    r3039146 r3045132  
    3434 */
    3535function diagnoseo_refresh_rewrite_rules() {
    36     update_option( 'diagnose_flush_rewrite_rules', 1 );
     36    update_option( 'diagnoseo_flush_rewrite_rules', 1 );
    3737}
    3838
     
    131131}
    132132
    133 if ( get_option( 'diagnose_flush_rewrite_rules' ) ) {
    134     delete_option( 'diagnose_flush_rewrite_rules' );
     133if ( get_option( 'diagnoseo_flush_rewrite_rules' ) ) {
     134    delete_option( 'diagnoseo_flush_rewrite_rules' );
    135135    flush_rewrite_rules();
    136136}
  • diagnoseo/tags/1.2.28/includes/class-diagnoseo-metatags.php

    r3032390 r3045132  
    570570
    571571                if ( empty( $image ) ) {
    572                     $image = empty( get_option( 'diagnoseo_facebook_image' ) ) ? DIAGNOSEO_SOCIAL_IMAGE : get_option( 'diagnoseo_facebook_image' );
     572                    $image = get_option( 'diagnoseo_facebook_image', DIAGNOSEO_SOCIAL_IMAGE );
    573573                }
    574574
  • diagnoseo/tags/1.2.28/includes/class-diagnoseo-metatagsettings.php

    r2920588 r3045132  
    453453     */
    454454    public function register_settings() {
     455        add_option( 'diagnoseo_separator', '-' );
    455456        register_setting(
    456457            'diagnoseo_metatag_options',
     
    464465        );
    465466
     467        add_option( 'diagnoseo_separator', '-' );
    466468        register_setting(
    467469            'diagnoseo_metatag_options',
     
    475477        );
    476478
     479        add_option( 'diagnoseo_home_description', '' );
    477480        register_setting(
    478481            'diagnoseo_metatag_options',
     
    486489        );
    487490
     491        add_option( 'diagnoseo_post_title_template', '' );
    488492        register_setting(
    489493            'diagnoseo_metatag_options',
     
    497501        );
    498502
     503        add_option( 'diagnoseo_post_description_template', '' );
    499504        register_setting(
    500505            'diagnoseo_metatag_options',
     
    508513        );
    509514
     515        add_option( 'diagnoseo_page_title_template', '' );
    510516        register_setting(
    511517            'diagnoseo_metatag_options',
     
    519525        );
    520526
     527        add_aption( 'diagnoseo_page_description_template', '' );
    521528        register_setting(
    522529            'diagnoseo_metatag_options',
     
    530537        );
    531538
     539        add_aption( 'diagnoseo_category_title_template', '' );
    532540        register_setting(
    533541            'diagnoseo_metatag_options',
     
    541549        );
    542550
     551        add_aption( 'diagnoseo_category_description_template', '' );
    543552        register_setting(
    544553            'diagnoseo_metatag_options',
     
    552561        );
    553562
     563        add_aption( 'diagnoseo_tag_title_template', '' );
    554564        register_setting(
    555565            'diagnoseo_metatag_options',
     
    563573        );
    564574
     575        add_aption( 'diagnoseo_tag_description_template', '' );
    565576        register_setting(
    566577            'diagnoseo_metatag_options',
     
    574585        );
    575586
     587        add_aption( 'diagnoseo_date_title_template', '' );
    576588        register_setting(
    577589            'diagnoseo_metatag_options',
     
    585597        );
    586598
     599        add_aption( 'diagnoseo_date_description_template', '' );
    587600        register_setting(
    588601            'diagnoseo_metatag_options',
     
    596609        );
    597610
     611        add_aption( 'diagnoseo_archive_title_template', '' );
    598612        register_setting(
    599613            'diagnoseo_metatag_options',
     
    607621        );
    608622
     623        add_aption( 'diagnoseo_archive_description_template', '' );
    609624        register_setting(
    610625            'diagnoseo_metatag_options',
     
    619634
    620635        if ( class_exists( 'MultiBuilder' ) ) {
     636            add_aption( 'diagnoseo_project_title_template', '' );
    621637            register_setting(
    622638                'diagnoseo_metatag_options',
     
    631647            $this->defaults['diagnoseo_project_title_template'] = '%title% %sep% %sitename%';
    632648
     649            add_aption( 'diagnoseo_project_description_template', '' );
    633650            register_setting(
    634651                'diagnoseo_metatag_options',
     
    644661            $this->defaults['diagnoseo_project_description_template'] = '';
    645662
     663            add_aption( 'diagnoseo_project_category_title_template', '' );
    646664            register_setting(
    647665                'diagnoseo_metatag_options',
     
    657675            $this->defaults['diagnoseo_project_category_title_template'] = '%title% %sep% %sitename%';
    658676
     677            add_aption( 'diagnoseo_project_category_description_template', '' );
    659678            register_setting(
    660679                'diagnoseo_metatag_options',
  • diagnoseo/tags/1.2.28/includes/class-diagnoseo-schemasettings.php

    r3039155 r3045132  
    150150                                            <?php
    151151                                            $schema_types = Diagnoseo_SettingsHelper::$post_schema_types;
    152                                             $value        = get_option( $setting_name, $this->defaults[ $setting_name ] );
     152                                            $value        = get_option( $setting_name, empty( $this->defaults[ $setting_name ] ) ? '' : $this->defaults[ $setting_name ] );
    153153                                            foreach ( $schema_types as $schema_type ) :
    154154                                                ?>
     
    194194        }
    195195
     196        add_option( 'diagnoseo_site_owner_type', '' );
    196197        register_setting(
    197198            'diagnoseo_schema_options',
     
    205206        );
    206207
     208        add_option( 'diagnoseo_site_owner_name', '' );
    207209        register_setting(
    208210            'diagnoseo_schema_options',
     
    216218        );
    217219
     220        add_option( 'diagnoseo_site_owner_image', '' );
    218221        register_setting(
    219222            'diagnoseo_schema_options',
     
    227230        );
    228231
     232        add_option( 'diagnoseo_site_owner_url', '' );
    229233        register_setting(
    230234            'diagnoseo_schema_options',
     
    238242        );
    239243
     244        add_option( 'diagnoseo_site_owner_email', '' );
    240245        register_setting(
    241246            'diagnoseo_schema_options',
     
    249254        );
    250255
     256        add_option( 'diagnoseo_site_owner_phone', '' );
    251257        register_setting(
    252258            'diagnoseo_schema_options',
     
    260266        );
    261267
     268        add_option( 'diagnoseo_site_owner_street_address', '' );
    262269        register_setting(
    263270            'diagnoseo_schema_options',
     
    271278        );
    272279
     280        add_option( 'diagnoseo_site_owner_locality', '' );
    273281        register_setting(
    274282            'diagnoseo_schema_options',
     
    282290        );
    283291
     292        add_option( 'diagnoseo_site_owner_region', '' );
    284293        register_setting(
    285294            'diagnoseo_schema_options',
     
    293302        );
    294303
     304        add_option( 'diagnoseo_site_owner_postal_code', '' );
    295305        register_setting(
    296306            'diagnoseo_schema_options',
     
    304314        );
    305315
     316        add_option( 'diagnoseo_site_owner_country', '' );
    306317        register_setting(
    307318            'diagnoseo_schema_options',
     
    345356                <tbody>
    346357                    <tr>
     358                        <th><?php esc_html_e( 'ReviewedBy Schema', 'diagnoseo' ); ?></th>
     359                        <td>
     360                            <?php
     361                                $reviewedby_type = get_option( 'diagnoseo_reviewedby_type', '' );
     362                                $reviewedby_name = get_option( 'diagnoseo_reviewedby_name', '' );
     363                                $reviewedby_url  = get_option( 'diagnoseo_reviewedby_url', '' );
     364                            ?>
     365                            <p>
     366                                <label for="diagnoseo_reviewedby_type"><?php esc_html_e( 'Type', 'diagnoseo' ); ?>:</label>
     367                            </p>
     368                                <select name="diagnoseo_reviewedby_type" id="diagnoseo_reviewedby_type" disabled>
     369                                    <option value="Person"><?php esc_html_e( 'Person', 'diagnoseo' ); ?></option>
     370                                    <option value="Organization"><?php esc_html_e( 'Organization', 'diagnoseo' ); ?></option>
     371                                </select>
     372                            <p>
     373                                <label for="diagnoseo_reviewedby_name"><?php esc_html_e( 'Name', 'diagnoseo' ); ?></label>
     374                            </p>
     375                                <input disabled type="text" class="regular-text" name="diagnoseo_reviewedby_name" id="diagnoseo_reviewedby_name">
     376                            <p>
     377                                <label for="diagnoseo_reviewedby_url"><?php esc_html_e( 'URL', 'diagnoseo' ); ?></label>
     378                            </p>
     379                                <input disabled type="url" class="regular-text" name="diagnoseo_reviewedby_url" id="diagnoseo_reviewedby_url">
     380                        </td>
     381                    </tr>
     382                </tbody>
     383            </table>
     384
     385            <table class="form-table" role="presentation">
     386                <tbody>
     387                    <tr>
    347388                        <th><?php esc_html_e( 'Social media profiles', 'diagnoseo' ); ?></th>
    348389                        <td>
  • diagnoseo/tags/1.2.28/includes/class-diagnoseo-settings.php

    r2984954 r3045132  
    7878        add_submenu_page(
    7979            'diagnoseo-settings',
     80            __( 'Breadcrumbs', 'diagnoseo' ),
     81            __( 'Breadcrumbs', 'diagnoseo' ),
     82            'manage_options',
     83            '/customize.php?autofocus[section]=diagnoseo_breadcrumbs'
     84        );
     85        add_submenu_page(
     86            'diagnoseo-settings',
    8087            __( 'Social settings', 'diagnoseo' ),
    8188            __( 'Social/OpenGraph settings', 'diagnoseo' ),
     
    94101        add_submenu_page(
    95102            'diagnoseo-settings',
    96             __( 'Post meta tag import', 'diagnoseo' ),
    97             __( 'Import post meta', 'diagnoseo' ),
    98             'manage_options',
    99             'diagnoseo-import-postmeta',
    100             array( $this, 'render_settings' )
    101         );
    102         add_submenu_page(
    103             'diagnoseo-settings',
    104103            __( 'Tools', 'diagnoseo' ),
    105104            __( 'Tools', 'diagnoseo' ),
     
    110109        add_submenu_page(
    111110            'diagnoseo-settings',
    112             __( 'Breadcrumbs', 'diagnoseo' ),
    113             __( 'Breadcrumbs', 'diagnoseo' ),
     111            __( 'Post meta tag import', 'diagnoseo' ),
     112            __( 'Import post meta', 'diagnoseo' ),
    114113            'manage_options',
    115             '/customize.php?autofocus[section]=diagnoseo_breadcrumbs'
     114            'diagnoseo-import-postmeta',
     115            array( $this, 'render_settings' )
    116116        );
    117117    }
  • diagnoseo/tags/1.2.28/includes/metabox-seo-settings.php

    r3039146 r3045132  
    2929 */
    3030function diagnoseo_draw_post_metabox( $post ) {
    31     include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';
    3231    global $post;
    3332    $data                 = get_post_custom( $post->ID );
     
    121120        $description_fallback = $excerpt;
    122121        $canonical_fallback   = wp_get_canonical_url( $post );
    123         $separator            = get_option( 'diagnoseo_separator', $diagnoseo_defaults['diagnoseo_separator'] );
     122        $separator            = get_option( 'diagnoseo_separator', '-' );
    124123        $post_list_title      = isset( $data['diagnoseo_postlist_title'] ) ? $data['diagnoseo_postlist_title'][0] : '';
    125124        ?>
     
    351350                                $def_schema_type_caption = empty( $def_schema_type ) ? __( 'None', 'diagnoseo' ) : $def_schema_type;
    352351                                ?>
    353                                 <option value="<?php echo esc_attr( $def_schema_type ); ?>"><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option>
     352                                <option value=""><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option>
    354353                                <option value="none"><?php esc_html_e( 'None', 'diagnoseo' ); ?></option>
    355354                                <?php foreach ( $schema_types as $type ) : ?>
  • diagnoseo/tags/1.2.28/includes/structured-data.php

    r3039236 r3045132  
    4040        $schema_function = 'diagnoseo_schema_' . strtolower( $post_schema_type );
    4141        $schema          = $schema_function( $post_schema_data );
    42     } else {
     42    } elseif ( 'none' !== $post_schema_type ) {
    4343        $post_data = get_post();
    4444
  • diagnoseo/tags/1.2.28/readme.txt

    r3039236 r3045132  
    44Requires at least: 4.7
    55Tested up to: 6.4.3
    6 Stable tag: 1.2.27
     6Stable tag: 1.2.28
    77Requires PHP: 5.0
    88License: GPLv2 or later
  • diagnoseo/trunk/diagnoseo.php

    r3039236 r3045132  
    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.27
     6 * Version: 1.2.28
    77 * Author: DiagnoSEO
    88 * Author URI: https://diagnoseo.com/
     
    6363 */
    6464function diagnoseo_init() {
    65     include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';
     65    require_once DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';
    6666    require_once DIAGNOSEO_INCLUDES_PATH . 'admin-bar-menu.php';
    6767
  • diagnoseo/trunk/includes/admin-bar-menu.php

    r2928487 r3045132  
    4141            'meta'   => array(
    4242                'title' => __( 'Meta tag settings', 'diagnoseo' ),
    43             ),
    44         )
    45     );
    46     $admin_bar->add_menu(
    47         array(
    48             'id'     => 'diagnoseo-settings-scripts',
    49             'parent' => 'diagnoseo-menu',
    50             'group'  => null,
    51             'title'  => 'Script settings',
    52             'href'   => admin_url( 'admin.php?page=diagnoseo-settings-scripts' ),
    53             'meta'   => array(
    54                 'title' => __( 'Scripts in header, content and footer', 'diagnoseo' ),
    5543            ),
    5644        )
  • diagnoseo/trunk/includes/category-links.php

    r3039146 r3045132  
    3434 */
    3535function diagnoseo_refresh_rewrite_rules() {
    36     update_option( 'diagnose_flush_rewrite_rules', 1 );
     36    update_option( 'diagnoseo_flush_rewrite_rules', 1 );
    3737}
    3838
     
    131131}
    132132
    133 if ( get_option( 'diagnose_flush_rewrite_rules' ) ) {
    134     delete_option( 'diagnose_flush_rewrite_rules' );
     133if ( get_option( 'diagnoseo_flush_rewrite_rules' ) ) {
     134    delete_option( 'diagnoseo_flush_rewrite_rules' );
    135135    flush_rewrite_rules();
    136136}
  • diagnoseo/trunk/includes/class-diagnoseo-metatags.php

    r3032390 r3045132  
    570570
    571571                if ( empty( $image ) ) {
    572                     $image = empty( get_option( 'diagnoseo_facebook_image' ) ) ? DIAGNOSEO_SOCIAL_IMAGE : get_option( 'diagnoseo_facebook_image' );
     572                    $image = get_option( 'diagnoseo_facebook_image', DIAGNOSEO_SOCIAL_IMAGE );
    573573                }
    574574
  • diagnoseo/trunk/includes/class-diagnoseo-metatagsettings.php

    r2920588 r3045132  
    453453     */
    454454    public function register_settings() {
     455        add_option( 'diagnoseo_separator', '-' );
    455456        register_setting(
    456457            'diagnoseo_metatag_options',
     
    464465        );
    465466
     467        add_option( 'diagnoseo_separator', '-' );
    466468        register_setting(
    467469            'diagnoseo_metatag_options',
     
    475477        );
    476478
     479        add_option( 'diagnoseo_home_description', '' );
    477480        register_setting(
    478481            'diagnoseo_metatag_options',
     
    486489        );
    487490
     491        add_option( 'diagnoseo_post_title_template', '' );
    488492        register_setting(
    489493            'diagnoseo_metatag_options',
     
    497501        );
    498502
     503        add_option( 'diagnoseo_post_description_template', '' );
    499504        register_setting(
    500505            'diagnoseo_metatag_options',
     
    508513        );
    509514
     515        add_option( 'diagnoseo_page_title_template', '' );
    510516        register_setting(
    511517            'diagnoseo_metatag_options',
     
    519525        );
    520526
     527        add_aption( 'diagnoseo_page_description_template', '' );
    521528        register_setting(
    522529            'diagnoseo_metatag_options',
     
    530537        );
    531538
     539        add_aption( 'diagnoseo_category_title_template', '' );
    532540        register_setting(
    533541            'diagnoseo_metatag_options',
     
    541549        );
    542550
     551        add_aption( 'diagnoseo_category_description_template', '' );
    543552        register_setting(
    544553            'diagnoseo_metatag_options',
     
    552561        );
    553562
     563        add_aption( 'diagnoseo_tag_title_template', '' );
    554564        register_setting(
    555565            'diagnoseo_metatag_options',
     
    563573        );
    564574
     575        add_aption( 'diagnoseo_tag_description_template', '' );
    565576        register_setting(
    566577            'diagnoseo_metatag_options',
     
    574585        );
    575586
     587        add_aption( 'diagnoseo_date_title_template', '' );
    576588        register_setting(
    577589            'diagnoseo_metatag_options',
     
    585597        );
    586598
     599        add_aption( 'diagnoseo_date_description_template', '' );
    587600        register_setting(
    588601            'diagnoseo_metatag_options',
     
    596609        );
    597610
     611        add_aption( 'diagnoseo_archive_title_template', '' );
    598612        register_setting(
    599613            'diagnoseo_metatag_options',
     
    607621        );
    608622
     623        add_aption( 'diagnoseo_archive_description_template', '' );
    609624        register_setting(
    610625            'diagnoseo_metatag_options',
     
    619634
    620635        if ( class_exists( 'MultiBuilder' ) ) {
     636            add_aption( 'diagnoseo_project_title_template', '' );
    621637            register_setting(
    622638                'diagnoseo_metatag_options',
     
    631647            $this->defaults['diagnoseo_project_title_template'] = '%title% %sep% %sitename%';
    632648
     649            add_aption( 'diagnoseo_project_description_template', '' );
    633650            register_setting(
    634651                'diagnoseo_metatag_options',
     
    644661            $this->defaults['diagnoseo_project_description_template'] = '';
    645662
     663            add_aption( 'diagnoseo_project_category_title_template', '' );
    646664            register_setting(
    647665                'diagnoseo_metatag_options',
     
    657675            $this->defaults['diagnoseo_project_category_title_template'] = '%title% %sep% %sitename%';
    658676
     677            add_aption( 'diagnoseo_project_category_description_template', '' );
    659678            register_setting(
    660679                'diagnoseo_metatag_options',
  • diagnoseo/trunk/includes/class-diagnoseo-schemasettings.php

    r3039155 r3045132  
    150150                                            <?php
    151151                                            $schema_types = Diagnoseo_SettingsHelper::$post_schema_types;
    152                                             $value        = get_option( $setting_name, $this->defaults[ $setting_name ] );
     152                                            $value        = get_option( $setting_name, empty( $this->defaults[ $setting_name ] ) ? '' : $this->defaults[ $setting_name ] );
    153153                                            foreach ( $schema_types as $schema_type ) :
    154154                                                ?>
     
    194194        }
    195195
     196        add_option( 'diagnoseo_site_owner_type', '' );
    196197        register_setting(
    197198            'diagnoseo_schema_options',
     
    205206        );
    206207
     208        add_option( 'diagnoseo_site_owner_name', '' );
    207209        register_setting(
    208210            'diagnoseo_schema_options',
     
    216218        );
    217219
     220        add_option( 'diagnoseo_site_owner_image', '' );
    218221        register_setting(
    219222            'diagnoseo_schema_options',
     
    227230        );
    228231
     232        add_option( 'diagnoseo_site_owner_url', '' );
    229233        register_setting(
    230234            'diagnoseo_schema_options',
     
    238242        );
    239243
     244        add_option( 'diagnoseo_site_owner_email', '' );
    240245        register_setting(
    241246            'diagnoseo_schema_options',
     
    249254        );
    250255
     256        add_option( 'diagnoseo_site_owner_phone', '' );
    251257        register_setting(
    252258            'diagnoseo_schema_options',
     
    260266        );
    261267
     268        add_option( 'diagnoseo_site_owner_street_address', '' );
    262269        register_setting(
    263270            'diagnoseo_schema_options',
     
    271278        );
    272279
     280        add_option( 'diagnoseo_site_owner_locality', '' );
    273281        register_setting(
    274282            'diagnoseo_schema_options',
     
    282290        );
    283291
     292        add_option( 'diagnoseo_site_owner_region', '' );
    284293        register_setting(
    285294            'diagnoseo_schema_options',
     
    293302        );
    294303
     304        add_option( 'diagnoseo_site_owner_postal_code', '' );
    295305        register_setting(
    296306            'diagnoseo_schema_options',
     
    304314        );
    305315
     316        add_option( 'diagnoseo_site_owner_country', '' );
    306317        register_setting(
    307318            'diagnoseo_schema_options',
     
    345356                <tbody>
    346357                    <tr>
     358                        <th><?php esc_html_e( 'ReviewedBy Schema', 'diagnoseo' ); ?></th>
     359                        <td>
     360                            <?php
     361                                $reviewedby_type = get_option( 'diagnoseo_reviewedby_type', '' );
     362                                $reviewedby_name = get_option( 'diagnoseo_reviewedby_name', '' );
     363                                $reviewedby_url  = get_option( 'diagnoseo_reviewedby_url', '' );
     364                            ?>
     365                            <p>
     366                                <label for="diagnoseo_reviewedby_type"><?php esc_html_e( 'Type', 'diagnoseo' ); ?>:</label>
     367                            </p>
     368                                <select name="diagnoseo_reviewedby_type" id="diagnoseo_reviewedby_type" disabled>
     369                                    <option value="Person"><?php esc_html_e( 'Person', 'diagnoseo' ); ?></option>
     370                                    <option value="Organization"><?php esc_html_e( 'Organization', 'diagnoseo' ); ?></option>
     371                                </select>
     372                            <p>
     373                                <label for="diagnoseo_reviewedby_name"><?php esc_html_e( 'Name', 'diagnoseo' ); ?></label>
     374                            </p>
     375                                <input disabled type="text" class="regular-text" name="diagnoseo_reviewedby_name" id="diagnoseo_reviewedby_name">
     376                            <p>
     377                                <label for="diagnoseo_reviewedby_url"><?php esc_html_e( 'URL', 'diagnoseo' ); ?></label>
     378                            </p>
     379                                <input disabled type="url" class="regular-text" name="diagnoseo_reviewedby_url" id="diagnoseo_reviewedby_url">
     380                        </td>
     381                    </tr>
     382                </tbody>
     383            </table>
     384
     385            <table class="form-table" role="presentation">
     386                <tbody>
     387                    <tr>
    347388                        <th><?php esc_html_e( 'Social media profiles', 'diagnoseo' ); ?></th>
    348389                        <td>
  • diagnoseo/trunk/includes/class-diagnoseo-settings.php

    r2984954 r3045132  
    7878        add_submenu_page(
    7979            'diagnoseo-settings',
     80            __( 'Breadcrumbs', 'diagnoseo' ),
     81            __( 'Breadcrumbs', 'diagnoseo' ),
     82            'manage_options',
     83            '/customize.php?autofocus[section]=diagnoseo_breadcrumbs'
     84        );
     85        add_submenu_page(
     86            'diagnoseo-settings',
    8087            __( 'Social settings', 'diagnoseo' ),
    8188            __( 'Social/OpenGraph settings', 'diagnoseo' ),
     
    94101        add_submenu_page(
    95102            'diagnoseo-settings',
    96             __( 'Post meta tag import', 'diagnoseo' ),
    97             __( 'Import post meta', 'diagnoseo' ),
    98             'manage_options',
    99             'diagnoseo-import-postmeta',
    100             array( $this, 'render_settings' )
    101         );
    102         add_submenu_page(
    103             'diagnoseo-settings',
    104103            __( 'Tools', 'diagnoseo' ),
    105104            __( 'Tools', 'diagnoseo' ),
     
    110109        add_submenu_page(
    111110            'diagnoseo-settings',
    112             __( 'Breadcrumbs', 'diagnoseo' ),
    113             __( 'Breadcrumbs', 'diagnoseo' ),
     111            __( 'Post meta tag import', 'diagnoseo' ),
     112            __( 'Import post meta', 'diagnoseo' ),
    114113            'manage_options',
    115             '/customize.php?autofocus[section]=diagnoseo_breadcrumbs'
     114            'diagnoseo-import-postmeta',
     115            array( $this, 'render_settings' )
    116116        );
    117117    }
  • diagnoseo/trunk/includes/metabox-seo-settings.php

    r3039146 r3045132  
    2929 */
    3030function diagnoseo_draw_post_metabox( $post ) {
    31     include DIAGNOSEO_INCLUDES_PATH . 'option-defaults.php';
    3231    global $post;
    3332    $data                 = get_post_custom( $post->ID );
     
    121120        $description_fallback = $excerpt;
    122121        $canonical_fallback   = wp_get_canonical_url( $post );
    123         $separator            = get_option( 'diagnoseo_separator', $diagnoseo_defaults['diagnoseo_separator'] );
     122        $separator            = get_option( 'diagnoseo_separator', '-' );
    124123        $post_list_title      = isset( $data['diagnoseo_postlist_title'] ) ? $data['diagnoseo_postlist_title'][0] : '';
    125124        ?>
     
    351350                                $def_schema_type_caption = empty( $def_schema_type ) ? __( 'None', 'diagnoseo' ) : $def_schema_type;
    352351                                ?>
    353                                 <option value="<?php echo esc_attr( $def_schema_type ); ?>"><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option>
     352                                <option value=""><?php esc_html_e( 'Default', 'diagnoseo' ); ?> (<?php echo esc_html( $def_schema_type_caption ); ?>)</option>
    354353                                <option value="none"><?php esc_html_e( 'None', 'diagnoseo' ); ?></option>
    355354                                <?php foreach ( $schema_types as $type ) : ?>
  • diagnoseo/trunk/includes/structured-data.php

    r3039236 r3045132  
    4040        $schema_function = 'diagnoseo_schema_' . strtolower( $post_schema_type );
    4141        $schema          = $schema_function( $post_schema_data );
    42     } else {
     42    } elseif ( 'none' !== $post_schema_type ) {
    4343        $post_data = get_post();
    4444
  • diagnoseo/trunk/readme.txt

    r3039236 r3045132  
    44Requires at least: 4.7
    55Tested up to: 6.4.3
    6 Stable tag: 1.2.27
     6Stable tag: 1.2.28
    77Requires PHP: 5.0
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.