Skip to content

Commit 23c87b0

Browse files
author
David Ryan
committed
patch errors and cleanup
1 parent 41210ab commit 23c87b0

File tree

5 files changed

+2
-1609
lines changed

5 files changed

+2
-1609
lines changed

app/admin/class-product-machine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static function make_zip_download( $filename, $origin_dir, $tmp_dir, $data, $con
5757
$zip->addFromString( 'plugin-data.json', json_encode( $plugin_data ) );
5858
// maybe include license
5959
if ( 'gpl' === $data['plugin_license'] ) {
60-
$zip->addFromString( 'LICENSE', file_get_contents( dirname( __FILE__ ) . '../boilerplates/GPL.txt' ) );
60+
$zip->addFromString( 'LICENSE', file_get_contents( dirname( __FILE__ ) . '/../boilerplates/GPL.txt' ) );
6161
}
6262
// find every file within origin directory including nested files
6363
$iterator = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $origin_dir ) );

app/admin/class-toolkit-dashboard-page.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ function global_admin_css() {
4343
}
4444
ob_start(); ?>
4545
<style type="text/css">
46-
#toplevel_page_wp-phx-dev-kit ul li:nth-of-type(2),
47-
#toplevel_page_wp-phx-dev-kit ul li:nth-of-type(3) {
46+
#toplevel_page_wp-phx-dev-kit .wp-submenu {
4847
display: none;
4948
}
5049
<?php if ( isset( $_GET['modal_view'] ) ) { ?>

0 commit comments

Comments
 (0)