A dislocation can be represented by a moment tensor for calculating seismic waves. However, the moment tensor expression was derived in an elastic medium and cannot completely describe a dislocation in a porous medium. In this paper, effective moment tensors of a dislocation in a porous medium are derived. It is found that the dislocation is equivalent to two independent moment tensors, i.e., the bulk moment tensor acting on the bulk of the porous medium and the isotropic fluid moment tensor acting on the pore fluid. Both of them are caused by the solid dislocation as well as the fluid-solid relative motion corresponding to fluid injection towards the surrounding rocks (or fluid outflow) through the fault plane. For a shear dislocation, the fluid moment tensor is zero, and the dislocation is equivalent to a double couple acting on the bulk; for an opening dislocation or fluid injection, the two moment tensors are needed to describe the source. The fluid moment tensor only affects the radiated compressional waves. By calculating the ratio of the radiation fields generated by unit fluid moment tensor and bulk moment tensor, it is found that the fast compressional wave radiated by the bulk moment tensor is much stronger than that radiated by the fluid moment tensor, while the slow compressional wave radiated by the fluid moment tensor is several times stronger than that radiated by the bulk moment tensor.