ホーム > クラス > クラス WP_Query::parse_order() 2014/12/11 2014/12/16 目次1 WP_Query::parse_order()2 定義ファイル :/blog/wp-includes/query.php 5WP_Query::parse_order()定義ファイル :/blog/wp-includes/query.php 5PHP protected function parse_order( $order ) { if ( ! is_string( $order ) || empty( $order ) ) { return 'DESC'; } if ( 'ASC' === strtoupper( $order ) ) { return 'ASC'; } else { return 'DESC'; } }1234567891011 protected function parse_order( $order ) { if ( ! is_string( $order ) || empty( $order ) ) { return 'DESC'; } if ( 'ASC' === strtoupper( $order ) ) { return 'ASC'; } else { return 'DESC'; } } - クラス