Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 445c9d8

Browse files
committed
Revert some changes
1 parent 4576927 commit 445c9d8

File tree

4 files changed

+39
-32
lines changed

4 files changed

+39
-32
lines changed

admin/index.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
<?php
2-
/**
3-
* Silence is golden.
4-
*/
1+
<?php //Silence is golden

admin/rt-retranscode-admin.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,9 +970,11 @@ public function update_amp_story_video_url( $block_content, $block ) {
970970
}
971971

972972
/**
973-
* WHERE seach query to check attachment mime-type.
973+
* WHERE search query to check attachment mime-type.
974974
*
975975
* @param string $where The WHERE clause of the query.
976+
*
977+
* @return string The WHERE clause of the query.
976978
*/
977979
public function add_search_mime_types( $where ) {
978980
$where .= " AND post_mime_type LIKE 'audio/%' OR post_mime_type LIKE 'video/%'";
@@ -988,7 +990,10 @@ public function add_search_mime_types( $where ) {
988990
* Execute RetranscodeMedia constructor.
989991
*/
990992
function retranscode_media() {
991-
new RetranscodeMedia();
993+
994+
global $RetranscodeMedia;
995+
996+
$RetranscodeMedia = new RetranscodeMedia();
992997
}
993998

994999
?>

index.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
<?php
2-
/**
3-
* Silence is golden.
4-
*/
1+
<?php // Silence is golden

webpack.config.js

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Webpack configuration file.
3+
*
4+
* @package transcoder
5+
*/
6+
7+
/* global process */
8+
19
const webpack = require( 'webpack' );
210
const glob = require( 'glob' );
311
const UglifyJsPlugin = require( 'uglifyjs-webpack-plugin' );
@@ -9,56 +17,56 @@ const externals = {
917
tinymce: 'tinymce',
1018
moment: 'moment',
1119
jquery: 'jQuery',
12-
'@wordpress/components': 'wp.components', // Not really a package.
20+
'@wordpress/components': 'wp.components' // Not really a package.
1321
};
1422

23+
const module = {};
24+
1525
module.exports = {
1626
entry: {
17-
blocks: glob.sync( './admin/js/rt-transcoder-block-editor-support.js' ),
27+
blocks: glob.sync( './admin/js/rt-transcoder-block-editor-support.js' )
1828
},
1929
output: {
2030
filename: './admin/js/build/rt-transcoder-block-editor-support.build.js',
21-
path: __dirname,
31+
path: __dirname
2232
},
2333
externals,
2434
resolve: {
2535
modules: [
2636
__dirname,
27-
'node_modules',
28-
],
37+
'node_modules'
38+
]
2939
},
3040
module: {
3141
rules: [
3242
{
3343
test: /.js?$/,
3444
loader: 'babel-loader',
35-
exclude: /node_modules/,
36-
},
37-
],
45+
exclude: /node_modules/
46+
}
47+
]
3848
},
3949
plugins: [
40-
new webpack.DefinePlugin(
41-
{
42-
'process.env.NODE_ENV': JSON.stringify( process.env.NODE_ENV || 'development' ),
43-
}
44-
),
45-
],
50+
new webpack.DefinePlugin( {
51+
'process.env.NODE_ENV': JSON.stringify( process.env.NODE_ENV || 'development' ),
52+
} )
53+
]
4654
};
4755

4856
if ( process.env.NODE_ENV === 'production' ) {
49-
module.exports.plugins = ( module.exports.plugins || [] ).concat(
57+
module.exports.plugins = (
58+
module.exports.plugins || []
59+
).concat(
5060
[
51-
new UglifyJsPlugin(
52-
{
61+
new UglifyJsPlugin( {
5362
sourceMap: true,
5463
uglifyOptions: {
5564
ecma: 8,
5665
compress: {
5766
warnings: false,
58-
},
59-
},
60-
}
61-
),
62-
]
67+
}
68+
}
69+
} )
70+
]
6371
);
6472
}

0 commit comments

Comments
 (0)