WordPress.org

Plugin Directory

Changeset 1479650


Ignore:
Timestamp:
08/20/16 18:45:31 (12 months ago)
Author:
ChrisWiegman
Message:

Version 2.1.5

Location:
better-yourls/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • better-yourls/trunk/better-yourls.php

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

    r1423621 r1479650  
    7373        // Only save at normal times. 
    7474        if ( 
    75             ( false === $post_type || ( isset( $this->settings['post_types'] ) && is_array( $this->settings['post_types'] ) ) && in_array( $post_type, $this->settings['post_types'] ) ) || 
     75            ( false === $post_type || ( isset( $this->settings['post_types'] ) && is_array( $this->settings['post_types'] ) ) && in_array( $post_type, $this->settings['post_types'], true ) ) || 
    7676            'nav_menu_item' === $post_type || 
    7777            ( defined( 'DOING_AUTOSAVE' ) && true === DOING_AUTOSAVE ) || 
     
    8989        $post_type           = get_post_type( $post_id ); 
    9090 
    91         if ( ( ! empty( $included_post_types ) && ! in_array( $post_type, $included_post_types ) ) || in_array( $post_type, $excluded_post_types ) ) { 
     91        if ( ( ! empty( $included_post_types ) && ! in_array( $post_type, $included_post_types, true ) ) || in_array( $post_type, $excluded_post_types, true ) ) { 
    9292            return false; 
    9393        } 
     
    105105 
    106106        // Make sure we're not generating this for drafts or other posts that don't need them. 
    107         if ( ! in_array( get_post_status( $post_id ), $post_statuses ) ) { 
     107        if ( ! in_array( get_post_status( $post_id ), $post_statuses, true ) ) { 
    108108            return false; 
    109109        } 
     
    129129 
    130130        // Store custom keyword (if set). 
    131         if ( isset( $_POST['better-yourls-keyword'] ) ) { 
    132             $keyword = sanitize_title( trim( $_POST['better-yourls-keyword'] ) ); 
     131        if ( isset( $_POST['better-yourls-keyword'] ) ) { // WPCS: input var ok. 
     132            $keyword = sanitize_title( trim( $_POST['better-yourls-keyword'] ) ); // WPCS: input var ok. 
    133133        } 
    134134 
     
    156156            update_post_meta( $post_id, '_better_yourls_short_link', $link ); 
    157157        } 
    158  
    159158    } 
    160159 
     
    174173        $post_type = get_post_type( $post->ID ); 
    175174 
    176         if ( false === $post_type || ( isset( $this->settings['post_types'] ) && is_array( $this->settings['post_types'] ) ) && in_array( $post_type, $this->settings['post_types'] ) ) { 
     175        if ( false === $post_type || ( isset( $this->settings['post_types'] ) && is_array( $this->settings['post_types'] ) ) && in_array( $post_type, $this->settings['post_types'], true ) ) { 
    177176            return; 
    178177        } 
     
    180179        $post_types = apply_filters( 'better_yourls_post_types', array() ); 
    181180 
    182         if ( in_array( get_post_type( $post->ID ), $post_types ) or empty( $post_types ) ) { 
     181        if ( in_array( get_post_type( $post->ID ), $post_types, true ) || empty( $post_types ) ) { 
    183182 
    184183            add_meta_box( 
     
    202201     * @since 0.0.1 
    203202     * 
    204      * @global $wp_admin_bar WP_Admin_Bar 
    205      * @global $post         WP_Post 
     203     * @global $wp_admin_bar WP_Admin_Bar An instance of the WP Admin Bar. 
     204     * @global $post         WP_Post The global post object 
    206205     * 
    207206     * @return void 
     
    217216        $post_type = get_post_type( $post->ID ); 
    218217 
    219         if ( false === $post_type || ( isset( $this->settings['post_types'] ) && is_array( $this->settings['post_types'] ) ) && in_array( $post_type, $this->settings['post_types'] ) ) { 
     218        if ( false === $post_type || ( isset( $this->settings['post_types'] ) && is_array( $this->settings['post_types'] ) ) && in_array( $post_type, $this->settings['post_types'], true ) ) { 
    220219            return; 
    221220        } 
  • better-yourls/trunk/includes/class-better-yourls-admin.php

    r1423621 r1479650  
    227227        $support_page = 'https://wordpress.org/plugins/better-yourls/support/'; 
    228228 
    229         printf ( 
     229        printf( 
    230230            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">', 
     231            '<a href="' . esc_url( $support_page ) . '" target="_blank">', 
    232232            '</a>' 
    233233        ); 
     
    247247 
    248248        ?> 
    249         <form method="post" action="options.php" class="itsec-form" > 
     249        <form method="post" action="options.php" class="better-yourls-form" > 
    250250        <?php settings_fields( 'settings_page_better_yourls' ); ?> 
    251251        <?php do_settings_sections( 'settings_page_better_yourls' ); ?> 
     
    389389            foreach ( $input['post_types'] as $post_type ) { 
    390390 
    391                 if ( in_array( $post_type, $post_types ) ) { 
     391                if ( in_array( $post_type, $post_types, true ) ) { 
    392392                    $excluded_post_types[] = sanitize_text_field( $post_type ); 
    393393                } 
     
    502502            $checked = false; 
    503503 
    504             if ( in_array( $post_type->name, $excluded_post_types ) ) { 
     504            if ( in_array( $post_type->name, $excluded_post_types, true ) ) { 
    505505                $checked = true; 
    506506            } 
  • better-yourls/trunk/lang/better-yourls.pot

    r1423621 r1479650  
    33msgid "" 
    44msgstr "" 
    5 "Project-Id-Version: Better YOURLS 2.1.3\n" 
     5"Project-Id-Version: Better YOURLS 2.1.5\n" 
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/better-yourls\n" 
    7 "POT-Creation-Date: 2016-02-21 15:52:23+00:00\n" 
     7"POT-Creation-Date: 2016-08-20 18:43:55+00:00\n" 
    88"MIME-Version: 1.0\n" 
    99"Content-Type: text/plain; charset=utf-8\n" 
     
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
    1313"Language-Team: LANGUAGE <LL@li.org>\n" 
    14 "X-Generator: grunt-wp-i18n 0.5.3\n" 
     14"X-Generator: grunt-wp-i18n 0.5.4\n" 
    1515 
    16 #: includes/class-better-yourls-actions.php:186 
     16#: includes/class-better-yourls-actions.php:185 
    1717msgid "YOURLs Keyword" 
    1818msgstr "" 
    1919 
    20 #: includes/class-better-yourls-actions.php:235 
     20#: includes/class-better-yourls-actions.php:234 
    2121msgid "YOURLS" 
    2222msgstr "" 
    2323 
    24 #: includes/class-better-yourls-actions.php:244 
     24#: includes/class-better-yourls-actions.php:243 
    2525msgid "YOURLS Link" 
    2626msgstr "" 
    2727 
    28 #: includes/class-better-yourls-actions.php:252 
     28#: includes/class-better-yourls-actions.php:251 
    2929msgid "Link Stats" 
    3030msgstr "" 
    3131 
    32 #: includes/class-better-yourls-actions.php:332 
     32#: includes/class-better-yourls-actions.php:331 
    3333msgid "Your YOURLS short link is: " 
    3434msgstr "" 
    3535 
    36 #: includes/class-better-yourls-actions.php:565 
     36#: includes/class-better-yourls-actions.php:564 
    3737msgid "" 
    3838"If a short-url doesn't yet exist for this post you can enter a keyword " 
     
    4141 
    4242#: includes/class-better-yourls-admin.php:90 
    43 #: includes/class-better-yourls-admin.php:328 
     43#: includes/class-better-yourls-admin.php:332 
    4444msgid "Better Yourls" 
    4545msgstr "" 
     
    8181msgstr "" 
    8282 
    83 #: includes/class-better-yourls-admin.php:242 
     83#: includes/class-better-yourls-admin.php:230 
     84msgid "" 
     85"If you need help getting this plugin or have found a bug please visit the " 
     86"%ssupport forums%s." 
     87msgstr "" 
     88 
     89#: includes/class-better-yourls-admin.php:246 
    8490msgid "Use the settings below to configure Better Yourls for your site." 
    8591msgstr "" 
    8692 
    87 #: includes/class-better-yourls-admin.php:249 
     93#: includes/class-better-yourls-admin.php:253 
    8894msgid "Save Changes" 
    8995msgstr "" 
    9096 
    91 #: includes/class-better-yourls-admin.php:268 
     97#: includes/class-better-yourls-admin.php:272 
    9298msgid "" 
    9399"Have you found this plugin useful? Please help support it's continued " 
     
    95101msgstr "" 
    96102 
    97 #: includes/class-better-yourls-admin.php:280 
     103#: includes/class-better-yourls-admin.php:284 
    98104msgid "Short on funds?" 
    99105msgstr "" 
    100106 
    101 #: includes/class-better-yourls-admin.php:284 
     107#: includes/class-better-yourls-admin.php:288 
    102108msgid "Rate Better YOURLS 5-stars on WordPress.org" 
    103109msgstr "" 
    104110 
    105 #: includes/class-better-yourls-admin.php:286 
     111#: includes/class-better-yourls-admin.php:290 
    106112msgid "Talk about it on your site and link back to the " 
    107113msgstr "" 
    108114 
    109 #: includes/class-better-yourls-admin.php:286 
     115#: includes/class-better-yourls-admin.php:290 
    110116msgid "plugin page." 
    111117msgstr "" 
    112118 
    113 #: includes/class-better-yourls-admin.php:288 
     119#: includes/class-better-yourls-admin.php:292 
    114120msgid "Tweet about it. " 
    115121msgstr "" 
    116122 
    117 #: includes/class-better-yourls-admin.php:415 
     123#: includes/class-better-yourls-admin.php:419 
    118124msgid "The short domain you are using for YOURLS. Enter only the domain name." 
    119125msgstr "" 
    120126 
    121 #: includes/class-better-yourls-admin.php:435 
     127#: includes/class-better-yourls-admin.php:439 
    122128msgid "Check this box to access your YOURLS installation over https." 
    123129msgstr "" 
    124130 
    125 #: includes/class-better-yourls-admin.php:455 
     131#: includes/class-better-yourls-admin.php:459 
    126132msgid "" 
    127133"Check this box to ignore security checks on your https certificate. Note " 
     
    130136msgstr "" 
    131137 
    132 #: includes/class-better-yourls-admin.php:475 
     138#: includes/class-better-yourls-admin.php:479 
    133139msgid "This can be found on the tools page in your YOURLS installation." 
    134140msgstr "" 
    135141 
    136 #: includes/class-better-yourls-admin.php:508 
     142#: includes/class-better-yourls-admin.php:512 
    137143msgid "" 
    138144"Put a check mark next to any post type for which you do NOT want to " 
  • better-yourls/trunk/readme.txt

    r1423621 r1479650  
    55Requires at least: 4.2 
    66Tested up to: 4.6 
    7 Stable tag: 2.1.4 
     7Stable tag: 2.1.5 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5353 
    5454== Changelog == 
     55 
     56= 2.1.5 = 
     57* Cleaned up various typos and other PHP Codesniffer issues. 
    5558 
    5659= 2.1.4 = 
Note: See TracChangeset for help on using the changeset viewer.