Changeset 1995258
- Timestamp:
- 12/15/2018 12:57:46 AM (7 years ago)
- Location:
- listing-posts-type
- Files:
-
- 4 added
- 8 edited
- 1 copied
-
tags/0.3.0 (copied) (copied from listing-posts-type/trunk)
-
tags/0.3.0/languages/listing-posts-type-es_ES.mo (modified) (previous)
-
tags/0.3.0/languages/listing-posts-type-es_ES.po (modified) (2 diffs)
-
tags/0.3.0/languages/listing-posts-type-es_MX.mo (added)
-
tags/0.3.0/languages/listing-posts-type-es_MX.po (added)
-
tags/0.3.0/listing-posts-type.php (modified) (8 diffs)
-
tags/0.3.0/readme.txt (modified) (3 diffs)
-
trunk/languages/listing-posts-type-es_ES.mo (modified) (previous)
-
trunk/languages/listing-posts-type-es_ES.po (modified) (2 diffs)
-
trunk/languages/listing-posts-type-es_MX.mo (added)
-
trunk/languages/listing-posts-type-es_MX.po (added)
-
trunk/listing-posts-type.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
listing-posts-type/tags/0.3.0/languages/listing-posts-type-es_ES.po
r271722 r1995258 9 9 "Language-Team: \n" 10 10 "MIME-Version: 1.0\n" 11 " X-Poedit-Language: Spanish\n"12 "X- Poedit-Country: SPAIN\n"11 "Language: es_ES\n" 12 "X-Generator: Poedit 2.2\n" 13 13 14 14 msgid "Recent Posts Type" 15 msgstr " Posts Type Recientes"15 msgstr "Tipo de publicaciones recientes" 16 16 17 17 msgid "Display the most recent Custom Posts Type in the sidebar." 18 msgstr "Muestra l os más recientes Custom Post Typeen la barra."18 msgstr "Muestra las más recientes publicaciones personalizadas en la barra." 19 19 20 20 msgid "Number of posts to show:" 21 msgstr "Número de Posts Typea mostrar:"21 msgstr "Número de publicaciones a mostrar:" 22 22 23 23 msgid "Posts Type" … … 25 25 26 26 msgid "Title:" 27 msgstr "Título:" 28 27 msgstr "Título:" -
listing-posts-type/tags/0.3.0/listing-posts-type.php
r629981 r1995258 2 2 /** 3 3 * Plugin Name: Listing Posts Type 4 * Plugin URI: https:// github.com/niftytheme/listing-posts-type4 * Plugin URI: https://wordpress.org/plugins/listing-posts-type/ 5 5 * Description: Display the most recent Custom Posts Type in the sidebar. 6 * Version: 0. 2.17 * Author: Luis A lbertoOchoa8 * Author URI: http ://luisalberto.org9 * 10 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU11 * General Public License version 2, as published by the Free Software Foundation. You may NOT assume12 * that you can use any other version of the GPL.13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without15 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.16 * 17 * You should have received a copy of the GNU General Public License along with this program; if not, write18 * to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA19 * 20 * @package Listing Posts Type21 * @version 0.2.122 * @link http://snippets-tricks.org/proyectos/listing-posts-type-plugin/23 * @author Luis Alberto Ochoa Esparza <[email protected]>24 * @copyright Copyright (C) 2010-2012, Luis Alberto Ochoa Esparza25 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html6 * Version: 0.3.0 7 * Author: Luis A. Ochoa 8 * Author URI: https://gitlab.com/albertochoa 9 * 10 * Display the most recent Custom Posts Type in the sidebar. 11 * Copyright (C) 2010-2018 Luis A. Ochoa 12 * 13 * This program is free software; you can redistribute it and/or modify 14 * it under the terms of the GNU General Public License as published by 15 * the Free Software Foundation; either version 2 of the License, or 16 * (at your option) any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License along 24 * with this program; if not, write to the Free Software Foundation, Inc., 25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 26 26 */ 27 27 … … 54 54 $r = wp_parse_args( $args, $defaults ); 55 55 56 if ( !$number = (int) $r['number'] ) 56 if ( !$number = (int) $r['number'] ) { 57 57 $number = 10; 58 59 else if ( $number < 1 ) 58 } else if ( $number < 1 ) { 60 59 $number = 1; 61 62 else if ( $number > 15 ) 60 } else if ( $number > 15 ) { 63 61 $number = 15; 64 65 /** 66 * TODO: Eliminar el argumento 'caller_get_posts' a favor de 'ignore_sticky_posts' 67 * cuendo se elimine el soporte a WordPress 3.0. 68 */ 62 } 63 69 64 $r_query = new WP_Query( array( 70 65 'post_type' => $r['post_type'], … … 72 67 'nopaging' => 0, 73 68 'post_status' => $r['status'], 74 'caller_get_posts' => 1, /* This line will be removed in the future. */ 75 'ignore_sticky_posts' => 1 /* WordPress 3.1+ */ 69 'ignore_sticky_posts' => 1 76 70 ) ); 77 71 … … 125 119 $cache = wp_cache_get( 'widget_recent_post_type', 'widget' ); 126 120 127 if ( !is_array( $cache ) ) 121 if ( !is_array( $cache ) ) { 128 122 $cache = array(); 123 } 129 124 130 125 if ( isset( $cache[$args['widget_id']] ) ) { … … 138 133 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent Posts Type', 'listing-posts-type' ) : $instance['title'], $instance, $this->id_base ); 139 134 140 if ( !$number = (int) $instance['number'] ) 135 if ( !$number = (int) $instance['number'] ) { 141 136 $number = 10; 142 143 else if ( $number < 1 ) 137 } else if ( $number < 1 ) { 144 138 $number = 1; 145 146 else if ( $number > 15 ) 139 } else if ( $number > 15 ) { 147 140 $number = 15; 148 149 /** 150 * TODO: Eliminar el argumento 'caller_get_posts' a favor de 'ignore_sticky_posts' 151 * cuendo se elimine el soporte a WordPress 3.0. 152 */ 141 } 142 153 143 $r = new WP_Query( array( 154 144 'post_type' => $instance['recent_post_type'], … … 156 146 'nopaging' => 0, 157 147 'post_status' => 'publish', 158 'caller_get_posts' => 1, /* This line will be removed in the future. */ 159 'ignore_sticky_posts' => 1 /* WordPress 3.1+ */ 148 'ignore_sticky_posts' => 1 160 149 ) ); 161 150 … … 188 177 $alloptions = wp_cache_get( 'alloptions', 'options' ); 189 178 190 if ( isset( $alloptions['widget_recent_post_type'] ) ) 179 if ( isset( $alloptions['widget_recent_post_type'] ) ) { 191 180 delete_option( 'widget_recent_post_type' ); 181 } 192 182 193 183 return $instance; … … 203 193 $recent_post_type = isset( $instance['recent_post_type'] ) ? $instance['recent_post_type'] : ''; 204 194 205 if ( !isset( $instance['number'] ) || !$number = (int) $instance['number'] ) 206 $number = 5; ?> 195 if ( !isset( $instance['number'] ) || !$number = (int) $instance['number'] ) { 196 $number = 5; 197 } ?> 207 198 208 199 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'listing-posts-type' ); ?></label> -
listing-posts-type/tags/0.3.0/readme.txt
r629981 r1995258 2 2 Contributors: albertochoa 3 3 Tags: recent post, post, post type, custom post types, sidebar, widget, template, recent 4 Requires at least: 3. 05 Tested up to: 3.56 Stable tag: 0. 2.14 Requires at least: 3.1 5 Tested up to: 5.0 6 Stable tag: 0.3.0 7 7 8 8 == Description == … … 16 16 * English - (en_EN) 17 17 * Spanish - (es_ES) 18 * Spanish - (es_MX) 18 19 19 20 == Installation == … … 35 36 == Changelog == 36 37 38 = 0.3.0 = 39 * Tested in WordPress 5.0 40 * Code cleanup 41 37 42 = 0.2.1 = 38 43 * Tested in WordPress 3.5 -
listing-posts-type/trunk/languages/listing-posts-type-es_ES.po
r271722 r1995258 9 9 "Language-Team: \n" 10 10 "MIME-Version: 1.0\n" 11 " X-Poedit-Language: Spanish\n"12 "X- Poedit-Country: SPAIN\n"11 "Language: es_ES\n" 12 "X-Generator: Poedit 2.2\n" 13 13 14 14 msgid "Recent Posts Type" 15 msgstr " Posts Type Recientes"15 msgstr "Tipo de publicaciones recientes" 16 16 17 17 msgid "Display the most recent Custom Posts Type in the sidebar." 18 msgstr "Muestra l os más recientes Custom Post Typeen la barra."18 msgstr "Muestra las más recientes publicaciones personalizadas en la barra." 19 19 20 20 msgid "Number of posts to show:" 21 msgstr "Número de Posts Typea mostrar:"21 msgstr "Número de publicaciones a mostrar:" 22 22 23 23 msgid "Posts Type" … … 25 25 26 26 msgid "Title:" 27 msgstr "Título:" 28 27 msgstr "Título:" -
listing-posts-type/trunk/listing-posts-type.php
r629981 r1995258 2 2 /** 3 3 * Plugin Name: Listing Posts Type 4 * Plugin URI: https:// github.com/niftytheme/listing-posts-type4 * Plugin URI: https://wordpress.org/plugins/listing-posts-type/ 5 5 * Description: Display the most recent Custom Posts Type in the sidebar. 6 * Version: 0. 2.17 * Author: Luis A lbertoOchoa8 * Author URI: http ://luisalberto.org9 * 10 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU11 * General Public License version 2, as published by the Free Software Foundation. You may NOT assume12 * that you can use any other version of the GPL.13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without15 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.16 * 17 * You should have received a copy of the GNU General Public License along with this program; if not, write18 * to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA19 * 20 * @package Listing Posts Type21 * @version 0.2.122 * @link http://snippets-tricks.org/proyectos/listing-posts-type-plugin/23 * @author Luis Alberto Ochoa Esparza <[email protected]>24 * @copyright Copyright (C) 2010-2012, Luis Alberto Ochoa Esparza25 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html6 * Version: 0.3.0 7 * Author: Luis A. Ochoa 8 * Author URI: https://gitlab.com/albertochoa 9 * 10 * Display the most recent Custom Posts Type in the sidebar. 11 * Copyright (C) 2010-2018 Luis A. Ochoa 12 * 13 * This program is free software; you can redistribute it and/or modify 14 * it under the terms of the GNU General Public License as published by 15 * the Free Software Foundation; either version 2 of the License, or 16 * (at your option) any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License along 24 * with this program; if not, write to the Free Software Foundation, Inc., 25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 26 26 */ 27 27 … … 54 54 $r = wp_parse_args( $args, $defaults ); 55 55 56 if ( !$number = (int) $r['number'] ) 56 if ( !$number = (int) $r['number'] ) { 57 57 $number = 10; 58 59 else if ( $number < 1 ) 58 } else if ( $number < 1 ) { 60 59 $number = 1; 61 62 else if ( $number > 15 ) 60 } else if ( $number > 15 ) { 63 61 $number = 15; 64 65 /** 66 * TODO: Eliminar el argumento 'caller_get_posts' a favor de 'ignore_sticky_posts' 67 * cuendo se elimine el soporte a WordPress 3.0. 68 */ 62 } 63 69 64 $r_query = new WP_Query( array( 70 65 'post_type' => $r['post_type'], … … 72 67 'nopaging' => 0, 73 68 'post_status' => $r['status'], 74 'caller_get_posts' => 1, /* This line will be removed in the future. */ 75 'ignore_sticky_posts' => 1 /* WordPress 3.1+ */ 69 'ignore_sticky_posts' => 1 76 70 ) ); 77 71 … … 125 119 $cache = wp_cache_get( 'widget_recent_post_type', 'widget' ); 126 120 127 if ( !is_array( $cache ) ) 121 if ( !is_array( $cache ) ) { 128 122 $cache = array(); 123 } 129 124 130 125 if ( isset( $cache[$args['widget_id']] ) ) { … … 138 133 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent Posts Type', 'listing-posts-type' ) : $instance['title'], $instance, $this->id_base ); 139 134 140 if ( !$number = (int) $instance['number'] ) 135 if ( !$number = (int) $instance['number'] ) { 141 136 $number = 10; 142 143 else if ( $number < 1 ) 137 } else if ( $number < 1 ) { 144 138 $number = 1; 145 146 else if ( $number > 15 ) 139 } else if ( $number > 15 ) { 147 140 $number = 15; 148 149 /** 150 * TODO: Eliminar el argumento 'caller_get_posts' a favor de 'ignore_sticky_posts' 151 * cuendo se elimine el soporte a WordPress 3.0. 152 */ 141 } 142 153 143 $r = new WP_Query( array( 154 144 'post_type' => $instance['recent_post_type'], … … 156 146 'nopaging' => 0, 157 147 'post_status' => 'publish', 158 'caller_get_posts' => 1, /* This line will be removed in the future. */ 159 'ignore_sticky_posts' => 1 /* WordPress 3.1+ */ 148 'ignore_sticky_posts' => 1 160 149 ) ); 161 150 … … 188 177 $alloptions = wp_cache_get( 'alloptions', 'options' ); 189 178 190 if ( isset( $alloptions['widget_recent_post_type'] ) ) 179 if ( isset( $alloptions['widget_recent_post_type'] ) ) { 191 180 delete_option( 'widget_recent_post_type' ); 181 } 192 182 193 183 return $instance; … … 203 193 $recent_post_type = isset( $instance['recent_post_type'] ) ? $instance['recent_post_type'] : ''; 204 194 205 if ( !isset( $instance['number'] ) || !$number = (int) $instance['number'] ) 206 $number = 5; ?> 195 if ( !isset( $instance['number'] ) || !$number = (int) $instance['number'] ) { 196 $number = 5; 197 } ?> 207 198 208 199 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'listing-posts-type' ); ?></label> -
listing-posts-type/trunk/readme.txt
r629981 r1995258 2 2 Contributors: albertochoa 3 3 Tags: recent post, post, post type, custom post types, sidebar, widget, template, recent 4 Requires at least: 3. 05 Tested up to: 3.56 Stable tag: 0. 2.14 Requires at least: 3.1 5 Tested up to: 5.0 6 Stable tag: 0.3.0 7 7 8 8 == Description == … … 16 16 * English - (en_EN) 17 17 * Spanish - (es_ES) 18 * Spanish - (es_MX) 18 19 19 20 == Installation == … … 35 36 == Changelog == 36 37 38 = 0.3.0 = 39 * Tested in WordPress 5.0 40 * Code cleanup 41 37 42 = 0.2.1 = 38 43 * Tested in WordPress 3.5
Note: See TracChangeset
for help on using the changeset viewer.