Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socials feed #33

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Socials feed #33

wants to merge 6 commits into from

Conversation

Evkos
Copy link

@Evkos Evkos commented May 9, 2018

No description provided.

@aprokopenko
Copy link
Collaborator

Why a lot of files shown as changed from 0644 to 0755?

Did you check this PR by yourself?

@@ -10,8 +10,10 @@
use JustCoded\WP\Framework\Supports\Just_Tinymce;
use JustCoded\WP\Framework\Web\Template_Hierarchy;
use JustCoded\WP\Framework\Supports\Just_Load_More;
use JustCoded\WP\Framework\Supports\Socials_Feed;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is not used here. please remove

}

protected function is_exists( $post_title ) {
return get_page_by_title( wp_strip_all_tags( $post_title ), OBJECT, self::POST_TYPE );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to search by slug, not by name

'post_date' => date( 'Y-m-d H:i:s', $timestamp ),
'post_name' => 'twitter_post_' . $twitter_post->id,
'post_type' => self::POST_TYPE,
'post_status' => 'draft',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why it's "draft" (same for all socials)?

'public' => true,
'hierarchical' => true,
'taxonomies' => array(),
) );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be hidden from admin interface. Don't know why you need "hierarchical" here?

And I think it will be useful to make visible in admin or not - a class option, so it can be configured easily in a theme

'name' => 'Socials Category',
),
'public' => true,
'hierarchical' => false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manageable UI should not be visible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants