Changeset 3375497
- Timestamp:
- 10/09/2025 07:19:19 AM (6 months ago)
- Location:
- quickpick
- Files:
-
- 15 added
- 4 deleted
- 6 edited
- 1 copied
-
assets/Screenshot-1.png (added)
-
assets/Screenshot-2.png (added)
-
assets/Screenshot-3.png (added)
-
tags/1.0.3 (copied) (copied from quickpick/trunk)
-
tags/1.0.3/Screenshot-1.png (deleted)
-
tags/1.0.3/Screenshot-2.png (deleted)
-
tags/1.0.3/assets/css (added)
-
tags/1.0.3/assets/css/quickpick-frontpage.css (added)
-
tags/1.0.3/assets/css/quickpick-homepage.css (added)
-
tags/1.0.3/assets/js (added)
-
tags/1.0.3/assets/js/quickpick-frontpage.js (added)
-
tags/1.0.3/assets/js/quickpick-homepage.js (added)
-
tags/1.0.3/languages/quickpick.pot (modified) (2 diffs)
-
tags/1.0.3/quickpick.php (modified) (5 diffs)
-
tags/1.0.3/readme.txt (modified) (3 diffs)
-
trunk/Screenshot-1.png (deleted)
-
trunk/Screenshot-2.png (deleted)
-
trunk/assets/css (added)
-
trunk/assets/css/quickpick-frontpage.css (added)
-
trunk/assets/css/quickpick-homepage.css (added)
-
trunk/assets/js (added)
-
trunk/assets/js/quickpick-frontpage.js (added)
-
trunk/assets/js/quickpick-homepage.js (added)
-
trunk/languages/quickpick.pot (modified) (2 diffs)
-
trunk/quickpick.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quickpick/tags/1.0.3/languages/quickpick.pot
r2564609 r3375497 1 # Copyright (C) 2021 blc 2 # This file is distributed under the same license as the blc package. 3 #, fuzzy 1 # Copyright (C) 2025 Alexei Samarschi 2 # This file is distributed under the same license as the QuickPick package. 4 3 msgid "" 5 4 msgstr "" 6 "Project-Id-Version: QuickPick 1.0.0\n" 5 "Project-Id-Version: QuickPick 1.0.3\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/quickpick\n" 7 "POT-Creation-Date: 2025-01-01 00:00:00+00:00\n" 7 8 "MIME-Version: 1.0\n" 8 9 "Content-Type: text/plain; charset=UTF-8\n" 9 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n" 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 "X-Generator: Poedit 2.2.3\n" 10 15 "X-Poedit-Basepath: ..\n" 11 16 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;" … … 14 19 "X-Poedit-SourceCharset: UTF-8\n" 15 20 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 "Content-Type: text/plain; charset=utf-8\n"17 "x-generator: babel-plugin-wp-i18n\n"18 "POT-Creation-Date: \n"19 "PO-Revision-Date: \n"20 "Last-Translator: \n"21 "Language-Team: Alexei Samarschi\n"22 "X-Generator: Poedit 2.2.3\n"23 21 "X-Poedit-SearchPath-0: .\n" 24 22 "X-Poedit-SearchPathExcluded-0: *.js\n" 25 23 26 #: quickpick.php: 9227 msgid "No Front Page"24 #: quickpick.php:101 25 msgid "No Homepage" 28 26 msgstr "" 29 27 30 #: quickpick.php:1 4728 #: quickpick.php:152 31 29 msgid "this page is set as homepage" 32 30 msgstr "" 33 31 34 #: quickpick.php:183 quickpick.php:219 32 #: quickpick.php:198 33 #: quickpick.php:234 35 34 msgid "edited:" 36 35 msgstr "" 37 36 38 #: quickpick.php:183 quickpick.php:219 37 #: quickpick.php:198 38 #: quickpick.php:234 39 39 msgid "at" 40 40 msgstr "" 41 42 #: quickpick.php:278 43 msgid "Set as Homepage" 44 msgstr "" 45 46 #: quickpick.php:296 47 msgid "Security check failed" 48 msgstr "" 49 50 #: quickpick.php:303 51 #: quickpick.php:317 52 msgid "Invalid page ID" 53 msgstr "" 54 55 #: quickpick.php:308 56 msgid "You do not have permission to perform this action" 57 msgstr "" 58 59 #: quickpick.php:315 60 msgid "Page set as homepage successfully" 61 msgstr "" -
quickpick/tags/1.0.3/quickpick.php
r3372750 r3375497 4 4 * Plugin URI: https://wordpress.org/plugins/quickpick 5 5 * Description: QuickPick is a tiny WordPress plugin that will help you to save time on finding just recently editing posts. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: Alexei Samarschi 8 8 * Author URI: https://profiles.wordpress.org/alexus450/ … … 55 55 } 56 56 57 /** 58 * Plugin constructor. 59 * 60 * @since 1.0.0 61 */ 62 private function __construct() { 63 64 add_action( 'init', array( $this, 'i18n' ) ); 65 66 add_filter( 'views_edit-post', array( $this, 'quickpick_button_posts' ), 99 ); 67 add_filter( 'views_edit-page', array( $this, 'quickpick_button_pages' ), 99 ); 68 69 add_action( 'admin_head', array( $this, 'quickpick_css') ); 70 71 } 57 /** 58 * Plugin constructor. 59 * 60 * @since 1.0.0 61 */ 62 private function __construct() { 63 64 add_action( 'init', array( $this, 'i18n' ) ); 65 66 add_filter( 'views_edit-post', array( $this, 'quickpick_button_posts' ), 99 ); 67 add_filter( 'views_edit-page', array( $this, 'quickpick_button_pages' ), 99 ); 68 69 add_action( 'admin_head', array( $this, 'quickpick_css') ); 70 71 // Add "Set as Homepage" feature 72 add_filter( 'page_row_actions', array( $this, 'filter_admin_row_actions' ), 11, 2 ); 73 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 99 ); 74 add_action( 'wp_ajax_quickpick_set_homepage', array( $this, 'set_page_as_homepage' ) ); 75 76 } 72 77 73 78 /** … … 85 90 } 86 91 87 /** 88 * Check if the front page exists and add it's link to the QuickPick 89 * 90 * @since 1.0.0 91 * @return void 92 */ 93 public function get_frontpage_edit_link() { 94 95 $frontpage_id = get_option( 'page_on_front' ); 96 $out = esc_html__( 'No Front Page', 'quickpick' ); 97 if( empty( $frontpage_id ) ) { 98 return $out; 99 } 100 $frontpage_link = get_edit_post_link( $frontpage_id ); 101 $frontpage_title = get_the_title( $frontpage_id ); 102 $out = sprintf( '<a href="%s">%s</a>', $frontpage_link, $frontpage_title ); 103 92 /** 93 * Check if the homepage exists and add it's link to the QuickPick 94 * 95 * @since 1.0.0 96 * @return void 97 */ 98 public function get_homepage_edit_link() { 99 100 $homepage_id = get_option( 'page_on_front' ); 101 $out = esc_html__( 'No Homepage', 'quickpick' ); 102 if( empty( $homepage_id ) ) { 104 103 return $out; 105 106 } 104 } 105 $homepage_link = get_edit_post_link( $homepage_id ); 106 $homepage_title = get_the_title( $homepage_id ); 107 $out = sprintf( '<a href="%s">%s</a>', $homepage_link, $homepage_title ); 108 109 return $out; 110 111 } 107 112 108 113 /** … … 145 150 } 146 151 147 $desc = '<small>' . esc_html__( 'this page is set as homepage', 'quickpick' ) . '</small>';148 $frontpage_id = get_option( 'page_on_front' );149 if( empty( $frontpage_id ) ) {150 $desc = '';151 }152 153 $out = '<label class="qp-dropdown">154 <div class="qp-button">QuikPick</div>155 <input type="checkbox" class="qp-input" id="quickpick-input">156 <ul class="qp-menu">157 <li class="homepage-link">' . $this->get_frontpage_edit_link() . $desc . '</li>152 $desc = '<small>' . esc_html__( 'this page is set as homepage', 'quickpick' ) . '</small>'; 153 $homepage_id = get_option( 'page_on_front' ); 154 if( empty( $homepage_id ) ) { 155 $desc = ''; 156 } 157 158 $out = '<label class="qp-dropdown"> 159 <div class="qp-button">QuikPick</div> 160 <input type="checkbox" class="qp-input" id="quickpick-input"> 161 <ul class="qp-menu"> 162 <li class="homepage-link">' . $this->get_homepage_edit_link() . $desc . '</li> 158 163 <li>' . $this->last_updated_pages() . '</li> 159 164 <li class="divider"></li> … … 238 243 239 244 } 245 246 /** 247 * Add/Remove edit link in dashboard. 248 * 249 * Add or remove an edit link to the page action links on the pages list table. 250 * 251 * Fired by 'page_row_actions' filter. 252 * 253 * @since 1.0.3 254 * @access public 255 * 256 * @param array $actions An array of row action links. 257 * @param WP_Post $post The post object. 258 * 259 * @return array An updated array of row action links. 260 */ 261 public function filter_admin_row_actions( $actions, $post ) { 262 263 // Make sure the page is published 264 if( 'publish' !== $post->post_status ) { 265 return $actions; 266 } 267 268 // Check if the page is not homepage already 269 if( 'page' == get_option( 'show_on_front' ) && $post->ID == get_option( 'page_on_front' ) ) { 270 return $actions; 271 } 272 273 // Add our link with icon 274 $actions['quickpick_set_as_homepage'] = sprintf( 275 '<a class="quickpick-set-homepage" href="#" data-page-id="%1$d" data-nonce="%2$s" title="%3$s" aria-label="%3$s"><span class="dashicons dashicons-admin-home"></span></a>', 276 $post->ID, 277 wp_create_nonce( 'quickpick-set-homepage' ), 278 esc_attr__( 'Set as Homepage', 'quickpick' ) 279 ); 280 281 return $actions; 282 283 } 284 285 /** 286 * Set page as homepage via AJAX 287 * 288 * @since 1.0.3 289 * @access public 290 * 291 * @return void 292 */ 293 public function set_page_as_homepage() { 294 295 if( ! wp_verify_nonce( $_POST['nonce'], 'quickpick-set-homepage' ) ) { 296 wp_send_json_error( array( 'message' => esc_html__( 'Security check failed', 'quickpick' ) ) ); 297 return; 298 } 299 300 if( isset( $_POST['page_id'] ) ) { 301 $page_id = absint( $_POST['page_id'] ); 302 } else { 303 wp_send_json_error( array( 'message' => esc_html__( 'Invalid page ID', 'quickpick' ) ) ); 304 return; 305 } 306 307 if( !current_user_can( 'edit_pages' ) ) { 308 wp_send_json_error( array( 'message' => esc_html__( 'You do not have permission to perform this action', 'quickpick' ) ) ); 309 return; 310 } 311 312 if( !empty( $page_id ) ) { 313 update_option( 'show_on_front', 'page' ); 314 update_option( 'page_on_front', $page_id ); 315 wp_send_json_success( array( 'message' => esc_html__( 'Page set as homepage successfully', 'quickpick' ) ) ); 316 } else { 317 wp_send_json_error( array( 'message' => esc_html__( 'Invalid page ID', 'quickpick' ) ) ); 318 } 319 320 } 321 322 /** 323 * Enqueue plugin scripts and styles 324 * 325 * @since 1.0.3 326 * @access public 327 * 328 * @return void 329 */ 330 public function enqueue_scripts() { 331 332 // Only enqueue on pages list screen 333 $screen = get_current_screen(); 334 if ( ! $screen || 'edit-page' !== $screen->id ) { 335 return; 336 } 337 338 // Enqueue CSS 339 wp_enqueue_style( 340 'quickpick-homepage', 341 plugins_url( '/assets/css/quickpick-homepage.css', __FILE__ ), 342 array(), 343 '1.0.3' 344 ); 345 346 // Enqueue JS 347 wp_enqueue_script( 348 'quickpick-homepage-js', 349 plugins_url( '/assets/js/quickpick-homepage.js', __FILE__ ), 350 array( 'jquery' ), 351 '1.0.3', 352 true 353 ); 354 355 wp_localize_script( 356 'quickpick-homepage-js', 357 'QuickPickHomepage', 358 array( 359 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 360 'ajax_nonce' => wp_create_nonce( 'quickpick-set-homepage' ), 361 ) 362 ); 363 364 } 240 365 241 366 /** -
quickpick/tags/1.0.3/readme.txt
r3372750 r3375497 1 1 === QuickPick === 2 2 Contributors: alexus450 3 Donate link: http://paypal.me/gt330/ 5usd4 Tags: quick edit, edit post, edit page, recently, edited3 Donate link: http://paypal.me/gt330/10usd 4 Tags: recently edited, quick access, admin, homepage, productivity 5 5 Requires at least: 5.0 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.8 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 20 20 * Clean, intuitive dropdown interface 21 21 * Homepage link integration for pages 22 * Set any page as homepage with one click (AJAX-powered) 22 23 * Lightweight and fast 23 24 * No configuration required … … 59 60 60 61 1. Posts list with the QuickPick button 61 2. Pages list with the QuickPick button showing homepage link 62 2. Pages list with the QuickPick button 63 3. Pages list with the button showing homepage link 62 64 63 65 == Changelog == 66 67 = 1.0.3 = 68 * Added action link in pages list to set page as homepage with one click 69 * Enhanced page management capabilities 64 70 65 71 = 1.0.2 = -
quickpick/trunk/languages/quickpick.pot
r2564609 r3375497 1 # Copyright (C) 2021 blc 2 # This file is distributed under the same license as the blc package. 3 #, fuzzy 1 # Copyright (C) 2025 Alexei Samarschi 2 # This file is distributed under the same license as the QuickPick package. 4 3 msgid "" 5 4 msgstr "" 6 "Project-Id-Version: QuickPick 1.0.0\n" 5 "Project-Id-Version: QuickPick 1.0.3\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/quickpick\n" 7 "POT-Creation-Date: 2025-01-01 00:00:00+00:00\n" 7 8 "MIME-Version: 1.0\n" 8 9 "Content-Type: text/plain; charset=UTF-8\n" 9 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2025-MO-DA HO:MI+ZONE\n" 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 "X-Generator: Poedit 2.2.3\n" 10 15 "X-Poedit-Basepath: ..\n" 11 16 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;" … … 14 19 "X-Poedit-SourceCharset: UTF-8\n" 15 20 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 "Content-Type: text/plain; charset=utf-8\n"17 "x-generator: babel-plugin-wp-i18n\n"18 "POT-Creation-Date: \n"19 "PO-Revision-Date: \n"20 "Last-Translator: \n"21 "Language-Team: Alexei Samarschi\n"22 "X-Generator: Poedit 2.2.3\n"23 21 "X-Poedit-SearchPath-0: .\n" 24 22 "X-Poedit-SearchPathExcluded-0: *.js\n" 25 23 26 #: quickpick.php: 9227 msgid "No Front Page"24 #: quickpick.php:101 25 msgid "No Homepage" 28 26 msgstr "" 29 27 30 #: quickpick.php:1 4728 #: quickpick.php:152 31 29 msgid "this page is set as homepage" 32 30 msgstr "" 33 31 34 #: quickpick.php:183 quickpick.php:219 32 #: quickpick.php:198 33 #: quickpick.php:234 35 34 msgid "edited:" 36 35 msgstr "" 37 36 38 #: quickpick.php:183 quickpick.php:219 37 #: quickpick.php:198 38 #: quickpick.php:234 39 39 msgid "at" 40 40 msgstr "" 41 42 #: quickpick.php:278 43 msgid "Set as Homepage" 44 msgstr "" 45 46 #: quickpick.php:296 47 msgid "Security check failed" 48 msgstr "" 49 50 #: quickpick.php:303 51 #: quickpick.php:317 52 msgid "Invalid page ID" 53 msgstr "" 54 55 #: quickpick.php:308 56 msgid "You do not have permission to perform this action" 57 msgstr "" 58 59 #: quickpick.php:315 60 msgid "Page set as homepage successfully" 61 msgstr "" -
quickpick/trunk/quickpick.php
r3372750 r3375497 4 4 * Plugin URI: https://wordpress.org/plugins/quickpick 5 5 * Description: QuickPick is a tiny WordPress plugin that will help you to save time on finding just recently editing posts. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: Alexei Samarschi 8 8 * Author URI: https://profiles.wordpress.org/alexus450/ … … 55 55 } 56 56 57 /** 58 * Plugin constructor. 59 * 60 * @since 1.0.0 61 */ 62 private function __construct() { 63 64 add_action( 'init', array( $this, 'i18n' ) ); 65 66 add_filter( 'views_edit-post', array( $this, 'quickpick_button_posts' ), 99 ); 67 add_filter( 'views_edit-page', array( $this, 'quickpick_button_pages' ), 99 ); 68 69 add_action( 'admin_head', array( $this, 'quickpick_css') ); 70 71 } 57 /** 58 * Plugin constructor. 59 * 60 * @since 1.0.0 61 */ 62 private function __construct() { 63 64 add_action( 'init', array( $this, 'i18n' ) ); 65 66 add_filter( 'views_edit-post', array( $this, 'quickpick_button_posts' ), 99 ); 67 add_filter( 'views_edit-page', array( $this, 'quickpick_button_pages' ), 99 ); 68 69 add_action( 'admin_head', array( $this, 'quickpick_css') ); 70 71 // Add "Set as Homepage" feature 72 add_filter( 'page_row_actions', array( $this, 'filter_admin_row_actions' ), 11, 2 ); 73 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 99 ); 74 add_action( 'wp_ajax_quickpick_set_homepage', array( $this, 'set_page_as_homepage' ) ); 75 76 } 72 77 73 78 /** … … 85 90 } 86 91 87 /** 88 * Check if the front page exists and add it's link to the QuickPick 89 * 90 * @since 1.0.0 91 * @return void 92 */ 93 public function get_frontpage_edit_link() { 94 95 $frontpage_id = get_option( 'page_on_front' ); 96 $out = esc_html__( 'No Front Page', 'quickpick' ); 97 if( empty( $frontpage_id ) ) { 98 return $out; 99 } 100 $frontpage_link = get_edit_post_link( $frontpage_id ); 101 $frontpage_title = get_the_title( $frontpage_id ); 102 $out = sprintf( '<a href="%s">%s</a>', $frontpage_link, $frontpage_title ); 103 92 /** 93 * Check if the homepage exists and add it's link to the QuickPick 94 * 95 * @since 1.0.0 96 * @return void 97 */ 98 public function get_homepage_edit_link() { 99 100 $homepage_id = get_option( 'page_on_front' ); 101 $out = esc_html__( 'No Homepage', 'quickpick' ); 102 if( empty( $homepage_id ) ) { 104 103 return $out; 105 106 } 104 } 105 $homepage_link = get_edit_post_link( $homepage_id ); 106 $homepage_title = get_the_title( $homepage_id ); 107 $out = sprintf( '<a href="%s">%s</a>', $homepage_link, $homepage_title ); 108 109 return $out; 110 111 } 107 112 108 113 /** … … 145 150 } 146 151 147 $desc = '<small>' . esc_html__( 'this page is set as homepage', 'quickpick' ) . '</small>';148 $frontpage_id = get_option( 'page_on_front' );149 if( empty( $frontpage_id ) ) {150 $desc = '';151 }152 153 $out = '<label class="qp-dropdown">154 <div class="qp-button">QuikPick</div>155 <input type="checkbox" class="qp-input" id="quickpick-input">156 <ul class="qp-menu">157 <li class="homepage-link">' . $this->get_frontpage_edit_link() . $desc . '</li>152 $desc = '<small>' . esc_html__( 'this page is set as homepage', 'quickpick' ) . '</small>'; 153 $homepage_id = get_option( 'page_on_front' ); 154 if( empty( $homepage_id ) ) { 155 $desc = ''; 156 } 157 158 $out = '<label class="qp-dropdown"> 159 <div class="qp-button">QuikPick</div> 160 <input type="checkbox" class="qp-input" id="quickpick-input"> 161 <ul class="qp-menu"> 162 <li class="homepage-link">' . $this->get_homepage_edit_link() . $desc . '</li> 158 163 <li>' . $this->last_updated_pages() . '</li> 159 164 <li class="divider"></li> … … 238 243 239 244 } 245 246 /** 247 * Add/Remove edit link in dashboard. 248 * 249 * Add or remove an edit link to the page action links on the pages list table. 250 * 251 * Fired by 'page_row_actions' filter. 252 * 253 * @since 1.0.3 254 * @access public 255 * 256 * @param array $actions An array of row action links. 257 * @param WP_Post $post The post object. 258 * 259 * @return array An updated array of row action links. 260 */ 261 public function filter_admin_row_actions( $actions, $post ) { 262 263 // Make sure the page is published 264 if( 'publish' !== $post->post_status ) { 265 return $actions; 266 } 267 268 // Check if the page is not homepage already 269 if( 'page' == get_option( 'show_on_front' ) && $post->ID == get_option( 'page_on_front' ) ) { 270 return $actions; 271 } 272 273 // Add our link with icon 274 $actions['quickpick_set_as_homepage'] = sprintf( 275 '<a class="quickpick-set-homepage" href="#" data-page-id="%1$d" data-nonce="%2$s" title="%3$s" aria-label="%3$s"><span class="dashicons dashicons-admin-home"></span></a>', 276 $post->ID, 277 wp_create_nonce( 'quickpick-set-homepage' ), 278 esc_attr__( 'Set as Homepage', 'quickpick' ) 279 ); 280 281 return $actions; 282 283 } 284 285 /** 286 * Set page as homepage via AJAX 287 * 288 * @since 1.0.3 289 * @access public 290 * 291 * @return void 292 */ 293 public function set_page_as_homepage() { 294 295 if( ! wp_verify_nonce( $_POST['nonce'], 'quickpick-set-homepage' ) ) { 296 wp_send_json_error( array( 'message' => esc_html__( 'Security check failed', 'quickpick' ) ) ); 297 return; 298 } 299 300 if( isset( $_POST['page_id'] ) ) { 301 $page_id = absint( $_POST['page_id'] ); 302 } else { 303 wp_send_json_error( array( 'message' => esc_html__( 'Invalid page ID', 'quickpick' ) ) ); 304 return; 305 } 306 307 if( !current_user_can( 'edit_pages' ) ) { 308 wp_send_json_error( array( 'message' => esc_html__( 'You do not have permission to perform this action', 'quickpick' ) ) ); 309 return; 310 } 311 312 if( !empty( $page_id ) ) { 313 update_option( 'show_on_front', 'page' ); 314 update_option( 'page_on_front', $page_id ); 315 wp_send_json_success( array( 'message' => esc_html__( 'Page set as homepage successfully', 'quickpick' ) ) ); 316 } else { 317 wp_send_json_error( array( 'message' => esc_html__( 'Invalid page ID', 'quickpick' ) ) ); 318 } 319 320 } 321 322 /** 323 * Enqueue plugin scripts and styles 324 * 325 * @since 1.0.3 326 * @access public 327 * 328 * @return void 329 */ 330 public function enqueue_scripts() { 331 332 // Only enqueue on pages list screen 333 $screen = get_current_screen(); 334 if ( ! $screen || 'edit-page' !== $screen->id ) { 335 return; 336 } 337 338 // Enqueue CSS 339 wp_enqueue_style( 340 'quickpick-homepage', 341 plugins_url( '/assets/css/quickpick-homepage.css', __FILE__ ), 342 array(), 343 '1.0.3' 344 ); 345 346 // Enqueue JS 347 wp_enqueue_script( 348 'quickpick-homepage-js', 349 plugins_url( '/assets/js/quickpick-homepage.js', __FILE__ ), 350 array( 'jquery' ), 351 '1.0.3', 352 true 353 ); 354 355 wp_localize_script( 356 'quickpick-homepage-js', 357 'QuickPickHomepage', 358 array( 359 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 360 'ajax_nonce' => wp_create_nonce( 'quickpick-set-homepage' ), 361 ) 362 ); 363 364 } 240 365 241 366 /** -
quickpick/trunk/readme.txt
r3372750 r3375497 1 1 === QuickPick === 2 2 Contributors: alexus450 3 Donate link: http://paypal.me/gt330/ 5usd4 Tags: quick edit, edit post, edit page, recently, edited3 Donate link: http://paypal.me/gt330/10usd 4 Tags: recently edited, quick access, admin, homepage, productivity 5 5 Requires at least: 5.0 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.8 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 20 20 * Clean, intuitive dropdown interface 21 21 * Homepage link integration for pages 22 * Set any page as homepage with one click (AJAX-powered) 22 23 * Lightweight and fast 23 24 * No configuration required … … 59 60 60 61 1. Posts list with the QuickPick button 61 2. Pages list with the QuickPick button showing homepage link 62 2. Pages list with the QuickPick button 63 3. Pages list with the button showing homepage link 62 64 63 65 == Changelog == 66 67 = 1.0.3 = 68 * Added action link in pages list to set page as homepage with one click 69 * Enhanced page management capabilities 64 70 65 71 = 1.0.2 =
Note: See TracChangeset
for help on using the changeset viewer.