add endpoints
This commit is contained in:
@@ -13,11 +13,9 @@ require 'inc/article-rss-feed.php'; //rss ленты статей по дата
|
||||
require "inc/meta_keywords.php";
|
||||
require "inc/journal_issue.php"; //номера журналов
|
||||
require "inc/rank-description.php"; //подменяем дескрипшт от соцсетей
|
||||
|
||||
require "inc/graphql.php"; //graphql
|
||||
|
||||
|
||||
|
||||
require "inc/replace_old_copyright.php"; //подменяем фото для старых картинок с "плохим" копирайтом
|
||||
|
||||
//scheduler
|
||||
@@ -31,15 +29,17 @@ if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
||||
include "inc/get_cached_alm.php";
|
||||
|
||||
|
||||
|
||||
if (is_admin()) {
|
||||
require "inc/add_adv_checked.php"; // рекламная статья
|
||||
require "inc/admin/auto_check.php"; // помечакм не отправлять в Дзен
|
||||
require "inc/admin/lock-terms.php"; // banned и keys
|
||||
require "inc/admin/coauthors_filter.php"; //поиск по соавторам
|
||||
|
||||
require "inc/admin/coauthors_filter.php"; // фильтры авторов
|
||||
}
|
||||
|
||||
#api
|
||||
require "api/newstop.php"; // управление REST API
|
||||
|
||||
|
||||
|
||||
|
||||
//TODO: Убрать все эти is_yn, is_zen и прочее и внутри плагинов регулировать вывод
|
||||
@@ -300,8 +300,9 @@ function add_article_in_main_query( $query ) {
|
||||
//var_dump( get_option('layf_custom_url'));
|
||||
if (is_admin()){
|
||||
if (get_query_var('author_name')){
|
||||
$query->set('post_type', array('profile_article','anew','yellow'));
|
||||
//$query->set('post_type', array('profile_article','anew','yellow'));
|
||||
//echo '<!--'.$query->request.'-->';
|
||||
return $query;
|
||||
}else if (filter_input(INPUT_GET,'page') == 'wps_authors_page'){
|
||||
$query->set('post_type', array('profile_article','anew','yellow'));
|
||||
$query->set('posts_per_page', -1);
|
||||
|
||||
Reference in New Issue
Block a user