WPSEO_Upgrade::upgrade_50
Adds the yoast_seo_links table to the database.
Метод класса: WPSEO_Upgrade{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->upgrade_50();
Код WPSEO_Upgrade::upgrade_50() WPSEO Upgrade::upgrade 50 Yoast 27.8
protected function upgrade_50() {
global $wpdb;
// Deletes the post meta value, which might created in the RC.
// phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching -- Reason: No relevant caches.
// phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery -- Reason: Most performant way.
$wpdb->query(
$wpdb->prepare(
"DELETE FROM %i
WHERE %i = '_yst_content_links_processed'",
[ $wpdb->postmeta, 'meta_key' ],
),
);
}