WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#41264 closed defect (bug) (invalid)

Plugin Name: WPCoreSys - Database Prefix Issue - Categories and Tags Missing

Reported by: sanyamjain Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:

Description

The database prefix has been hard coded in the line between 330 to 340. Due to this the categories have gone missing and we were not able to create new categories in Wordpress.

		if (!empty($excerpt))
		{
			$cats = $wpdb->get_col(
						"SELECT key1.term_id FROM wp_term_taxonomy key1
						INNER JOIN bct_term_relationships key2 ON key2.term_taxonomy_id = key1.term_taxonomy_id AND key1.taxonomy = 'category'
						INNER JOIN wp_posts key3 ON key3.id = key2.object_id AND key3.post_excerpt LIKE '%{$excerpt}%'"
						);

			$clauses['where'] .= " AND t.term_id NOT IN(" . implode(",", $cats) . ")";
		}

Once the prefix was changed, the issue was resolved.

Change History (1)

#1 @ocean90
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 4.8 deleted

Hello @sanyamjain, welcome to WordPress Trac!

This Trac is used for enhancements and bug reporting for the WordPress core software, not in third-party plugins.

I couldn't really find a real plugin that's called WPCoreSys (it's nothing official by the WordPress team). The only thing I have found is that this plugin is used to inject malware in your site.

I suggest to take a look at https://codex.wordpress.org/FAQ_My_site_was_hacked.

Note: See TracTickets for help on using tickets.