Plugin Directory

Changeset 3308332


Ignore:
Timestamp:
06/09/2025 08:14:21 AM (10 months ago)
Author:
Tarosky
Message:

Update to version 1.1.2 from GitHub

Location:
taro-cpt-front
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • taro-cpt-front/tags/1.1.2/includes/settings.php

    r3231106 r3308332  
    2222        if ( empty( $post_types ) ) {
    2323            printf( '<p class="description">%s</p>', esc_html__( 'No custom post types available.', 'tscptf' ) );
     24            printf( '<p class="description">%s</p>', esc_html__( 'Note that registered custom post type\'s public parameter must be true, and has_archive parameter must be false, to be able to set this option.', 'tscptf' ) );
    2425        } else {
    2526            foreach ( $post_types as $post_type ) {
     
    3132                );
    3233            }
     34            // Description.
     35            printf(
     36                '<p class="description">%s</p>',
     37                sprintf(
     38                    /* translators: %1$s is a link opening tag, %2$s is the link closing tag */
     39                    esc_html__( 'When you change the post type selection, save changes. Then, you must flush the URL rewrite rules. Go to the %1$sPermalinks%2$s settings page. You do not need to change any settings. Click save changes.', 'tscptf' ),
     40                    '<a href="' . esc_url( admin_url( 'options-permalink.php' ) ) . '">',
     41                    '</a>'
     42                )
     43            );
    3344        }
    34         // Description.
    35         printf(
    36             '<p class="description">%s &raquo; <a href="%s">%s</a></p>',
    37             esc_html__( 'Go permalink page on change.', 'tscptf' ),
    38             esc_url( admin_url( 'options-permalink.php' ) ),
    39             esc_html__( 'Go to Permalink', 'tscptf' )
    40         );
    4145    }, 'reading', 'ts-cptf-section' );
    4246    register_setting( 'reading', 'ts-cptf-post-types' );
  • taro-cpt-front/tags/1.1.2/readme.txt

    r3233301 r3308332  
    22===============================================
    33
    4 Contributors: tarosky,Takahashi_Fumiki 
     4Contributors: tarosky,Takahashi_Fumiki, tswallie   
    55Tags: CPT 
    6 Requires at least: 5.9 
    7 Requires PHP: 7.4 
    8 Tested up to: 6.7 
    9 Stable Tag: 1.1.1
     6Tested up to: 6.8 
     7Stable Tag: 1.1.2
    108License: GPLv3 or later 
    119License URI: http://www.gnu.org/licenses/gpl-3.0.txt 
     
    1513== Description ==
    1614
    17 CPT(Custom Post Pype e.g `book`) has URL structure like below:
     15CPT(Custom Post Type e.g `book`) has URL structure like below:
    1816
    1917- `/book/harry-potter`
    20 - `/book/harry-potter/philosopers-stone`
     18- `/book/harry-potter/philosopher-stone`
    2119
    2220If you need `/book` as a front page of CPT, this plugin works.
    2321
    24 This plugin allow specific post type to have a "Front Page" and it's permalink will be at the root of URL prefix of CPT.
     22This plugin allows specific post types to have a "Front Page" and its permalink will be at the root of URL prefix of CPT.
    2523
    2624== Installation ==
     
    28261. Search `taro-cpt-front` in plugin search in your WP admin.
    29272. Click "Install" and "Activate".
    30 3. Go to "Setting" > "Wrting" and choose the post types to have a front page.
     283. Go to "Settings" > "Reading" and choose the post types to have a front page.
    31294. The page which you want to be a front page, check "Set as front page" from right side bar.
    3230
  • taro-cpt-front/tags/1.1.2/taro-cpt-front.php

    r3233301 r3308332  
    11<?php
    22/**
    3 Plugin Name: Taro CPT Front
    4 Description: Custom post types can have a front page.
    5 Plugin URI: https://wordpress.org/plugins/taro-cpt-front/
    6 Author: Tarosky INC.
    7 Version: 1.1.1
    8 Author URI: https://tarosky.co.jp/
    9 License: GPL3 or later
    10 License URI: https://www.gnu.org/licenses/gpl-3.0.html
    11 Text Domain: tscptf
    12 Domain Path: /languages
     3 * Plugin Name: Taro CPT Front
     4 * Description: Custom post types can have a front page.
     5 * Plugin URI: https://wordpress.org/plugins/taro-cpt-front/
     6 * Author: Tarosky INC.
     7 * Version: nightly
     8 * Requires at least: 5.9
     9 * Requires PHP: 7.4
     10 * Author URI: https://tarosky.co.jp/
     11 * License: GPL3 or later
     12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
     13 * Text Domain: tscptf
     14 * Domain Path: /languages
    1315 */
    1416
  • taro-cpt-front/trunk/includes/settings.php

    r3231106 r3308332  
    2222        if ( empty( $post_types ) ) {
    2323            printf( '<p class="description">%s</p>', esc_html__( 'No custom post types available.', 'tscptf' ) );
     24            printf( '<p class="description">%s</p>', esc_html__( 'Note that registered custom post type\'s public parameter must be true, and has_archive parameter must be false, to be able to set this option.', 'tscptf' ) );
    2425        } else {
    2526            foreach ( $post_types as $post_type ) {
     
    3132                );
    3233            }
     34            // Description.
     35            printf(
     36                '<p class="description">%s</p>',
     37                sprintf(
     38                    /* translators: %1$s is a link opening tag, %2$s is the link closing tag */
     39                    esc_html__( 'When you change the post type selection, save changes. Then, you must flush the URL rewrite rules. Go to the %1$sPermalinks%2$s settings page. You do not need to change any settings. Click save changes.', 'tscptf' ),
     40                    '<a href="' . esc_url( admin_url( 'options-permalink.php' ) ) . '">',
     41                    '</a>'
     42                )
     43            );
    3344        }
    34         // Description.
    35         printf(
    36             '<p class="description">%s &raquo; <a href="%s">%s</a></p>',
    37             esc_html__( 'Go permalink page on change.', 'tscptf' ),
    38             esc_url( admin_url( 'options-permalink.php' ) ),
    39             esc_html__( 'Go to Permalink', 'tscptf' )
    40         );
    4145    }, 'reading', 'ts-cptf-section' );
    4246    register_setting( 'reading', 'ts-cptf-post-types' );
  • taro-cpt-front/trunk/readme.txt

    r3233301 r3308332  
    22===============================================
    33
    4 Contributors: tarosky,Takahashi_Fumiki 
     4Contributors: tarosky,Takahashi_Fumiki, tswallie   
    55Tags: CPT 
    6 Requires at least: 5.9 
    7 Requires PHP: 7.4 
    8 Tested up to: 6.7 
    9 Stable Tag: 1.1.1
     6Tested up to: 6.8 
     7Stable Tag: 1.1.2
    108License: GPLv3 or later 
    119License URI: http://www.gnu.org/licenses/gpl-3.0.txt 
     
    1513== Description ==
    1614
    17 CPT(Custom Post Pype e.g `book`) has URL structure like below:
     15CPT(Custom Post Type e.g `book`) has URL structure like below:
    1816
    1917- `/book/harry-potter`
    20 - `/book/harry-potter/philosopers-stone`
     18- `/book/harry-potter/philosopher-stone`
    2119
    2220If you need `/book` as a front page of CPT, this plugin works.
    2321
    24 This plugin allow specific post type to have a "Front Page" and it's permalink will be at the root of URL prefix of CPT.
     22This plugin allows specific post types to have a "Front Page" and its permalink will be at the root of URL prefix of CPT.
    2523
    2624== Installation ==
     
    28261. Search `taro-cpt-front` in plugin search in your WP admin.
    29272. Click "Install" and "Activate".
    30 3. Go to "Setting" > "Wrting" and choose the post types to have a front page.
     283. Go to "Settings" > "Reading" and choose the post types to have a front page.
    31294. The page which you want to be a front page, check "Set as front page" from right side bar.
    3230
  • taro-cpt-front/trunk/taro-cpt-front.php

    r3233301 r3308332  
    11<?php
    22/**
    3 Plugin Name: Taro CPT Front
    4 Description: Custom post types can have a front page.
    5 Plugin URI: https://wordpress.org/plugins/taro-cpt-front/
    6 Author: Tarosky INC.
    7 Version: 1.1.1
    8 Author URI: https://tarosky.co.jp/
    9 License: GPL3 or later
    10 License URI: https://www.gnu.org/licenses/gpl-3.0.html
    11 Text Domain: tscptf
    12 Domain Path: /languages
     3 * Plugin Name: Taro CPT Front
     4 * Description: Custom post types can have a front page.
     5 * Plugin URI: https://wordpress.org/plugins/taro-cpt-front/
     6 * Author: Tarosky INC.
     7 * Version: nightly
     8 * Requires at least: 5.9
     9 * Requires PHP: 7.4
     10 * Author URI: https://tarosky.co.jp/
     11 * License: GPL3 or later
     12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
     13 * Text Domain: tscptf
     14 * Domain Path: /languages
    1315 */
    1416
Note: See TracChangeset for help on using the changeset viewer.