wp-papi / papi

:rocket: WordPress Page Type API with custom fields
https://wp-papi.github.io
MIT License
263 stars 32 forks source link

Always return an array in sortable columns filter #238

Closed rasmusbe closed 7 years ago

rasmusbe commented 7 years ago

Description

Fixes warning when listing post types not matching the functions if statement

Checklist

frozzare commented 7 years ago

Looks god 👍

codecov-io commented 7 years ago

Codecov Report

Merging #238 into master will increase coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #238      +/-   ##
============================================
+ Coverage     90.02%   90.03%   +0.01%     
  Complexity     1982     1982              
============================================
  Files            96       96              
  Lines          7048     7048              
============================================
+ Hits           6345     6346       +1     
+ Misses          703      702       -1
Impacted Files Coverage Δ Complexity Δ
src/admin/class-papi-admin-columns.php 98.33% <100%> (+0.83%) 45 <0> (ø) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 676879a...7f9b817. Read the comment docs.