Skip to content

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?

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.

3 participants