Skip to content

Commit

Permalink
fix #1407
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Apr 25, 2024
1 parent 7f3e610 commit fe32019
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
"rimraf": "^5.0.5"
},
"scripts": {
"export:wp-content:plugins": "npm run cli cp -- -r wp-content/plugins .export/wp-content",
"export:wp-content:uploads": "npm run cli cp -- -r wp-content/uploads .export/wp-content",
"export:wp-content:plugins": "npm run cli cp -- -r ../../plugins .export/wp-content",
"export:wp-content:uploads": "npm run cli cp -- -r ../../uploads .export/wp-content",
"export:wp-content": "npm run cli rm -- -rf .export/wp-content && mkdir -p .export/wp-content/uploads && run-p export:wp-content:*",
"export:db": "mkdir -p .export/sql && npm run wp db -- export .export/sql/local.sql",
"export": "run-p export:*",
"import:wp-content:plugins": "npm run cli cp -- -r .export/wp-content/plugins wp-content",
"import:wp-content:uploads": "npm run cli cp -- -r .export/wp-content/uploads wp-content",
"import:wp-content:plugins": "npm run cli cp -- -r .export/wp-content/plugins ../../",
"import:wp-content:uploads": "npm run cli cp -- -r .export/wp-content/uploads ../../",
"import:wp-content": "run-p import:wp-content:*",
"import:db": "npm run wp db -- import .export/sql/local.sql",
"import": "run-p import:*",
"wp-env": "wp-env",
"start": "wp-env start && open http://localhost:8888",
"stop": "npm run export && wp-env stop",
"cli": "wp-env run cli",
"cli": "wp-env run --env-cwd=wp-content/themes/snow-monkey cli",
"wp": "wp-env run cli wp",
"composer": "wp-env run --env-cwd=\"wp-content/themes/snow-monkey\" cli composer",
"pretest": "wp-env start && npm run composer install -- --no-interaction",
Expand Down Expand Up @@ -101,10 +101,10 @@
"fonts": "npm run cleanup:fonts && cpy 'src/fonts/**' 'assets/fonts'",
"pregenerate-load-files-target": "npm run cleanup:load-files-target && chmod 777 assets/load-files-target && wp-env start && npm run wp theme -- activate snow-monkey && npm run composer install -- --no-interaction",
"postgenerate-load-files-target": "chmod 755 assets/load-files-target",
"generate-load-files-target": "npm run cli php -- wp-content/themes/snow-monkey/bin/generate-load-files-target.php",
"translation:name": "wp-env start && npm run cli php -- wp-content/themes/snow-monkey/bin/template.php",
"generate-load-files-target": "npm run cli php -- ./bin/generate-load-files-target.php",
"translation:name": "wp-env start && npm run cli php -- ./bin/template.php",
"translation": "npm run cleanup:translation && run-p translation:*",
"make-php": "npm run cli php -- wp-content/themes/snow-monkey/bin/l10n.php",
"make-php": "npm run cli php -- ./bin/l10n.php",
"build": "npm run packages && run-p js css img fonts translation && npm run generate-load-files-target",
"zip:pack": "npm run cleanup:zip-directory && rsync -a --exclude='.*' --exclude='*.log' --exclude='*.config.js' --exclude='error_log' --exclude='/cache' --exclude='/bin' --exclude='/node_modules' --exclude='/vendor' --exclude='/tests' --exclude='/snow-monkey.zip' --exclude='/trial' --exclude='/src' ./ snow-monkey",
"zip:archive": "zip -9 -qmr snow-monkey.zip snow-monkey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package snow-monkey
* @author inc2734
* @license GPL-2.0+
* @version 15.2.0
* @version 25.4.4
*
* renamed: template-parts/archive/entry/content/woocommerce.php
* renamed: template-parts/archive/entry/content/content-woocommerce-product.php
Expand Down Expand Up @@ -35,10 +35,9 @@

/**
* Hook: woocommerce_shop_loop.
*
* @hooked WC_Structured_Data::generate_product_data() - 10
*/
do_action( 'woocommerce_shop_loop' );

wc_get_template_part( 'content', 'product' );
}
}
Expand Down
2 changes: 1 addition & 1 deletion woocommerce/archive-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package snow-monkey
* @author inc2734
* @license GPL-2.0+
* @version 5.0.0
* @version 8.6.0
*/

use Framework\Controller\Controller;
Expand Down
4 changes: 2 additions & 2 deletions woocommerce/loop/orderby.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @see https://woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.6.0
*/

Expand Down

0 comments on commit fe32019

Please sign in to comment.