{"action":"opened","issue":{"url":"https://api.github.com/repos/erolsk8/media-sync/issues/1","repository_url":"https://api.github.com/repos/erolsk8/media-sync","labels_url":"https://api.github.com/repos/erolsk8/media-sync/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/erolsk8/media-sync/issues/1/comments","events_url":"https://api.github.com/repos/erolsk8/media-sync/issues/1/events","html_url":"https://github.com/erolsk8/media-sync/issues/1","id":371785172,"node_id":"MDU6SXNzdWUzNzE3ODUxNzI=","number":1,"title":"Error on activation, Media library doesn't even load.","user":{"login":"chuckreynolds","id":46185,"node_id":"MDQ6VXNlcjQ2MTg1","avatar_url":"https://avatars0.githubusercontent.com/u/46185?v=4","gravatar_id":"","url":"https://api.github.com/users/chuckreynolds","html_url":"https://github.com/chuckreynolds","followers_url":"https://api.github.com/users/chuckreynolds/followers","following_url":"https://api.github.com/users/chuckreynolds/following{/other_user}","gists_url":"https://api.github.com/users/chuckreynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/chuckreynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuckreynolds/subscriptions","organizations_url":"https://api.github.com/users/chuckreynolds/orgs","repos_url":"https://api.github.com/users/chuckreynolds/repos","events_url":"https://api.github.com/users/chuckreynolds/events{/privacy}","received_events_url":"https://api.github.com/users/chuckreynolds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T02:41:43Z","updated_at":"2018-10-19T02:41:43Z","closed_at":null,"author_association":"NONE","body":"**WP 4.9.8**\r\n\r\n\r\n**Displayed at top of admin**\r\n```\r\nMedia Sync'; return $links; } add_action( 'admin_menu', 'media_sync_add_menu_items' ); /** * Add menu item for this plugin * * @since 1.0 */ function media_sync_add_menu_items() { // Add sub item to Media menu add_media_page( 'Media Sync', 'Media Sync', 'activate_plugins', 'media-sync-page', 'media_sync_main_page' ); } include( plugin_dir_path(__FILE__) . 'includes/MediaSync.class.php'); add_action( 'admin_enqueue_scripts', 'media_sync_load_admin_scripts', 100 ); /** * Load Admin CSS and JS files * * @since 1.0 * @return void */ function media_sync_load_admin_scripts( $hook ) { $js_dir = plugin_dir_url( __FILE__ ) . 'admin/js/'; $css_dir = plugin_dir_url( __FILE__ ) . 'admin/css/'; wp_register_script( 'media-sync-js-admin-script', $js_dir . 'script.js', ['jquery'], false, true ); wp_enqueue_script( 'media-sync-js-admin-script' ); wp_enqueue_script( 'media-sync-js-admin-ajax-script', $js_dir . 'ajax_script.js', ['jquery'] ); wp_localize_script( 'media-sync-js-admin-ajax-script', 'ajax_data', [ 'ajax_url' => admin_url( 'admin-ajax.php' ), 'security' => wp_create_nonce( \"media_sync_import_files\" ) ]); wp_register_style( 'media-sync-css-admin-style', $css_dir . 'style.css'); wp_enqueue_style( 'media-sync-css-admin-style' ); } add_action( 'wp_ajax_media_sync_import_files', 'media_sync_import_files' ); /** * Ajax action to import selected file * * @since 1.0 * @return void */ function media_sync_import_files() { MediaSync::media_sync_import_files(); } /** * Main function for \"Media Sync\" page * * @since 1.0 * @return void */ function media_sync_main_page() { MediaSync::media_sync_main_page(); }\r\n\r\n```\r\n\r\n**admin error notice on activation**\r\n```The plugin generated 2526 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.```\r\n\r\n![screen shot 2018-10-18 at 7 35 36 pm](https://user-images.githubusercontent.com/46185/47194828-cfd9e780-d30d-11e8-8919-211fa9948622.png)\r\n"}}
{"actor":{"display_login":"chuckreynolds"}}