WordPress.org

Plugin Directory

Changeset 1423621


Ignore:
Timestamp:
05/24/16 21:59:36 (18 months ago)
Author:
ChrisWiegman
Message:

Version 2.1.4

Location:
better-yourls/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • better-yourls/trunk

    • Property svn:ignore
      •  

        old new  
        1111.travis.yml 
        1212bootstrap.php 
         13.jshintrc 
        1314tests 
  • better-yourls/trunk/better-yourls.php

    r1330161 r1423621  
    44 * Plugin URI: https://wordpress.org/plugins/better-yourls/ 
    55 * Description: Replace WordPress shortlinks with custom YOURLS domain. 
    6  * Version: 2.1.3 
     6 * Version: 2.1.4 
    77 * Text Domain: better-yourls 
    88 * Domain Path: /lang 
     
    1313 */ 
    1414 
    15 define( 'BYOURLS_VERSION', '2.1.3' ); 
     15define( 'BYOURLS_VERSION', '2.1.4' ); 
    1616define( 'BYOURLS_URL', plugin_dir_url( __FILE__ ) ); 
    1717 
  • better-yourls/trunk/includes/class-better-yourls-actions.php

    r1330152 r1423621  
    5959     * Determine post validity 
    6060     * 
    61      * Absctracts determining whether or not a short link should be created. 
     61     * Abstracts determining whether or not a short link should be created. 
    6262     * 
    6363     * @since 2.1 
     
    7575            ( false === $post_type || ( isset( $this->settings['post_types'] ) && is_array( $this->settings['post_types'] ) ) && in_array( $post_type, $this->settings['post_types'] ) ) || 
    7676            'nav_menu_item' === $post_type || 
    77             ( defined( 'DOING_AUTOSAVE' ) && true === DOING_AJAX ) || 
    78             ( defined( 'DOING_AJAX' ) && true === DOING_AUTOSAVE ) || 
     77            ( defined( 'DOING_AUTOSAVE' ) && true === DOING_AUTOSAVE ) || 
     78            ( defined( 'DOING_AJAX' ) && true === DOING_AJAX ) || 
    7979            ( defined( 'DOING_CRON' ) && true === DOING_CRON ) 
    8080        ) { 
     
    184184            add_meta_box( 
    185185                'yourls_keyword', 
    186                 __( 'YOURLs Keyword', 'better-yourls' ), 
     186                esc_html__( 'YOURLs Keyword', 'better-yourls' ), 
    187187                array( $this, 'yourls_keyword_metabox' ), 
    188188                $post->post_type, 
     
    233233                    'href'  => '', 
    234234                    'id'    => 'better_yourls', 
    235                     'title' => __( 'YOURLS', 'better-yourls' ), 
     235                    'title' => esc_html__( 'YOURLS', 'better-yourls' ), 
    236236                ) 
    237237            ); 
     
    242242                    'parent' => 'better_yourls', 
    243243                    'id'     => 'better_yourls-link', 
    244                     'title'  => __( 'YOURLS Link', 'better-yourls' ), 
     244                    'title'  => esc_html__( 'YOURLS Link', 'better-yourls' ), 
    245245                ) 
    246246            ); 
     
    250250                    'parent' => 'better_yourls', 
    251251                    'id'     => 'better_yourls-stats', 
    252                     'title'  => __( 'Link Stats', 'better-yourls' ), 
     252                    'title'  => esc_html__( 'Link Stats', 'better-yourls' ), 
    253253                    'href'   => $stats_url, 
    254254                    'meta'   => array( 
     
    316316            if ( defined( 'WP_DEBUG' ) && true === WP_DEBUG ) { 
    317317 
    318                 wp_register_script( 'better_yourls', BYOURLS_URL . '/assets/js/better-yourls.js', array( 'jquery' ), BYOURLS_VERSION ); 
     318                wp_register_script( 'better_yourls', BYOURLS_URL . 'assets/js/better-yourls.js', array( 'jquery' ), BYOURLS_VERSION ); 
    319319 
    320320            } else { 
    321321 
    322                 wp_register_script( 'better_yourls', BYOURLS_URL . '/assets/js/better-yourls.min.js', array( 'jquery' ), BYOURLS_VERSION ); 
     322                wp_register_script( 'better_yourls', BYOURLS_URL . 'assets/js/better-yourls.min.js', array( 'jquery' ), BYOURLS_VERSION ); 
    323323 
    324324            } 
     
    330330                'better_yourls', 
    331331                array( 
    332                     'text'       => __( 'Your YOURLS short link is: ', 'better-yourls' ), 
     332                    'text'       => esc_html__( 'Your YOURLS short link is: ', 'better-yourls' ), 
    333333                    'yourls_url' => wp_get_shortlink( $post->ID ), 
    334334                ) 
     
    384384            // Keyword and title aren't currently used but may be in the future. 
    385385            if ( '' !== $keyword ) { 
    386                 $args['keyword'] = sanitize_title( $keyword ); 
     386                $args['body']['keyword'] = sanitize_title( $keyword ); 
    387387            } 
    388388 
  • better-yourls/trunk/includes/class-better-yourls-admin.php

    r1330152 r1423621  
    5858            if ( defined( 'WP_DEBUG' ) && true === WP_DEBUG ) { 
    5959 
    60                 wp_register_script( 'better_yourls_footer', BYOURLS_URL . '/js/admin-footer.js', array( 'jquery' ), BYOURLS_VERSION, true ); 
    61                 wp_register_style( 'better_yourls_admin', BYOURLS_URL .  '/css/better-yourls.css', array(), BYOURLS_VERSION ); // Add multi-select css. 
     60                wp_register_script( 'better_yourls_footer', BYOURLS_URL . 'assets/js/admin-footer.js', array( 'jquery' ), BYOURLS_VERSION, true ); 
     61                wp_register_style( 'better_yourls_admin', BYOURLS_URL .  'assets/css/better-yourls.css', array(), BYOURLS_VERSION ); // Add multi-select css. 
    6262 
    6363            } else { 
    6464 
    65                 wp_register_script( 'better_yourls_footer', BYOURLS_URL . '/js/admin-footer.min.js', array( 'jquery' ), BYOURLS_VERSION, true ); 
    66                 wp_register_style( 'better_yourls_admin', BYOURLS_URL .  '/css/better-yourls.min.css', array(), BYOURLS_VERSION ); // Add multi-select css. 
     65                wp_register_script( 'better_yourls_footer', BYOURLS_URL . 'assets/js/admin-footer.min.js', array( 'jquery' ), BYOURLS_VERSION, true ); 
     66                wp_register_style( 'better_yourls_admin', BYOURLS_URL .  'assets/css/better-yourls.min.css', array(), BYOURLS_VERSION ); // Add multi-select css. 
    6767 
    6868            } 
     
    8888        add_meta_box( 
    8989            'better_yourls_intro', 
    90             __( 'Better Yourls', 'better-yourls' ), 
     90            esc_html__( 'Better Yourls', 'better-yourls' ), 
    9191            array( $this, 'metabox_settings' ), 
    9292            'settings_page_better_yourls', 
     
    9696        add_meta_box( 
    9797            'better_yourls_support', 
    98             __( 'Support This Plugin', 'better-yourls' ), 
     98            esc_html__( 'Support This Plugin', 'better-yourls' ), 
    9999            array( $this, 'metabox_support' ), 
    100100            'settings_page_better_yourls', 
     
    104104        add_meta_box( 
    105105            'better_yourls_help', 
    106             __( 'Need help?', 'better-yourls' ), 
     106            esc_html__( 'Need help?', 'better-yourls' ), 
    107107            array( $this, 'metabox_help' ), 
    108108            'settings_page_better_yourls', 
     
    121121        add_settings_field( 
    122122            'better_yourls[domain]', 
    123             __( 'YOURLS Domain', 'better-yourls' ), 
     123            esc_html__( 'YOURLS Domain', 'better-yourls' ), 
    124124            array( $this, 'settings_field_domain' ), 
    125125            'settings_page_better_yourls', 
     
    129129        add_settings_field( 
    130130            'better_yourls[https]', 
    131             __( 'Use https', 'better-yourls' ), 
     131            esc_html__( 'Use https', 'better-yourls' ), 
    132132            array( $this, 'settings_field_https' ), 
    133133            'settings_page_better_yourls', 
     
    137137        add_settings_field( 
    138138            'better_yourls[https_ignore]', 
    139             __( 'Allow Self-signed https Certificate', 'better-yourls' ), 
     139            esc_html__( 'Allow Self-signed https Certificate', 'better-yourls' ), 
    140140            array( $this, 'settings_field_https_ignore' ), 
    141141            'settings_page_better_yourls', 
     
    145145        add_settings_field( 
    146146            'better_yourls[key]', 
    147             __( 'YOURLS  Token', 'better-yourls' ), 
     147            esc_html__( 'YOURLS  Token', 'better-yourls' ), 
    148148            array( $this, 'settings_field_key' ), 
    149149            'settings_page_better_yourls', 
     
    153153        add_settings_field( 
    154154            'better_yourls[post_types]', 
    155             __( 'Exclude Post Types', 'better-yourls' ), 
     155            esc_html__( 'Exclude Post Types', 'better-yourls' ), 
    156156            array( $this, 'settings_field_post_types' ), 
    157157            'settings_page_better_yourls', 
     
    178178 
    179179        $page = add_options_page( 
    180             __( 'Better YOURLS', 'better-yourls' ), 
    181             __( 'Better YOURLS', 'better-yourls' ), 
     180            esc_html__( 'Better YOURLS', 'better-yourls' ), 
     181            esc_html__( 'Better YOURLS', 'better-yourls' ), 
    182182            'manage_options', 
    183183            'better_yourls', 
     
    227227        $support_page = 'https://wordpress.org/plugins/better-yourls/support/'; 
    228228 
    229         echo '<p>' . esc_html__( 'If you need help getting this plugin or have found a bug please visit the <a href="' . $support_page . '" target="_blank">support forums</a>.', 'better-yourls' ) . '</p>'; 
     229        printf ( 
     230            esc_html__( 'If you need help getting this plugin or have found a bug please visit the %ssupport forums%s.', 'better-yourls' ), 
     231            '<a href="' . $support_page . '" target="_blank">', 
     232            '</a>' 
     233        ); 
    230234 
    231235    } 
     
    502506            } 
    503507 
    504             echo '<input type="checkbox" name="better_yourls[post_types][' . esc_attr( $post_type->name ) . ']" value="' . esc_attr( $post_type->name ) . '" ' . checked( true, $checked, false ) . '><label for="better_yourls[post_types][' . esc_attr( $post_type->name ) . ']">' . sanitize_text_field( $post_type->labels->name ) . '</label><br />'; 
     508            echo '<input type="checkbox" name="better_yourls[post_types][' . esc_attr( $post_type->name ) . ']" value="' . esc_attr( $post_type->name ) . '" ' . checked( true, $checked, false ) . '><label for="better_yourls[post_types][' . esc_attr( $post_type->name ) . ']">' . esc_html( $post_type->labels->name ) . '</label><br />'; 
    505509 
    506510        } 
  • better-yourls/trunk/lang/better-yourls.pot

    r1330161 r1423621  
    55"Project-Id-Version: Better YOURLS 2.1.3\n" 
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/better-yourls\n" 
    7 "POT-Creation-Date: 2016-01-17 21:08:13+00:00\n" 
     7"POT-Creation-Date: 2016-02-21 15:52:23+00:00\n" 
    88"MIME-Version: 1.0\n" 
    99"Content-Type: text/plain; charset=utf-8\n" 
  • better-yourls/trunk/readme.txt

    r1330161 r1423621  
    44Tags: yourls, shortlink, custom shortlink 
    55Requires at least: 4.2 
    6 Tested up to: 4.5 
    7 Stable tag: 2.1.3 
     6Tested up to: 4.6 
     7Stable tag: 2.1.4 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5353 
    5454== Changelog == 
     55 
     56= 2.1.4 = 
     57* Fixed custom keyword issue (Credit Dom Sammut) 
     58* Various typo and other minor fixes. 
    5559 
    5660= 2.1.3 = 
     
    103107== Upgrade Notice == 
    104108 
     109= 2.1.4 = 
     110* Version 2.1.3 is a bugfix update that is recommended for all users. 
     111 
    105112= 2.1.3 = 
    106113* Version 2.1.3 is a bugfix update that is recommended for all users. 
Note: See TracChangeset for help on using the changeset viewer.