From e5d8890cb2144b0b9178b0b12f8482708a442c0e Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 6 Nov 2017 21:24:06 -0500 Subject: [PATCH] Revert "Add label elements to scheduler and visibility (#3317)" This reverts commit 9c011c6ae214611f5aafeafdf73cfea838590aa4. --- editor/sidebar/post-schedule/index.js | 26 ++++++++----------------- editor/sidebar/post-visibility/index.js | 26 ++++++++----------------- 2 files changed, 16 insertions(+), 36 deletions(-) diff --git a/editor/sidebar/post-schedule/index.js b/editor/sidebar/post-schedule/index.js index ef35b175764e2..317184bbef4ab 100644 --- a/editor/sidebar/post-schedule/index.js +++ b/editor/sidebar/post-schedule/index.js @@ -1,13 +1,8 @@ -/** - * External dependencies - */ -import { flowRight } from 'lodash'; - /** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { PanelRow, Dropdown, withAPIData, withInstanceId } from '@wordpress/components'; +import { PanelRow, Dropdown, withAPIData } from '@wordpress/components'; /** * Internal dependencies @@ -16,21 +11,19 @@ import './style.scss'; import PostScheduleLabel from '../../post-schedule/label'; import PostScheduleForm from '../../post-schedule'; -export function PostSchedule( { user, instanceId } ) { +export function PostSchedule( { user } ) { if ( ! user.data || ! user.data.capabilities.publish_posts ) { return null; } - const postScheduleSelectorId = 'post-schedule-selector-' + instanceId; return ( - + { __( 'Publish' ) } (