Plugin Directory

Changeset 3375497


Ignore:
Timestamp:
10/09/2025 07:19:19 AM (6 months ago)
Author:
alexus450
Message:

Update to version 1.0.3 from GitHub

Location:
quickpick
Files:
15 added
4 deleted
6 edited
1 copied

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.
    43msgid ""
    54msgstr ""
    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"
    78"MIME-Version: 1.0\n"
    89"Content-Type: text/plain; charset=UTF-8\n"
    910"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"
    1015"X-Poedit-Basepath: ..\n"
    1116"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;"
     
    1419"X-Poedit-SourceCharset: UTF-8\n"
    1520"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"
    2321"X-Poedit-SearchPath-0: .\n"
    2422"X-Poedit-SearchPathExcluded-0: *.js\n"
    2523
    26 #: quickpick.php:92
    27 msgid "No Front Page"
     24#: quickpick.php:101
     25msgid "No Homepage"
    2826msgstr ""
    2927
    30 #: quickpick.php:147
     28#: quickpick.php:152
    3129msgid "this page is set as homepage"
    3230msgstr ""
    3331
    34 #: quickpick.php:183 quickpick.php:219
     32#: quickpick.php:198
     33#: quickpick.php:234
    3534msgid "edited:"
    3635msgstr ""
    3736
    38 #: quickpick.php:183 quickpick.php:219
     37#: quickpick.php:198
     38#: quickpick.php:234
    3939msgid "at"
    4040msgstr ""
     41
     42#: quickpick.php:278
     43msgid "Set as Homepage"
     44msgstr ""
     45
     46#: quickpick.php:296
     47msgid "Security check failed"
     48msgstr ""
     49
     50#: quickpick.php:303
     51#: quickpick.php:317
     52msgid "Invalid page ID"
     53msgstr ""
     54
     55#: quickpick.php:308
     56msgid "You do not have permission to perform this action"
     57msgstr ""
     58
     59#: quickpick.php:315
     60msgid "Page set as homepage successfully"
     61msgstr ""
  • quickpick/tags/1.0.3/quickpick.php

    r3372750 r3375497  
    44 * Plugin URI:        https://wordpress.org/plugins/quickpick
    55 * Description:       QuickPick is a tiny WordPress plugin that will help you to save time on finding just recently editing posts.
    6  * Version:           1.0.2
     6 * Version:           1.0.3
    77 * Author:            Alexei Samarschi
    88 * Author URI:        https://profiles.wordpress.org/alexus450/
     
    5555        }
    5656
    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    }
    7277
    7378        /**
     
    8590        }
    8691
    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 ) ) {
    104103            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    }
    107112
    108113        /**
     
    145150            }
    146151
    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>
    158163                            <li>' . $this->last_updated_pages() . '</li>
    159164                            <li class="divider"></li>
     
    238243
    239244        }
     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        }
    240365
    241366        /**
  • quickpick/tags/1.0.3/readme.txt

    r3372750 r3375497  
    11=== QuickPick ===
    22Contributors: alexus450
    3 Donate link: http://paypal.me/gt330/5usd
    4 Tags: quick edit, edit post, edit page, recently, edited
     3Donate link: http://paypal.me/gt330/10usd
     4Tags: recently edited, quick access, admin, homepage, productivity
    55Requires at least: 5.0
    66Requires PHP: 5.6
    77Tested up to: 6.8
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    2020* Clean, intuitive dropdown interface
    2121* Homepage link integration for pages
     22* Set any page as homepage with one click (AJAX-powered)
    2223* Lightweight and fast
    2324* No configuration required
     
    5960
    60611. Posts list with the QuickPick button
    61 2. Pages list with the QuickPick button showing homepage link
     622. Pages list with the QuickPick button
     633. Pages list with the button showing homepage link
    6264
    6365== 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
    6470
    6571= 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.
    43msgid ""
    54msgstr ""
    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"
    78"MIME-Version: 1.0\n"
    89"Content-Type: text/plain; charset=UTF-8\n"
    910"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"
    1015"X-Poedit-Basepath: ..\n"
    1116"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;"
     
    1419"X-Poedit-SourceCharset: UTF-8\n"
    1520"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"
    2321"X-Poedit-SearchPath-0: .\n"
    2422"X-Poedit-SearchPathExcluded-0: *.js\n"
    2523
    26 #: quickpick.php:92
    27 msgid "No Front Page"
     24#: quickpick.php:101
     25msgid "No Homepage"
    2826msgstr ""
    2927
    30 #: quickpick.php:147
     28#: quickpick.php:152
    3129msgid "this page is set as homepage"
    3230msgstr ""
    3331
    34 #: quickpick.php:183 quickpick.php:219
     32#: quickpick.php:198
     33#: quickpick.php:234
    3534msgid "edited:"
    3635msgstr ""
    3736
    38 #: quickpick.php:183 quickpick.php:219
     37#: quickpick.php:198
     38#: quickpick.php:234
    3939msgid "at"
    4040msgstr ""
     41
     42#: quickpick.php:278
     43msgid "Set as Homepage"
     44msgstr ""
     45
     46#: quickpick.php:296
     47msgid "Security check failed"
     48msgstr ""
     49
     50#: quickpick.php:303
     51#: quickpick.php:317
     52msgid "Invalid page ID"
     53msgstr ""
     54
     55#: quickpick.php:308
     56msgid "You do not have permission to perform this action"
     57msgstr ""
     58
     59#: quickpick.php:315
     60msgid "Page set as homepage successfully"
     61msgstr ""
  • quickpick/trunk/quickpick.php

    r3372750 r3375497  
    44 * Plugin URI:        https://wordpress.org/plugins/quickpick
    55 * Description:       QuickPick is a tiny WordPress plugin that will help you to save time on finding just recently editing posts.
    6  * Version:           1.0.2
     6 * Version:           1.0.3
    77 * Author:            Alexei Samarschi
    88 * Author URI:        https://profiles.wordpress.org/alexus450/
     
    5555        }
    5656
    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    }
    7277
    7378        /**
     
    8590        }
    8691
    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 ) ) {
    104103            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    }
    107112
    108113        /**
     
    145150            }
    146151
    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>
    158163                            <li>' . $this->last_updated_pages() . '</li>
    159164                            <li class="divider"></li>
     
    238243
    239244        }
     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        }
    240365
    241366        /**
  • quickpick/trunk/readme.txt

    r3372750 r3375497  
    11=== QuickPick ===
    22Contributors: alexus450
    3 Donate link: http://paypal.me/gt330/5usd
    4 Tags: quick edit, edit post, edit page, recently, edited
     3Donate link: http://paypal.me/gt330/10usd
     4Tags: recently edited, quick access, admin, homepage, productivity
    55Requires at least: 5.0
    66Requires PHP: 5.6
    77Tested up to: 6.8
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    2020* Clean, intuitive dropdown interface
    2121* Homepage link integration for pages
     22* Set any page as homepage with one click (AJAX-powered)
    2223* Lightweight and fast
    2324* No configuration required
     
    5960
    60611. Posts list with the QuickPick button
    61 2. Pages list with the QuickPick button showing homepage link
     622. Pages list with the QuickPick button
     633. Pages list with the button showing homepage link
    6264
    6365== 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
    6470
    6571= 1.0.2 =
Note: See TracChangeset for help on using the changeset viewer.