Changeset 3206455
- Timestamp:
- 12/11/2024 03:24:50 PM (13 months ago)
- Location:
- seo-simple-pack
- Files:
-
- 8 edited
- 1 copied
-
tags/3.6.2 (copied) (copied from seo-simple-pack/trunk)
-
tags/3.6.2/class/menu.php (modified) (2 diffs)
-
tags/3.6.2/class/metabox.php (modified) (2 diffs)
-
tags/3.6.2/readme.txt (modified) (2 diffs)
-
tags/3.6.2/seo-simple-pack.php (modified) (2 diffs)
-
trunk/class/menu.php (modified) (2 diffs)
-
trunk/class/metabox.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/seo-simple-pack.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-simple-pack/tags/3.6.2/class/menu.php
r3190017 r3206455 26 26 */ 27 27 public static function init() { 28 add_action( 'admin_menu', [ 'SSP_Menu', 'add_menus' ] );29 }30 31 32 /**33 * メニューの追加34 */35 public static function add_menus() {36 37 28 self::$top_menu_tabs = [ 38 29 'basic' => __( 'Basic setting', 'seo-simple-pack' ), // 基本設定 … … 49 40 'twitter' => 'Twitter', 50 41 ]; 42 } 43 44 /** 45 * create 46 */ 47 public static function create() { 48 add_action( 'admin_menu', [ 'SSP_Menu', 'add_menus' ] ); 49 } 50 51 52 /** 53 * メニューの追加 54 */ 55 public static function add_menus() { 51 56 52 57 // トップレベルメニュー -
seo-simple-pack/tags/3.6.2/class/metabox.php
r3190017 r3206455 42 42 */ 43 43 public static function init() { 44 45 // post meta追加 46 add_action( 'add_meta_boxes', [ 'SSP_MetaBox', 'add_ssp_metabox' ], 1 ); 47 add_action( 'save_post', [ 'SSP_MetaBox', 'save_post_metas' ] ); 48 49 // term meta追加 -> init:99 で $custom_taxonomies セットしているのでそれよりあとで実行 50 add_action( 'wp_loaded', function() { 51 $tax_names = array_merge( [ 'category', 'post_tag' ], array_keys( SSP_Data::$custom_taxonomies ) ); 52 foreach ( $tax_names as $tax_name ) { 53 add_action( $tax_name . '_edit_form_fields', [ 'SSP_MetaBox', 'add_term_edit_fields' ], 20 ); 54 // add_action( $tax_name . '_add_form_fields', [ 'SSP_MetaBox', 'add_term_fields' ] ); 55 } 56 57 // 保存処理フック 58 add_action( 'edited_terms', [ 'SSP_MetaBox', 'save_term_metas' ] ); 59 // add_action( 'created_term', [ 'SSP_MetaBox', 'save_term_metas' ] ); 60 }); 61 } 62 63 64 /** 65 * Add metabox. 66 */ 67 public static function add_ssp_metabox() { 68 $args = [ 69 'public' => true, 70 '_builtin' => false, 71 ]; 72 $post_types = get_post_types( $args, 'names', 'and' ); 73 $screens = array_merge( [ 'post', 'page' ], $post_types ); 74 75 // Set choices 44 // Set choices options 76 45 self::$robots_options = [ 77 46 '' => __( 'Keep default settings', 'seo-simple-pack' ), // デフォルト設定のまま … … 82 51 'noindex,nofollow' => 'noindex,nofollow', 83 52 ]; 53 } 54 55 56 /** 57 * create 58 */ 59 public static function create() { 60 61 // post meta追加 62 add_action( 'add_meta_boxes', [ 'SSP_MetaBox', 'add_ssp_metabox' ], 1 ); 63 add_action( 'save_post', [ 'SSP_MetaBox', 'save_post_metas' ] ); 64 65 // term meta追加 -> init:99 で $custom_taxonomies セットしているのでそれよりあとで実行 66 add_action( 'wp_loaded', function() { 67 $tax_names = array_merge( [ 'category', 'post_tag' ], array_keys( SSP_Data::$custom_taxonomies ) ); 68 foreach ( $tax_names as $tax_name ) { 69 add_action( $tax_name . '_edit_form_fields', [ 'SSP_MetaBox', 'add_term_edit_fields' ], 20 ); 70 // add_action( $tax_name . '_add_form_fields', [ 'SSP_MetaBox', 'add_term_fields' ] ); 71 } 72 73 // 保存処理フック 74 add_action( 'edited_terms', [ 'SSP_MetaBox', 'save_term_metas' ] ); 75 // add_action( 'created_term', [ 'SSP_MetaBox', 'save_term_metas' ] ); 76 }); 77 } 78 79 80 /** 81 * Add metabox. 82 */ 83 public static function add_ssp_metabox() { 84 $args = [ 85 'public' => true, 86 '_builtin' => false, 87 ]; 88 $post_types = get_post_types( $args, 'names', 'and' ); 89 $screens = array_merge( [ 'post', 'page' ], $post_types ); 84 90 85 91 add_meta_box( -
seo-simple-pack/tags/3.6.2/readme.txt
r3197068 r3206455 5 5 Requires at least: 4.9 6 6 Tested up to: 6.7 7 Stable tag: 3.6. 17 Stable tag: 3.6.2 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 121 121 == Changelog == 122 122 123 = 3.6.2 = 124 - Fixed a bug where some items were not displayed on the taxonomy editing page. 125 126 123 127 = 3.6.0 = 124 128 - Support for WordPress 6.7. -
seo-simple-pack/tags/3.6.2/seo-simple-pack.php
r3197068 r3206455 4 4 * Plugin URI: https://wemo.tech/1670 5 5 * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page. 6 * Version: 3.6. 16 * Version: 3.6.2 7 7 * Author: LOOS,Inc. 8 8 * Author URI: https://loos-web-studio.com/ … … 67 67 // Dataセット 68 68 SSP_Data::init(); 69 SSP_Menu::init(); 70 SSP_MetaBox::init(); 69 71 }, 0 ); 70 72 73 SSP_Menu::create(); 74 SSP_MetaBox::create(); 71 75 SSP_Hooks::init(); 72 SSP_Menu::init();73 SSP_MetaBox::init();74 76 SSP_Output::init(); 75 77 } -
seo-simple-pack/trunk/class/menu.php
r3190017 r3206455 26 26 */ 27 27 public static function init() { 28 add_action( 'admin_menu', [ 'SSP_Menu', 'add_menus' ] );29 }30 31 32 /**33 * メニューの追加34 */35 public static function add_menus() {36 37 28 self::$top_menu_tabs = [ 38 29 'basic' => __( 'Basic setting', 'seo-simple-pack' ), // 基本設定 … … 49 40 'twitter' => 'Twitter', 50 41 ]; 42 } 43 44 /** 45 * create 46 */ 47 public static function create() { 48 add_action( 'admin_menu', [ 'SSP_Menu', 'add_menus' ] ); 49 } 50 51 52 /** 53 * メニューの追加 54 */ 55 public static function add_menus() { 51 56 52 57 // トップレベルメニュー -
seo-simple-pack/trunk/class/metabox.php
r3190017 r3206455 42 42 */ 43 43 public static function init() { 44 45 // post meta追加 46 add_action( 'add_meta_boxes', [ 'SSP_MetaBox', 'add_ssp_metabox' ], 1 ); 47 add_action( 'save_post', [ 'SSP_MetaBox', 'save_post_metas' ] ); 48 49 // term meta追加 -> init:99 で $custom_taxonomies セットしているのでそれよりあとで実行 50 add_action( 'wp_loaded', function() { 51 $tax_names = array_merge( [ 'category', 'post_tag' ], array_keys( SSP_Data::$custom_taxonomies ) ); 52 foreach ( $tax_names as $tax_name ) { 53 add_action( $tax_name . '_edit_form_fields', [ 'SSP_MetaBox', 'add_term_edit_fields' ], 20 ); 54 // add_action( $tax_name . '_add_form_fields', [ 'SSP_MetaBox', 'add_term_fields' ] ); 55 } 56 57 // 保存処理フック 58 add_action( 'edited_terms', [ 'SSP_MetaBox', 'save_term_metas' ] ); 59 // add_action( 'created_term', [ 'SSP_MetaBox', 'save_term_metas' ] ); 60 }); 61 } 62 63 64 /** 65 * Add metabox. 66 */ 67 public static function add_ssp_metabox() { 68 $args = [ 69 'public' => true, 70 '_builtin' => false, 71 ]; 72 $post_types = get_post_types( $args, 'names', 'and' ); 73 $screens = array_merge( [ 'post', 'page' ], $post_types ); 74 75 // Set choices 44 // Set choices options 76 45 self::$robots_options = [ 77 46 '' => __( 'Keep default settings', 'seo-simple-pack' ), // デフォルト設定のまま … … 82 51 'noindex,nofollow' => 'noindex,nofollow', 83 52 ]; 53 } 54 55 56 /** 57 * create 58 */ 59 public static function create() { 60 61 // post meta追加 62 add_action( 'add_meta_boxes', [ 'SSP_MetaBox', 'add_ssp_metabox' ], 1 ); 63 add_action( 'save_post', [ 'SSP_MetaBox', 'save_post_metas' ] ); 64 65 // term meta追加 -> init:99 で $custom_taxonomies セットしているのでそれよりあとで実行 66 add_action( 'wp_loaded', function() { 67 $tax_names = array_merge( [ 'category', 'post_tag' ], array_keys( SSP_Data::$custom_taxonomies ) ); 68 foreach ( $tax_names as $tax_name ) { 69 add_action( $tax_name . '_edit_form_fields', [ 'SSP_MetaBox', 'add_term_edit_fields' ], 20 ); 70 // add_action( $tax_name . '_add_form_fields', [ 'SSP_MetaBox', 'add_term_fields' ] ); 71 } 72 73 // 保存処理フック 74 add_action( 'edited_terms', [ 'SSP_MetaBox', 'save_term_metas' ] ); 75 // add_action( 'created_term', [ 'SSP_MetaBox', 'save_term_metas' ] ); 76 }); 77 } 78 79 80 /** 81 * Add metabox. 82 */ 83 public static function add_ssp_metabox() { 84 $args = [ 85 'public' => true, 86 '_builtin' => false, 87 ]; 88 $post_types = get_post_types( $args, 'names', 'and' ); 89 $screens = array_merge( [ 'post', 'page' ], $post_types ); 84 90 85 91 add_meta_box( -
seo-simple-pack/trunk/readme.txt
r3197068 r3206455 5 5 Requires at least: 4.9 6 6 Tested up to: 6.7 7 Stable tag: 3.6. 17 Stable tag: 3.6.2 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 121 121 == Changelog == 122 122 123 = 3.6.2 = 124 - Fixed a bug where some items were not displayed on the taxonomy editing page. 125 126 123 127 = 3.6.0 = 124 128 - Support for WordPress 6.7. -
seo-simple-pack/trunk/seo-simple-pack.php
r3197068 r3206455 4 4 * Plugin URI: https://wemo.tech/1670 5 5 * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page. 6 * Version: 3.6. 16 * Version: 3.6.2 7 7 * Author: LOOS,Inc. 8 8 * Author URI: https://loos-web-studio.com/ … … 67 67 // Dataセット 68 68 SSP_Data::init(); 69 SSP_Menu::init(); 70 SSP_MetaBox::init(); 69 71 }, 0 ); 70 72 73 SSP_Menu::create(); 74 SSP_MetaBox::create(); 71 75 SSP_Hooks::init(); 72 SSP_Menu::init();73 SSP_MetaBox::init();74 76 SSP_Output::init(); 75 77 }
Note: See TracChangeset
for help on using the changeset viewer.