+ %s',
+ esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'author' => get_the_author_meta( 'ID' ) ), 'edit.php' )),
+ get_the_author()
+ );
+ break;
+
+ default:
+ if ( 'categories' == $column_name )
+ $taxonomy = 'category';
+ elseif ( 'tags' == $column_name )
+ $taxonomy = 'post_tag';
+ elseif ( 0 === strpos( $column_name, 'taxonomy-' ) )
+ $taxonomy = substr( $column_name, 9 );
+ else
+ $taxonomy = false;
+
+ if ( $taxonomy ) {
+ $taxonomy_object = get_taxonomy( $taxonomy );
+ if ( $terms = get_the_terms( $post->ID, $taxonomy ) ) {
+ $out = array();
+ foreach ( $terms as $t ) {
+ $posts_in_term_qv = array();
+ if ( 'post' != $post->post_type )
+ $posts_in_term_qv['post_type'] = $post->post_type;
+ if ( $taxonomy_object->query_var ) {
+ $posts_in_term_qv[ $taxonomy_object->query_var ] = $t->slug;
+ } else {
+ $posts_in_term_qv['taxonomy'] = $taxonomy;
+ $posts_in_term_qv['term'] = $t->slug;
+ }
+
+ $out[] = sprintf( '%s',
+ esc_url( add_query_arg( $posts_in_term_qv, 'edit.php' ) ),
+ esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) )
+ );
+ }
+ /* translators: used between list items, there is a space after the comma */
+ echo join( __( ', ' ), $out );
+ } else {
+ echo '—';
+ }
+ break;
+ }
+
+ if ( is_post_type_hierarchical( $post->post_type ) ) {
+
+ /**
+ * Fires in each custom column on the Posts list table.
+ *
+ * This hook only fires if the current post type is hierarchical,
+ * such as pages.
+ *
+ * @since 2.5.0
+ *
+ * @param string $column_name The name of the column to display.
+ * @param int $post_id The current post ID.
+ */
+ do_action( 'manage_pages_custom_column', $column_name, $post->ID );
+ } else {
+
+ /**
+ * Fires in each custom column in the Posts list table.
+ *
+ * This hook only fires if the current post type is non-hierarchical,
+ * such as posts.
+ *
+ * @since 1.5.0
+ *
+ * @param string $column_name The name of the column to display.
+ * @param int $post_id The current post ID.
+ */
+ do_action( 'manage_posts_custom_column', $column_name, $post->ID );
}
- echo $this->handle_row_actions( $post, $column_name, $primary );
- echo '';
- break;
- }
- ?>
-
>post_type ) ) {
/**
- * Fires in each custom column on the Posts list table.
+ * Fires for each custom column of a specific post type in the Posts list table.
*
- * This hook only fires if the current post type is hierarchical,
- * such as pages.
+ * The dynamic portion of the hook name, `$post->post_type`, refers to the post type.
*
- * @since 2.5.0
+ * @since 3.1.0
*
* @param string $column_name The name of the column to display.
* @param int $post_id The current post ID.
*/
- do_action( 'manage_pages_custom_column', $column_name, $post->ID );
- } else {
-
- /**
- * Fires in each custom column in the Posts list table.
- *
- * This hook only fires if the current post type is non-hierarchical,
- * such as posts.
- *
- * @since 1.5.0
- *
- * @param string $column_name The name of the column to display.
- * @param int $post_id The current post ID.
- */
- do_action( 'manage_posts_custom_column', $column_name, $post->ID );
+ do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );
+ break;
}
- /**
- * Fires for each custom column of a specific post type in the Posts list table.
- *
- * The dynamic portion of the hook name, `$post->post_type`, refers to the post type.
- *
- * @since 3.1.0
- *
- * @param string $column_name The name of the column to display.
- * @param int $post_id The current post ID.
- */
- do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );
echo $this->handle_row_actions( $post, $column_name, $primary );
- ?>
- ';
}
}
?>
diff --git a/wp-includes/version.php b/wp-includes/version.php
index b2e0897641..cc445f5ff9 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.3-alpha-32720';
+$wp_version = '4.3-alpha-32721';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.