Plugin Directory

Changeset 2278053


Ignore:
Timestamp:
04/07/2020 07:40:29 AM (6 years ago)
Author:
seodevrobin
Message:

Update 1.85

Location:
s-dev-seo/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • s-dev-seo/trunk/inc/replace.php

    r2270545 r2278053  
    1919        if(is_home()) {
    2020           
    21             $title = $wpse_sdevseo_settings['home_title'];
     21            $home_obj = get_post(get_option( 'page_for_posts' ));
     22            $title = get_post_meta($home_obj->ID,'sdevseo_title', true);
    2223           
    2324            if(empty($title)) {
    24                 $title = "Home";
     25                $title = $home_obj->post_title;
     26                $auto_title = true;
    2527            }
    26            
    27             $auto_title = true;
    2828           
    2929        } elseif(is_category()) {
  • s-dev-seo/trunk/inc/views.php

    r2270545 r2278053  
    704704                    echo '</div>';
    705705                   
    706                     echo '<div class="wpse-sdevseo-table-row">';
    707                        
    708                         echo '<div class="wpse-sdevseo-table-cell">';
    709                            
    710                             echo 'Home / Blog Title';
    711                            
    712                         echo '</div>';
    713                        
    714                         echo '<div class="wpse-sdevseo-table-cell">';
    715                            
    716                             echo '<input type="text" name="home_title"';
    717 
    718                             if( !empty($wpse_sdevseo_settings['home_title'])) {
    719                                 echo ' value="'.$wpse_sdevseo_settings['home_title'].'"';
    720                             }
    721 
    722                             echo ' /><br /><em>If empty, "Home" will be used.</em>';
    723                        
    724                         echo '</div>';
    725                        
    726                     echo '</div>';
    727                    
    728706                    echo '<div class="wpse-sdevseo-table-row table-footer">';
    729707
     
    773751       
    774752        $updated_options = $wpse_sdevseo_settings;
    775        
    776         /* Added in 1.82 */
    777         if(!isset($updated_options['home_title'])) {
    778             $updated_options['home_title'] = 'Home';
    779         }
    780        
     753
    781754        foreach($updated_options as $option_name=>$option_value) {
    782755           
  • s-dev-seo/trunk/readme.txt

    r2270545 r2278053  
    55License URI: http://www.gnu.org/licenses/gpl-2.0.html
    66Tags: SEO, Title, Meta Description
    7 Stable tag: 1.84
     7Stable tag: 1.85
    88Tested up to: 5.3
    99Requires at least: 5.3
     
    2828== Changelog ==
    2929
     30= 1.85 =
     31Removed Home ("Page for posts") title field in settings. Page for posts instead checks and uses the custom SEO title and second, if no custom SEO title has been set, the standard page title.
     32
    3033= 1.84 =
    3134Added support for dynamic year in title and descriptions using %year%
  • s-dev-seo/trunk/sdev-seo.php

    r2270545 r2278053  
    44Plugin Name: S-DEV SEO
    55Description: Add SEO Title and Meta Description fields to posts and pages
    6 Version: 1.84
     6Version: 1.85
    77Author: Rob von Bothmer / SeoDev
    88Author URI: https://www.seodev.se
Note: See TracChangeset for help on using the changeset viewer.