9632d77b by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent d4fbe8b5
......@@ -18063,7 +18063,7 @@ ul.sf_date_field .sf-datepicker {
}
.header.page .breadcrumb a {
text-decoration: none;
text-transform: capitalize;
text-transform: none;
color: #fff;
}
.header.page .breadcrumb span {
......@@ -18444,7 +18444,7 @@ ul.sf_date_field .sf-datepicker {
}
#full-width-page-wrapper .breadcrumb a {
text-decoration: none;
text-transform: capitalize;
text-transform: none;
}
#full-width-page-wrapper .breadcrumb span {
margin: 0rem 0.625rem;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -110,4 +110,42 @@ function delete_exclude_from_search()
}
}
}
\ No newline at end of file
}
add_action('init','update_tax_counts');
function update_tax_counts()
{
if ($_GET['var'] =='update_tax_counts') {
include("wp-config.php");
$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD);
if (!mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD)) { die('Could not connect: ' . mysqli_error()); }
if (!mysqli_select_db($conn,DB_NAME)) { die('Could not connect: ' . mysqli_error()); }
$result = mysqli_query($conn, "SELECT term_taxonomy_id FROM ".$table_prefix."term_taxonomy");
while ($row = mysqli_fetch_array($result)) {
$term_taxonomy_id = $row['term_taxonomy_id'];
echo "term_taxonomy_id: ".$term_taxonomy_id." count = ";
$countresult = mysqli_query($conn, "SELECT count(*) FROM ".$table_prefix."term_relationships WHERE term_taxonomy_id = '$term_taxonomy_id'");
$countarray = mysqli_fetch_array($countresult);
$count = $countarray[0];
echo $count."<br>";
mysqli_query($conn, "UPDATE ".$table_prefix."term_taxonomy SET count = '$count' WHERE term_taxonomy_id = '$term_taxonomy_id'");
}
$result = mysqli_query($conn, "SELECT ID FROM ".$table_prefix."posts");
while ($row = mysqli_fetch_array($result)) {
$post_id = $row['ID'];
echo "post_id: ".$post_id." count = ";
$countresult = mysqli_query($conn, "SELECT count(*) FROM ".$table_prefix."comments WHERE comment_post_ID = '$post_id' AND comment_approved = 1");
$countarray = mysqli_fetch_array($countresult);
$count = $countarray[0];
echo $count."<br>";
mysqli_query("UPDATE ".$table_prefix."posts SET comment_count = '$count' WHERE ID = '$post_id'");
}
}
}
......
......@@ -102,7 +102,7 @@
margin-bottom: 15px;
a{
text-decoration: none;
text-transform: capitalize;
text-transform: none;
color: #fff;
}
......
......@@ -267,7 +267,7 @@ padding-bottom: 0px;
margin-bottom: 0.25rem;
a{
text-decoration: none;
text-transform: capitalize;
text-transform: none;
}
span{
margin: 0rem 0.625rem;
......