Changeset 3083053
- Timestamp:
- 05/08/2024 08:19:58 AM (2 years ago)
- Location:
- codeflavors-vimeo-video-post-lite/trunk
- Files:
-
- 8 edited
-
CHANGELOG.md (modified) (1 diff)
-
includes/libs/admin/admin.class.php (modified) (1 diff)
-
includes/libs/admin/page/settings-page.class.php (modified) (2 diffs)
-
includes/libs/plugin.class.php (modified) (1 diff)
-
includes/libs/series/Post_Type/Series.php (modified) (2 diffs)
-
main.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
views/plugin_settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
codeflavors-vimeo-video-post-lite/trunk/CHANGELOG.md
r3075417 r3083053 1 1 *** Vimeotheque Lite Changelog *** 2 2 3 - Version 2.3 3 2024-05-08 - Version 2.3.1 4 - Introduced option for customizable Series slug; 5 - Solved a bug that generated "404 - Not found" pages when changing slugs for post type, tag or video category from the Vimeotheque Settings page. 6 7 2024-04-23 - Version 2.3 4 8 - Introduced Series, a feature that allow you to create video galleries from imported videos and display them in posts or pages using the Block Editor; 5 9 - Solved issues with translations missing domain or having mismatched domain name; -
codeflavors-vimeo-video-post-lite/trunk/includes/libs/admin/admin.class.php
r3075417 r3083053 121 121 } 122 122 ); 123 124 /** 125 * Flush rewrite rules if slugs were changed. 126 * @see Settings_Page::update_settings() 127 */ 128 add_action( 129 'init', 130 function(){ 131 if( get_transient('vimeotheque_updated_slugs') ){ 132 flush_rewrite_rules(); 133 delete_transient('vimeotheque_updated_slugs'); 134 } 135 } 136 ); 123 137 } 124 138 -
codeflavors-vimeo-video-post-lite/trunk/includes/libs/admin/page/settings-page.class.php
r3075417 r3083053 210 210 } 211 211 212 if( isset( $_POST['series_slug'] ) ){ 213 $series_slug = sanitize_title( $_POST['series_slug'] ); 214 if( !empty( $_POST['series_slug'] ) && $plugin_settings['series_slug'] !== $series_slug ){ 215 $defaults['series_slug'] = $series_slug; 216 $flush_rules = true; 217 }else{ 218 $defaults['series_slug'] = $plugin_settings['series_slug']; 219 } 220 } 221 212 222 // reset OAuth if user changes the keys 213 223 if( isset( $_POST['vimeo_consumer_key'] ) && isset( $_POST['vimeo_secret_key'] ) ){ … … 229 239 230 240 if( $flush_rules ){ 231 // create rewrite ( soft ) 232 // register custom post 233 Plugin::instance()->get_cpt()->register_post(); 234 flush_rewrite_rules(); 241 // Set transient to signal that slugs were updated. 242 set_transient( 'vimeotheque_updated_slugs', 1 ); 235 243 } 236 244 -
codeflavors-vimeo-video-post-lite/trunk/includes/libs/plugin.class.php
r3075417 r3083053 340 340 'taxonomy_slug' => 'vimeo-videos', 341 341 'tag_slug' => 'vimeo-tag', 342 'series_slug' => 'series', 342 343 'import_tags' => true, // import tags retrieved from Vimeo 343 344 'max_tags' => 3, // how many tags to import -
codeflavors-vimeo-video-post-lite/trunk/includes/libs/series/Post_Type/Series.php
r3075417 r3083053 25 25 public function register_post_type(){ 26 26 27 $slug = \Vimeotheque\Plugin::instance()->get_options_obj()->get_option( 'series_slug' ); 28 27 29 register_post_type( 28 30 parent::get_post_name(), … … 45 47 46 48 'show_in_rest' => true, 49 50 'rewrite' => [ 51 'slug' => $slug 52 ], 47 53 48 54 'supports' => [ -
codeflavors-vimeo-video-post-lite/trunk/main.php
r3075417 r3083053 5 5 * Description: Vimeotheque imports public Vimeo videos as WordPress posts. It is a perfect fit for membership, portfolio, online courses or any type of video collection. 6 6 * Author: CodeFlavors 7 * Version: 2.3 7 * Version: 2.3.1 8 8 * Author URI: https://codeflavors.com 9 9 * Text Domain: codeflavors-vimeo-video-post-lite … … 17 17 define( 'VIMEOTHEQUE_PATH', plugin_dir_path( __FILE__ ) ); 18 18 define( 'VIMEOTHEQUE_URL', plugin_dir_url( __FILE__ ) ); 19 define( 'VIMEOTHEQUE_VERSION', '2.3 ' );19 define( 'VIMEOTHEQUE_VERSION', '2.3.1' ); 20 20 define( 'VIMEOTHEQUE_TEMPLATE_DEBUG_MODE', false ); 21 21 /** -
codeflavors-vimeo-video-post-lite/trunk/readme.txt
r3075417 r3083053 3 3 Tags: vimeo, video embed, video gallery, featured video, video post 4 4 Requires at least: 5.2 5 Tested up to: 6.5. 25 Tested up to: 6.5.3 6 6 Requires PHP: 7.4 7 Stable tag: 2.3 7 Stable tag: 2.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 136 136 137 137 == Changelog == 138 = 2.3.1= 139 - Introduced option for customizable Series slug; 140 - Solved a bug that generated "404 - Not found" pages when changing slugs for post type, tag or video category from the Vimeotheque Settings page. 141 138 142 = 2.3 = 139 143 - Introduced Series, a feature that allow you to create video galleries from imported videos and display them in posts or pages using the Block Editor; -
codeflavors-vimeo-video-post-lite/trunk/views/plugin_settings.php
r3075417 r3083053 162 162 </td> 163 163 </tr> 164 <tr> 165 <th scope="row"><label for="series_slug"><?php _e('Series slug', 'codeflavors-vimeo-video-post-lite')?> :</label></th> 166 <td> 167 <input type="text" id="series_slug" name="series_slug" value="<?php echo $options['series_slug'];?>" /> 168 </td> 169 </tr> 164 170 </tbody> 165 171 </table>
Note: See TracChangeset
for help on using the changeset viewer.