<body>
<h1 id="logo">
<a href="http://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" width="250" height="68" /></a>
- <br /> Version 3.1.1
+ <br /> Version 3.1.2
</h1>
<p style="text-align: center">Semantic Personal Publishing Platform</p>
if ( empty( $posts ) )
$posts = $wp_query->posts;
+ add_filter( 'the_title', 'esc_html' );
+
if ( $this->hierarchical_display ) {
$this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
} else {
function _display_rows( $posts ) {
global $post, $mode;
- add_filter( 'the_title', 'esc_html' );
-
// Create array of post IDs.
$post_ids = array();
}
}
- $post->post_title = esc_html( $post->post_title );
$pad = str_repeat( '— ', $level );
?>
<td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states( $post ); echo isset( $parent_name ) ? ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name ) : ''; ?></strong>
$mysql_version = $wpdb->db_version();
$required_php_version = '4.3';
$required_mysql_version = '4.1.2';
- $wp_version = '3.1.1';
+ $wp_version = '3.1.2';
$php_compat = version_compare( $php_version, $required_php_version, '>=' );
$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
}
}
// set the post_content and status
- $quick['post_status'] = isset($_POST['publish']) ? 'publish' : 'draft';
+ if ( isset( $_POST['publish'] ) && current_user_can( 'publish_posts' ) )
+ $quick['post_status'] = 'publish';
+ elseif ( isset( $_POST['review'] ) )
+ $quick['post_status'] = 'pending';
+ else
+ $quick['post_status'] = 'draft';
$quick['post_content'] = $content;
// error handling for media_sideload
if ( is_wp_error($upload) ) {
if ( $page->ID == $args['selected'] )
$output .= ' selected="selected"';
$output .= '>';
- $title = esc_html($page->post_title);
$title = apply_filters( 'list_pages', $page->post_title );
- $output .= "$pad$title";
+ $output .= $pad . esc_html( $title );
$output .= "</option>\n";
}
}
$this->parse_tax_query( $qv );
foreach ( $this->tax_query->queries as $tax_query ) {
- if ( 'IN' == $tax_query['operator'] ) {
+ if ( 'NOT IN' != $tax_query['operator'] ) {
switch ( $tax_query['taxonomy'] ) {
case 'category':
$this->is_category = true;
$where = get_posts_by_author_sql('post');
$this->query_from .= " LEFT OUTER JOIN (
SELECT post_author, COUNT(*) as post_count
- FROM wp_posts
+ FROM $wpdb->posts
$where
GROUP BY post_author
) p ON ({$wpdb->users}.ID = p.post_author)
*
* @global string $wp_version
*/
-$wp_version = '3.1.1';
+$wp_version = '3.1.2';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.