@@ -319,11 +319,11 @@ public function enqueue_css() {
319319 *
320320 * This method retrieves the CSS output location setting from the
321321 * `so_css_output_location` option and returns true if the setting is
322- * set to 'file' and false if it is set to 'inline' .
322+ * set to 'file'. Otherwise false is returned .
323323 *
324324 * @param string|null $location The unused default location value.
325325 *
326- * @return bool True if the CSS should be output in a dedicated file, false if it should be inline .
326+ * @return bool True if the CSS should be output in a dedicated file.
327327 */
328328 public function css_output_location ( $ location = null ) {
329329 $ output_location = get_option (
@@ -1023,13 +1023,10 @@ private function get_latest_revision_timestamp() {
10231023 public function version_check () {
10241024 $ version = get_option ( 'so_css_version ' );
10251025
1026- // If there's no version set, check if this site already
1027- // had SO CSS installed by checking for custom CSS.
1028- if ( empty ( $ version ) ) {
1029- update_option (
1030- 'so_css_output_location ' ,
1031- ! empty ( $ this ->get_custom_css ( $ this ->theme ) ) ? 'inline ' : 'file '
1032- );
1026+ // If there's no version set or it's set to 1.6.0, check if
1027+ // this site already had SO CSS installed by checking for custom CSS.
1028+ if ( empty ( $ version ) || $ version === '1.6.0 ' ) {
1029+ update_option ( 'so_css_output_location ' , 'file ' );
10331030 }
10341031
10351032 if ( empty ( $ version ) || version_compare ( $ version , SOCSS_VERSION , '< ' ) ) {
0 commit comments