Changeset 13769
- Timestamp:
- 03/19/2010 09:15:00 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r13735 r13769 867 867 case 2: 868 868 check_admin_referer('import-wordpress'); 869 $fetch_attachments = (!empty($_POST['attachments'])) ? true : false;869 $fetch_attachments = ! empty( $_POST['attachments'] ); 870 870 $result = $this->import( $_GET['id'], $fetch_attachments); 871 871 if ( is_wp_error( $result ) ) -
trunk/wp-admin/includes/media.php
r13661 r13769 1192 1192 $display_title = $show_title ? "<div class='filename new'><span class='title'>" . wp_html_excerpt( $display_title, 60 ) . "</span></div>" : ''; 1193 1193 1194 $gallery = ( ( isset( $_REQUEST['tab'] ) && 'gallery' == $_REQUEST['tab'] ) || ( isset( $redir_tab ) && 'gallery' == $redir_tab ) ) ? true : false;1194 $gallery = ( ( isset( $_REQUEST['tab'] ) && 'gallery' == $_REQUEST['tab'] ) || ( isset( $redir_tab ) && 'gallery' == $redir_tab ) ); 1195 1195 $order = ''; 1196 1196 -
trunk/wp-admin/includes/plugin.php
r13749 r13769 93 93 $plugin_data['Network'] = $plugin_data['_sitewide']; 94 94 } 95 $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ) ? true : false;95 $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ); 96 96 unset( $plugin_data['_sitewide'] ); 97 97 -
trunk/wp-admin/includes/post.php
r13733 r13769 1458 1458 $mce_buttons_4 = implode($mce_buttons_4, ','); 1459 1459 } 1460 $no_captions = ( apply_filters( 'disable_captions', '' ) ) ? true : false;1460 $no_captions = (bool) apply_filters( 'disable_captions', '' ); 1461 1461 1462 1462 // TinyMCE init settings -
trunk/wp-admin/includes/template.php
r13759 r13769 2464 2464 2465 2465 if ( $for_post ) 2466 $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) ) ? false : true;2466 $edit = ! ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) ); 2467 2467 2468 2468 $tab_index_attribute = ''; -
trunk/wp-admin/includes/upgrade.php
r13733 r13769 564 564 // MAX(post_date_gmt) can't be '0000-00-00 00:00:00' 565 565 // <michel_v> I just slapped myself silly for not thinking about it earlier 566 $got_gmt_fields = ($wpdb->get_var("SELECT MAX(post_date_gmt) FROM $wpdb->posts") == '0000-00-00 00:00:00') ? false : true;566 $got_gmt_fields = ! ($wpdb->get_var("SELECT MAX(post_date_gmt) FROM $wpdb->posts") == '0000-00-00 00:00:00'); 567 567 568 568 if (!$got_gmt_fields) { -
trunk/wp-admin/install.php
r13696 r13769 76 76 function display_setup_form( $error = null ) { 77 77 global $wpdb; 78 $user_table = ( $wpdb->get_var("SHOW TABLES LIKE '$wpdb->users'") != null ) ? true : false;78 $user_table = ( $wpdb->get_var("SHOW TABLES LIKE '$wpdb->users'") != null ); 79 79 80 80 // Ensure that Blogs appear in search engines by default -
trunk/wp-app.php
r13427 r13769 413 413 } 414 414 415 $publish = (isset($entry->draft) && trim($entry->draft) == 'yes') ? false : true;415 $publish = ! ( isset( $entry->draft ) && 'yes' == trim( $entry->draft ) ); 416 416 417 417 $cap = ($publish) ? 'publish_posts' : 'edit_posts'; … … 506 506 $this->auth_required(__('Sorry, you do not have the right to edit this post.')); 507 507 508 $publish = (isset($parsed->draft) && trim($parsed->draft) == 'yes') ? false : true;508 $publish = ! ( isset($parsed->draft) && 'yes' == trim($parsed->draft) ); 509 509 $post_status = ($publish) ? 'publish' : 'draft'; 510 510 -
trunk/wp-includes/comment-template.php
r13396 r13769 1419 1419 $r['page'] = get_query_var('cpage'); 1420 1420 } else { 1421 $threaded = ( -1 == $r['max_depth'] ) ? false : true;1421 $threaded = ( -1 != $r['max_depth'] ); 1422 1422 $r['page'] = ( 'newest' == get_option('default_comments_page') ) ? get_comment_pages_count($_comments, $r['per_page'], $threaded) : 1; 1423 1423 set_query_var( 'cpage', $r['page'] ); … … 1430 1430 1431 1431 if ( null === $r['reverse_top_level'] ) 1432 $r['reverse_top_level'] = ( 'desc' == get_option('comment_order') ) ? TRUE : FALSE;1432 $r['reverse_top_level'] = ( 'desc' == get_option('comment_order') ); 1433 1433 1434 1434 extract( $r, EXTR_SKIP ); -
trunk/wp-includes/functions.php
r13733 r13769 3830 3830 // This determines what gets set and translated - we don't translate Etc/* strings here, they are done later 3831 3831 $exists = array( 3832 0 => ( isset( $zone[0] ) && $zone[0] ) ? true : false,3833 1 => ( isset( $zone[1] ) && $zone[1] ) ? true : false,3834 2 => ( isset( $zone[2] ) && $zone[2] ) ? true : false3832 0 => ( isset( $zone[0] ) && $zone[0] ), 3833 1 => ( isset( $zone[1] ) && $zone[1] ), 3834 2 => ( isset( $zone[2] ) && $zone[2] ), 3835 3835 ); 3836 $exists[3] = ( $exists[0] && 'Etc' !== $zone[0] ) ? true : false;3837 $exists[4] = ( $exists[1] && $exists[3] ) ? true : false;3838 $exists[5] = ( $exists[2] && $exists[3] ) ? true : false;3836 $exists[3] = ( $exists[0] && 'Etc' !== $zone[0] ); 3837 $exists[4] = ( $exists[1] && $exists[3] ); 3838 $exists[5] = ( $exists[2] && $exists[3] ); 3839 3839 3840 3840 $zonen[] = array( -
trunk/wp-includes/media.php
r13382 r13769 1117 1117 1118 1118 // Use oEmbed to get the HTML 1119 $attr['discover'] = ( apply_filters('embed_oembed_discover', false) && author_can( $post_ID, 'unfiltered_html' ) ) ? true : false;1119 $attr['discover'] = ( apply_filters('embed_oembed_discover', false) && author_can( $post_ID, 'unfiltered_html' ) ); 1120 1120 $html = wp_oembed_get( $url, $attr ); 1121 1121 -
trunk/wp-includes/pluggable.php
r13733 r13769 685 685 686 686 if ( '' === $secure ) 687 $secure = is_ssl() ? true : false;687 $secure = is_ssl(); 688 688 689 689 if ( $secure ) { … … 778 778 // Checks if a user is logged in, if not redirects them to the login page 779 779 780 if ( is_ssl() || force_ssl_admin() ) 781 $secure = true; 782 else 783 $secure = false; 780 $secure = ( is_ssl() || force_ssl_admin() ); 784 781 785 782 // If https is required and request is http, redirect -
trunk/wp-includes/rewrite.php
r13733 r13769 1959 1959 unset($this->feed_structure); 1960 1960 unset($this->comment_feed_structure); 1961 $this->use_trailing_slashes = ( substr($this->permalink_structure, -1, 1) == '/' ) ? true : false;1961 $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) ); 1962 1962 1963 1963 // Enable generic rules for pages if permalink structure doesn't begin with a wildcard. -
trunk/wp-includes/user.php
r13761 r13769 42 42 43 43 if ( '' === $secure_cookie ) 44 $secure_cookie = is_ssl() ? true : false;44 $secure_cookie = is_ssl(); 45 45 46 46 global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie
Note: See TracChangeset
for help on using the changeset viewer.