Changeset 13770
- Timestamp:
- 03/19/2010 09:29:21 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r13247 r13770 96 96 wp_redirect( $redirect_to ); 97 97 exit; 98 } elseif ( isset($_GET['_wp_http_referer']) &&! empty($_GET['_wp_http_referer']) ) {98 } elseif ( ! empty($_GET['_wp_http_referer']) ) { 99 99 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 100 100 exit; … … 108 108 require_once('admin-header.php'); 109 109 110 $mode = ( ! isset($_GET['mode']) ||empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);110 $mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']); 111 111 112 112 $comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all'; -
trunk/wp-admin/edit-link-categories.php
r13715 r13770 41 41 exit(); 42 42 } 43 } elseif ( isset($_GET['_wp_http_referer']) &&! empty($_GET['_wp_http_referer']) ) {43 } elseif ( ! empty($_GET['_wp_http_referer']) ) { 44 44 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 45 45 exit; -
trunk/wp-admin/edit-tags.php
r13733 r13770 156 156 default: 157 157 158 if ( isset($_GET['_wp_http_referer']) &&! empty($_GET['_wp_http_referer']) ) {158 if ( ! empty($_GET['_wp_http_referer']) ) { 159 159 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 160 160 exit; -
trunk/wp-admin/edit.php
r13643 r13770 133 133 wp_redirect($sendback); 134 134 exit(); 135 } elseif ( isset($_GET['_wp_http_referer']) &&! empty($_GET['_wp_http_referer']) ) {135 } elseif ( ! empty($_GET['_wp_http_referer']) ) { 136 136 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 137 137 exit; -
trunk/wp-admin/includes/class-wp-filesystem-ftpext.php
r13380 r13770 46 46 $this->options['hostname'] = $opt['hostname']; 47 47 48 if ( isset($opt['base']) &&! empty($opt['base']) )48 if ( ! empty($opt['base']) ) 49 49 $this->wp_base = $opt['base']; 50 50 -
trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r12999 r13770 40 40 $this->options['hostname'] = $opt['hostname']; 41 41 42 if ( isset($opt['base']) &&! empty($opt['base']) )42 if ( ! empty($opt['base']) ) 43 43 $this->wp_base = $opt['base']; 44 44 -
trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
r12752 r13770 74 74 $this->options['hostname'] = $opt['hostname']; 75 75 76 if ( isset($opt['base']) &&! empty($opt['base']) )76 if ( ! empty($opt['base']) ) 77 77 $this->wp_base = $opt['base']; 78 78 -
trunk/wp-admin/includes/plugin.php
r13769 r13770 1244 1244 global $plugin_page; 1245 1245 1246 if ( isset( $title ) && !empty ( $title ) ) {1246 if ( ! empty ( $title ) ) 1247 1247 return $title; 1248 }1249 1248 1250 1249 $hook = get_plugin_page_hook( $plugin_page, $pagenow ); … … 1291 1290 } 1292 1291 } 1293 if ( !isset($title) ||empty ( $title ) ) {1292 if ( empty ( $title ) ) { 1294 1293 foreach ( $menu as $menu_array ) { 1295 1294 if ( isset( $plugin_page ) && -
trunk/wp-admin/install.php
r13769 r13770 80 80 // Ensure that Blogs appear in search engines by default 81 81 $blog_public = 1; 82 if ( isset( $_POST ) &&! empty( $_POST ) )82 if ( ! empty( $_POST ) ) 83 83 $blog_public = isset( $_POST['blog_public'] ); 84 84 -
trunk/wp-admin/link-manager.php
r13100 r13770 29 29 exit; 30 30 } 31 } elseif ( isset($_GET['_wp_http_referer']) &&! empty($_GET['_wp_http_referer']) ) {31 } elseif ( ! empty($_GET['_wp_http_referer']) ) { 32 32 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 33 33 exit; -
trunk/wp-admin/menu-header.php
r13579 r13770 55 55 } 56 56 57 if ( isset($item[4]) &&! empty($item[4]) )57 if ( ! empty($item[4]) ) 58 58 $class[] = $item[4]; 59 59 60 60 $class = $class ? ' class="' . join( ' ', $class ) . '"' : ''; 61 61 $tabindex = ' tabindex="1"'; 62 $id = isset($item[5]) &&! empty($item[5]) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : '';62 $id = ! empty($item[5]) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : ''; 63 63 $img = ''; 64 if ( isset($item[6]) &&! empty($item[6]) ) {64 if ( ! empty($item[6]) ) { 65 65 if ( 'div' === $item[6] ) 66 66 $img = '<br />'; -
trunk/wp-admin/upload.php
r13733 r13770 118 118 wp_redirect($location); 119 119 exit; 120 } elseif ( isset($_GET['_wp_http_referer']) &&! empty($_GET['_wp_http_referer']) ) {120 } elseif ( ! empty($_GET['_wp_http_referer']) ) { 121 121 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 122 122 exit; -
trunk/wp-content/themes/default/archive.php
r12180 r13770 25 25 <?php /* If this is an author archive */ } elseif (is_author()) { ?> 26 26 <h2 class="pagetitle">Author Archive</h2> 27 <?php /* If this is a paged archive */ } elseif ( isset($_GET['paged']) && !empty($_GET['paged'])) { ?>27 <?php /* If this is a paged archive */ } elseif ( !empty($_GET['paged']) ) { ?> 28 28 <h2 class="pagetitle">Blog Archives</h2> 29 29 <?php } ?> -
trunk/wp-content/themes/default/sidebar.php
r12657 r13770 43 43 for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p> 44 44 45 <?php /* If this set is paginated */ } elseif ( isset($_GET['paged']) && !empty($_GET['paged'])) { ?>45 <?php /* If this set is paginated */ } elseif ( !empty($_GET['paged']) ) { ?> 46 46 <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives.</p> 47 47 -
trunk/wp-includes/kses.php
r13648 r13770 952 952 953 953 if ( is_array($matches) ) { 954 if ( ! isset($matches[1]) ||empty($matches[1]) )954 if ( empty($matches[1]) ) 955 955 return ''; 956 956 -
trunk/wp-includes/load.php
r13599 r13770 63 63 64 64 // Append the query string if it exists and isn't null 65 if ( isset( $_SERVER['QUERY_STRING'] ) && !empty( $_SERVER['QUERY_STRING'] ) ) {65 if ( ! empty( $_SERVER['QUERY_STRING'] ) ) { 66 66 $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING']; 67 67 } -
trunk/wp-includes/post-template.php
r13494 r13770 829 829 830 830 // Show Home in the menu 831 if ( isset($args['show_home']) &&! empty($args['show_home']) ) {831 if ( ! empty($args['show_home']) ) { 832 832 if ( true === $args['show_home'] || '1' === $args['show_home'] || 1 === $args['show_home'] ) 833 833 $text = __('Home'); -
trunk/wp-includes/post.php
r13733 r13770 2079 2079 // Create a valid post name. Drafts and pending posts are allowed to have an empty 2080 2080 // post name. 2081 if ( !isset($post_name) ||empty($post_name) ) {2081 if ( empty($post_name) ) { 2082 2082 if ( !in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) ) 2083 2083 $post_name = sanitize_title($post_title); -
trunk/wp-includes/query.php
r13758 r13770 2235 2235 $where .= $wpdb->prepare(" AND $wpdb->postmeta.meta_key = %s ", $q['meta_key']); 2236 2236 if ( ! empty($q['meta_value']) ) { 2237 if ( ! isset($q['meta_compare']) ||empty($q['meta_compare']) || ! in_array($q['meta_compare'], array('=', '!=', '>', '>=', '<', '<=')) )2237 if ( empty($q['meta_compare']) || ! in_array($q['meta_compare'], array('=', '!=', '>', '>=', '<', '<=')) ) 2238 2238 $q['meta_compare'] = '='; 2239 2239 -
trunk/wp-includes/widgets.php
r13701 r13770 967 967 $index = ( is_int($index) ) ? "sidebar-$index" : sanitize_title($index); 968 968 $sidebars_widgets = wp_get_sidebars_widgets(); 969 if ( isset($sidebars_widgets[$index]) &&!empty($sidebars_widgets[$index]) )969 if ( !empty($sidebars_widgets[$index]) ) 970 970 return true; 971 971
Note: See TracChangeset
for help on using the changeset viewer.