Spelling fix for "visibilty"
This commit is contained in:
parent
6b1f645e24
commit
86abb2a7c8
|
@ -1048,7 +1048,7 @@ function woocommerce_product_data_visibility() {
|
|||
|
||||
<div id="catalog-visibility-select" class="hide-if-js">
|
||||
|
||||
<input type="hidden" name="current_visibilty" id="current_visibilty" value="<?php echo esc_attr( $current_visibility ); ?>" />
|
||||
<input type="hidden" name="current_visibility" id="current_visibility" value="<?php echo esc_attr( $current_visibility ); ?>" />
|
||||
<input type="hidden" name="current_featured" id="current_featured" value="<?php echo esc_attr( $current_featured ); ?>" />
|
||||
|
||||
<?php
|
||||
|
|
|
@ -84,7 +84,7 @@ jQuery( function($){
|
|||
$('#catalog-visibility-select').slideUp('fast');
|
||||
$('#catalog-visibility .edit-catalog-visibility').show();
|
||||
|
||||
var current_visibility = $('#current_visibilty').val();
|
||||
var current_visibility = $('#current_visibility').val();
|
||||
var current_featured = $('#current_featured').val();
|
||||
|
||||
$('input[name=_visibility]').removeAttr('checked');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -21,7 +21,7 @@ if ( empty( $woocommerce_loop['loop'] ) )
|
|||
if ( empty( $woocommerce_loop['columns'] ) )
|
||||
$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
|
||||
|
||||
// Ensure visibilty
|
||||
// Ensure visibility
|
||||
if ( ! $product->is_visible() )
|
||||
return;
|
||||
|
||||
|
|
|
@ -1960,7 +1960,7 @@ function _woocommerce_term_recount( $terms, $taxonomy, $callback = true, $terms_
|
|||
$count_query = $wpdb->prepare( "
|
||||
SELECT COUNT( DISTINCT posts.ID ) FROM {$wpdb->posts} as posts
|
||||
|
||||
LEFT JOIN {$wpdb->postmeta} AS meta_visibilty ON posts.ID = meta_visibilty.post_id
|
||||
LEFT JOIN {$wpdb->postmeta} AS meta_visibility ON posts.ID = meta_visibility.post_id
|
||||
LEFT JOIN {$wpdb->term_relationships} AS rel ON posts.ID = rel.object_ID
|
||||
LEFT JOIN {$wpdb->term_taxonomy} AS tax USING( term_taxonomy_id )
|
||||
LEFT JOIN {$wpdb->terms} AS term USING( term_id )
|
||||
|
@ -1969,9 +1969,9 @@ function _woocommerce_term_recount( $terms, $taxonomy, $callback = true, $terms_
|
|||
WHERE posts.post_status = 'publish'
|
||||
AND posts.post_type = 'product'
|
||||
AND (
|
||||
meta_visibilty.meta_key = '_visibility'
|
||||
meta_visibility.meta_key = '_visibility'
|
||||
AND
|
||||
meta_visibilty.meta_value IN ( 'visible', 'catalog' )
|
||||
meta_visibility.meta_value IN ( 'visible', 'catalog' )
|
||||
)
|
||||
AND tax.taxonomy = %s
|
||||
$stock_query
|
||||
|
|
Loading…
Reference in New Issue