Plugin Directory

Changeset 3137478


Ignore:
Timestamp:
08/19/2024 09:46:48 AM (17 months ago)
Author:
looswebstudio
Message:

Update to version 3.5.1 from GitHub

Location:
seo-simple-pack
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • seo-simple-pack/tags/3.5.1/class/output.php

    r3137279 r3137478  
    181181    private static function output_meta_tags() {
    182182
    183         // if ( ! wp_is_block_theme() && ! empty( self::$title ) ) {
    184         //  echo '<title>' . esc_html( self::$title ) . '</title>' . PHP_EOL;
    185         // }
     183        if ( ! wp_is_block_theme() && ! current_theme_supports( 'title-tag' ) && ! empty( self::$title ) ) {
     184            echo '<title>' . esc_html( self::$title ) . '</title>' . PHP_EOL;
     185        }
    186186
    187187        if ( ! empty( self::$robots ) ) {
     
    765765        if ( ! $snipets ) return $str;
    766766
     767        // 区切り文字が最後にきたときに削除するか
     768        $flag_rtrim_sepator = false;
     769
    767770        // replace each snippets
    768771        foreach ( $matched as $snipet ) {
     
    777780                case '%_tagline_%':
    778781                    $replace = \SSP_Data::$site_catch_phrase;
     782                    if ( empty( $replace ) ) {
     783                        $flag_rtrim_sepator = true;
     784                    }
    779785                    break;
    780786                case '%_description_%': // old
     
    873879        }
    874880
     881        // 区切り文字が最後にきたときに削除
     882        if ( $flag_rtrim_sepator ) {
     883            $str = rtrim( $str, " $separator " );
     884        }
     885
    875886        // 空白が続いてる場合は1つに
    876887        // $str = str_replace( '  ', ' ', $str );
  • seo-simple-pack/tags/3.5.1/readme.txt

    r3137279 r3137478  
    55Requires at least: 4.9
    66Tested up to: 6.6
    7 Stable tag: 3.5.0
     7Stable tag: 3.5.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    121121== Changelog ==
    122122
     123= 3.5.1 =
     124- Fixed an issue where title tag was not output even for themes that did not support title-tag.
     125
    123126= 3.5.0 =
    124127- Fixed an issue where duplicate title tags were being output in block themes.
  • seo-simple-pack/tags/3.5.1/seo-simple-pack.php

    r3137279 r3137478  
    44 * Plugin URI: https://wemo.tech/1670
    55 * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
    6  * Version: 3.5.0
     6 * Version: 3.5.1
    77 * Author: LOOS,Inc.
    88 * Author URI: https://loos-web-studio.com/
  • seo-simple-pack/trunk/class/output.php

    r3137279 r3137478  
    181181    private static function output_meta_tags() {
    182182
    183         // if ( ! wp_is_block_theme() && ! empty( self::$title ) ) {
    184         //  echo '<title>' . esc_html( self::$title ) . '</title>' . PHP_EOL;
    185         // }
     183        if ( ! wp_is_block_theme() && ! current_theme_supports( 'title-tag' ) && ! empty( self::$title ) ) {
     184            echo '<title>' . esc_html( self::$title ) . '</title>' . PHP_EOL;
     185        }
    186186
    187187        if ( ! empty( self::$robots ) ) {
     
    765765        if ( ! $snipets ) return $str;
    766766
     767        // 区切り文字が最後にきたときに削除するか
     768        $flag_rtrim_sepator = false;
     769
    767770        // replace each snippets
    768771        foreach ( $matched as $snipet ) {
     
    777780                case '%_tagline_%':
    778781                    $replace = \SSP_Data::$site_catch_phrase;
     782                    if ( empty( $replace ) ) {
     783                        $flag_rtrim_sepator = true;
     784                    }
    779785                    break;
    780786                case '%_description_%': // old
     
    873879        }
    874880
     881        // 区切り文字が最後にきたときに削除
     882        if ( $flag_rtrim_sepator ) {
     883            $str = rtrim( $str, " $separator " );
     884        }
     885
    875886        // 空白が続いてる場合は1つに
    876887        // $str = str_replace( '  ', ' ', $str );
  • seo-simple-pack/trunk/readme.txt

    r3137279 r3137478  
    55Requires at least: 4.9
    66Tested up to: 6.6
    7 Stable tag: 3.5.0
     7Stable tag: 3.5.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    121121== Changelog ==
    122122
     123= 3.5.1 =
     124- Fixed an issue where title tag was not output even for themes that did not support title-tag.
     125
    123126= 3.5.0 =
    124127- Fixed an issue where duplicate title tags were being output in block themes.
  • seo-simple-pack/trunk/seo-simple-pack.php

    r3137279 r3137478  
    44 * Plugin URI: https://wemo.tech/1670
    55 * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
    6  * Version: 3.5.0
     6 * Version: 3.5.1
    77 * Author: LOOS,Inc.
    88 * Author URI: https://loos-web-studio.com/
Note: See TracChangeset for help on using the changeset viewer.