irgendwie schl?ft hier jeder oder mich will keiner mehr gern lesen hier oder es fehlt allen die bildung. dadurch mal die l?sung selbst durch mich und meine freunde nun hier gepostet:
Diff:
— classes_old.php 2007-03-28 22:09:15.000000000 +0200
+++ classes.php 2007-03-28 21:59:02.000000000 +0200
@@ -590,14 +590,14 @@
$now = gmdate(‘Y-m-d H:i:59’);
//only select past-dated posts, except if a logged in user is viewing a single: then, if they
//can edit the post, we let them through
– if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) {
– $where .= ” AND post_date_gmt <= ‘$now'”;
– $distinct = ‘DISTINCT’;
– }
+ //if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) {
+ // $where .= ” AND post_date_gmt <= ‘$now'”;
+ // $distinct = ‘DISTINCT’;
+ //}
if ( $this->is_attachment ) {
$where .= ” AND (post_status = ‘attachment’)”;
} elseif ($this->is_page) {
$where .= ” AND (post_status = ‘static’)”;
naja besser ware es so :if ( ($!show_all) && ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) )
nun das —-(!show_all) —-steht fuer die config option die es noch nicht gibt die das einfach ausschaltet !show_all -> nicht show_all
funktioniert als workaround perfekt.
w?re toll, wenn ein developper die show all! varibale als globale in den upstream mit übernehmen würde
und:
in wordpress/wp-includes/template-functions-general.php
— template-functions-general_old.php 2007-03-28 23:01:55.000000000 +0200
+++ template-functions-general.php 2007-03-28 22:50:41.000000000 +0200
@@ -328,11 +328,11 @@
$add_minutes = intval(60 * (get_settings(‘gmt_offset’) – $add_hours));
$now = current_time(‘mysql’);
if ( ‘monthly’ == $type ) {
– $arcresults = $wpdb->get_results(“SELECT DISTINCT YEAR(post_date) AS year
, MONTH(post_date) AS month
, count(ID) as posts FROM $wpdb->posts WHERE post_date < ‘$now’ AND post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC” . $limit);
+ $arcresults = $wpdb->get_results(“SELECT DISTINCT YEAR(post_date) AS year
, MONTH(post_date) AS month
, count(ID) as posts FROM $wpdb->posts WHERE post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC” . $limit);
if ( $arcresults ) {
$afterafter = $after;
foreach ( $arcresults as $arcresult ) {
$url = get_month_link($arcresult->year, $arcresult->month);
if ( $show_post_count ) {
damit das archiv auch mit funktioniert